Changes

From Amahi Wiki
Jump to: navigation, search
Here's how to enable outgoing emails on your Amahi server
'''NOTE:''' Make sure to use copy-paste to execute those commands. In particular, they contain back-ticks as the starting string delimiter, which can be hard to find on a keyboard! Change <code>yum</code> to <code>apt-get</code> for Ubuntu.
To begin with, [[Open Terminal as root|As '''root''' user]] do the following:
== Option 1 (untested on Fedora 19Internet Service Provider)==
<pre>
SMTP_SERVER=your_isp_smtp_server
make
service sendmail restart
</pre>
Set sendmail to start on boot
<pre>
systemctl enable sendmail
</pre>
== Option 2 (tested on Fedora 19Google Gmail)==
<pre>
su -
cd /etc/mail
make
service systemctl restart sendmail</pre>Set sendmail to start on boot<pre>systemctl enable sendmail restart
</pre>
== Test ==
Finally, send a test email.
<pre>
Ref: [http://www.techvilleottawa.org/sendmail-smtp-gmail-relay-on-fedora-centos-redhat Sendmail SMTP Gmail Relay on Fedora-Centos-Redhat]
 
== Troubleshooting ==
* If you get the message " warning: SASL authentication failure: No worthy mechs found", install this package.
yum install cyrus-sasl{,-plain}
 
:Restart Sendmail
systemctl restart sendmail
12,424

edits