Enable Outgoing Emails

From Amahi Wiki
Revision as of 10:56, 19 February 2011 by Smystaki (talk | contribs)
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!

As root user:

bash code
​SMTP_SERVER=your_isp_smtp_server yum -y install sendmail-cf m4 cd /etc/mail sed -ie "s/.*SMART_HOST.*/define(\`SMART_HOST', \`$SMTP_SERVER')dnl/" sendmail.mc make service sendmail restart​


Make sure to replace your_isp_smtp_server on the first line with the hostname or IP address of your ISP SMTP server.

If you need to connect to the SMTP server using port 587 (TLS/STARTTLS), you'll need to do this too:

bash code
[[:Enable Outgoing Emails/somecode2]]


If you want to use another port than 587, change that number in the above command (it's there twice), before executing it. If you already executed it, edit the sendmail.mc file, and search for 587 - it should appear there twice - change both.

If you need to provide a username and password to use the SMTP server, you'll need to do this too:

bash code
[[:Enable Outgoing Emails/somecode3]]