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 15:07 PDT
SuperJer
Websiteman

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

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

2005 Mar 20 • 5284
It could also be that postfix is already running.

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

2005 Mar 20 • 5284
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 12:04 PDT
Down Rodeo
Cap'n Moth of the Firehouse

Find the Hole II Participation Medal
2007 Oct 19 • 5485
57,583 ₧
 
 
2014 Aug 18 at 16:41 PDT
SuperJer
Websiteman

2005 Mar 20 • 5284
dnl what are you talking about
 
 
2014 Aug 19 at 09:25 PDT
Down Rodeo
Cap'n Moth of the Firehouse

Find the Hole II Participation Medal
2007 Oct 19 • 5485
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 15:11 PDT
SuperJer
Websiteman

2005 Mar 20 • 5284
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 19 at 17:09 PDT
Down Rodeo
Cap'n Moth of the Firehouse

Find the Hole II Participation Medal
2007 Oct 19 • 5485
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 19 at 17:26 PDT
Page [1]