Changes

From Amahi Wiki
Jump to: navigation, search
no edit summary
heading =WARNING|
message = This is recommended only for advanced users, proceed with caution.}}
This tutorial is now available as the Amahi [https://www.amahi.org/apps/postfix-mail-relay Post Mail Relay] application. This can be used to send mails from your Amahi 7 or greater (Fedora 19/Amahi 7 or greater) HDA and to receive system emails. To receive emails meant for the root user, you have to [[Forward_System_Emails|Forward System Emails]] after finishing this tutorial. You also might want to take a look at [[Masquerade_email_address|Masquerade email address]] as well.<br>
REF: [http://opentodo.net/2013/03/postfix-smtp-relay-to-smtp-gmail-com Postfix SMTP relay to SMTP gmail.com]
<pre>postmap hash:/etc/postfix/sasl_passwd</pre>
* Create /etc/postfix/tls_policy file with your Gmail login credentials that looks like below:
<pre>[smtp.gmail.com]:587 encrypt</pre>
<br />
== Troubleshooting ==
* If you get the message " warning: SASL authentication failure: No worthy mechs found", install this package. 
yum install cyrus-sasl{,-plain}
:Restart Postfix 
systemctl restart postfix
* Receive the following message: connect to smtp.gmail.com[2607:f8b0:400e:c05::6d]:587: Network is unreachable:To correct this problem, change /etc/postfix/main.cf as follows: inet_protocol = ipv4:Restart postfix systemctl reload postfix
See also:<br>
[[Forward_System_Emails|Forward System Emails]]<br>
[[Monitor_System_Logs_via_E-mail|Monitor System Logs via E-mail]]<br>
12,424

edits