coldfission Posted December 28, 2009 Share Posted December 28, 2009 I have worked with two linux servers now that will not send email to itself. When we test programs, we like to send email to ourselves to get test content, but it always fails. for example: i send email with sendmail from server: example.com to email address: test@example.com. No email is ever received when i try Any help with this? Quote Link to comment https://forums.phpfreaks.com/topic/186518-sendmail-wont-send-to-its-own-domain/ Share on other sites More sharing options...
trq Posted December 28, 2009 Share Posted December 28, 2009 Is your DNS resolving properly? ie; Can you ping example.com and get 127.0.0.1 (or at least the LAN ip) Quote Link to comment https://forums.phpfreaks.com/topic/186518-sendmail-wont-send-to-its-own-domain/#findComment-985116 Share on other sites More sharing options...
coldfission Posted December 29, 2009 Author Share Posted December 29, 2009 pinging example.com from example.com gives my Internet IP. not my local IP or 127.0.0.1 is that a good thing? Quote Link to comment https://forums.phpfreaks.com/topic/186518-sendmail-wont-send-to-its-own-domain/#findComment-985175 Share on other sites More sharing options...
ghulamyaseen Posted January 5, 2010 Share Posted January 5, 2010 i think it does not matter that it is your localloop IP. what matters is logs....can you please send your logs? tail -f /var/log/maillog Ghulam Yaseen http://friendspak.com Quote Link to comment https://forums.phpfreaks.com/topic/186518-sendmail-wont-send-to-its-own-domain/#findComment-988873 Share on other sites More sharing options...
cpace1983 Posted January 31, 2010 Share Posted January 31, 2010 Add the following line to /etc/hosts: 127.0.0.1 example.com Silly question, but can you verify that sendmail can accept connections on the loopback interface?: telnet example.com 25 Should get you a connection, where you could start a manual SMTP conversation. Barring that, check your log files for any funny business: cat /var/log/maillog|grep "example.com" Quote Link to comment https://forums.phpfreaks.com/topic/186518-sendmail-wont-send-to-its-own-domain/#findComment-1004684 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.