Mail being sent as root on Ubuntu 14.04
Posted
by
Benjamin Allison
on Server Fault
See other posts from Server Fault
or by Benjamin Allison
Published on 2014-08-21T18:39:56Z
Indexed on
2014/08/21
22:22 UTC
Read the original article
Hit count: 210
I'm really struggling with this. I'm trying to set up this server to send mail using Gmail's SMTP. Google keeps bouncing the messages, saying that that Authentication is required:
smtp.gmail.com[74.125.196.109]:25: 530-5.5.1 Authentication Required. Learn more at
smtp.gmail.com[74.125.196.109]:25: 530 5.5.1 http://support.google.com/mail/bin/answer.py?answer=14257
But it seems my server is trying to send mail as [email protected]. I'm baffled. Here's what I've done so far:
Updated mail.cf
relayhost = [smtp.gmail.com]:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_tls_CAfile = /etc/postfix/cacert.pem
smtp_use_tls = yes
Created /etc/postfix/sasl_passwd:
[smtp.gmail.com]:587 [email protected]:password
Then did the following:
sudo chmod 400 /etc/postfix/sasl_passwd
sudo postmap /etc/postfix/sasl_passwd
cat /etc/ssl/certs/Thawte_Premium_Server_CA.pem | sudo tee -a /etc/postfix/cacert.pem
service postfix restart
I can't for the life me get a mail message to send, or change the default mail user from [email protected] to [email protected]
(FWIW, I'm using Google Apps, that's why it's not a .gmail address).
© Server Fault or respective owner