LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   system won't send emails, postfix installed but not starting. (https://www.linuxquestions.org/questions/linux-server-73/system-wont-send-emails-postfix-installed-but-not-starting-4175494799/)

frsechet 02-13-2014 11:31 AM

system won't send emails, postfix installed but not starting.
 
Hi guys,

I'm having trouble with postfix on my debian 6 server. Emails didn't get sent, no matter what I did. I've tried uninstalling postfix and using sendmail instead, with no better result. Of course the server is connected to the internet ;-)

Now I'm back trying with postfix but for some reason, even though when I do /etc/init.d/postfix start it says "Starting Postfix Mail Transport Agent: postfix.", when I do "/etc/init.d/postfix reload" it says "Reloading Postfix configuration...postfix/postfix-script: fatal: the Postfix mail system is not running failed."

Sendmail is now completely uninstalled.
Uninstalling/reinstalling/reconfiguring postfix didn't help.

How do I get postfix to start?

Thanks!

pingu 02-13-2014 11:47 AM

I too have encountered this.
The solution that worked for me was to disable ipv6. It is set in /etc/postfix/main.cf.
Disable with command (you should take a copy of main.cf first!):
Code:

sed -i s/inet_protocols\ =\ all/inet_protocols\ =\ ipv4/  /etc/postfix/main.cf
service postfix reload



All times are GMT -5. The time now is 02:51 AM.