Cannot send email from ubuntu ec2

Cannot send email from ubuntu ec2

khinelay
2014 Aug 16 • 1
Hello

I install sendmail and then Postfix. At that time, I'm okay to send gmail, hotmail but not to other domain name. Then I uninstall sendmail by using https://gist.github.com/adamstac/7441659

Now I'm in trouble. No error but it doesn't send email. I found this post http://www.superjer.com/forum/send_and_email.php and I tried it.

I can send the email from terminal

The problem is when I type
sudo postfix start
postfix/postfix-script: starting the Postfix mail system
postfix/postfix-script: fatal: mail system startup failed

Please let me know how to figure it out.
Thanks in advance
 
 
 
2014 Aug 16 at 22:07 UTC
SuperJer
Websiteman

2005 Mar 21 • 6670
Maybe check for error messages at the end of /var/log/maillog ?

E.g.: sudo tail -n30 /var/log/maillog
 
 
 
2014 Aug 18 at 18:54 UTC
SuperJer
Websiteman

2005 Mar 21 • 6670
It could also be that postfix is already running.

Try: sudo service postfix status
 
 
 
2014 Aug 18 at 18:56 UTC
SuperJer
Websiteman

2005 Mar 21 • 6670
Also, that gist is a bit excessive. Removing libdb and m4 may take out more than just sendmail. I mean, I don't know of anything else that uses m4 anymore, but I wouldn't just remove it unless I really knew what I was doing.
 
 
 
2014 Aug 18 at 19:04 UTC
Down Rodeo
Cap'n Moth of the Firehouse

Find the Hole II Participation Medal
2007 Oct 19 • 5486
57,583 ₧
 
 
 
2014 Aug 18 at 23:41 UTC
SuperJer
Websiteman

2005 Mar 21 • 6670
dnl what are you talking about
 
 
 
2014 Aug 19 at 16:25 UTC
Down Rodeo
Cap'n Moth of the Firehouse

Find the Hole II Participation Medal
2007 Oct 19 • 5486
57,583 ₧
m4 is really unpleasant to use, but if a project uses GNU autotools, then it uses m4. the autotools themselves are awful.
 
 
 
2014 Aug 19 at 22:11 UTC
SuperJer
Websiteman

2005 Mar 21 • 6670
I guess that makes sense. Every time I have to run automake or autom4ke or whatever it usually results in disaster.

I definitely prefer just using make.
 
 
 
2014 Aug 20 at 00:09 UTC
Down Rodeo
Cap'n Moth of the Firehouse

Find the Hole II Participation Medal
2007 Oct 19 • 5486
57,583 ₧
What really annoys me is that automake and friends will correctly build your software on systems from like 15 years ago and more that nobody ever uses. Those things have way too much backwards compatibility. Do you ever check the scripts? They check how sane the C compiler is by compiling hello world. It's super annoying. Somewhere out there, there is the perfect build system. It might be D's. It might be ninja.
 
 
 
2014 Aug 20 at 00:26 UTC
Page [1]