| Linode Forum https://forum.linode.com/ |
|
| postfix - send only setup so I can receive system emails https://forum.linode.com/viewtopic.php?f=11&t=11684 |
Page 1 of 1 |
| Author: | morpol [ Tue Mar 17, 2015 7:02 pm ] |
| Post subject: | postfix - send only setup so I can receive system emails |
Complete noob with this stuff so please bare with me. At the moment I am using this strictly for hosting MySQL db's. I would like to be able to receive system emails though whether those be alerts or notifications that upgrades are available. I did some research today, but can't seem to get this working (the emails are never received). /etc/postfix/main.cf Code: # See /usr/share/postfix/main.cf.dist for a commented, more complete version /etc/aliases Code: # See man 5 aliases for format Obviously that is not my email. Any ideas here or possibly point me in the right direction? I have use the mail command in ssh to send some test emails to myself and they do not come through. Webmin is also installed and it allows test emails to be sent from within its interface as well which are not received either. |
|
| Author: | morpol [ Tue Mar 17, 2015 7:17 pm ] |
| Post subject: | Re: postfix - send only setup so I can receive system emails |
Some additional info here. Just checked email from within Webmin and there are some settings obviously missing/wrong. I did not do the initial setup of this server either. The email headers are showing : From MAILER-DAEMON@localhost (Mail Delivery System) To root@localhost Date 17/03/2015 16:58 Subject Undelivered Mail Returned to Sender failed delivery status : Final recipient me@example.com Reason for failure 550 Access denied - Invalid HELO name (See RFC2821 Remote mail server example.com Reporting mail server localhost |
|
| Author: | morpol [ Tue Mar 17, 2015 8:49 pm ] |
| Post subject: | Re: postfix - send only setup so I can receive system emails |
In /etc/postfix/main.cf I needed myhostname = li******.members.linode.com. Restarted postfix afterwards. echo "This is the body of the email" | mail -s "This is the subject line" user@example.com is being received echo "This is the body of the email" | mail -s "This is the subject line" root is NOT being received What else do I need to do here? The root/system emails is what I really need to work. |
|
| Author: | sanvila [ Wed Mar 18, 2015 5:52 pm ] |
| Post subject: | Re: postfix - send only setup so I can receive system emails |
Try Code: dpkg-reconfigure postfix and choose "Internet Site". Use that as your starting point. (You are apparently using "Local only" which means no email is forwarded outside). |
|
| Author: | morpol [ Fri Mar 20, 2015 4:14 am ] |
| Post subject: | Re: postfix - send only setup so I can receive system emails |
That is what was chosen. What I ended up doing was changing the email that Webmin was sending from. The default was 'webmin@osprey.111.111.111.111' and I changed this to 'root@li****.members.linode.com' and that did the trick. Why did that work? I have no idea to be honest. |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|