Question

Postfix port 25

  • Posted September 13, 2013

I’m having a problem with my WordPress contact form “using contact 7 plugin” it’s not sending emails I found all the emails in “/var/mail/www-data” but never received one of them.

Whenever I try to reload postfix I get this error “postfix/postfix-script: fatal: the Postfix mail system is not running” by checking “mail.err & mail.log” I found these errors

Sep 13 11:13:08 localhost postfix/postfix-script[17870]: fatal: the Postfix mail system is not running Sep 13 11:13:13 localhost postfix/postfix-script[17974]: starting the Postfix mail system Sep 13 11:13:13 localhost postfix/master[17975]: fatal: bind 0.0.0.0 port 25: Address already in use Sep 13 11:13:42 localhost postfix/postfix-script[17983]: fatal: the Postfix mail system is not running Sep 13 11:24:43 localhost postfix/postfix-script[18026]: fatal: the Postfix mail system is not running Sep 13 11:24:54 localhost postfix/master[18130]: fatal: bind 0.0.0.0 port 25: Address already in use Sep 13 11:25:01 localhost postfix/postfix-script[18148]: fatal: the Postfix mail system is not running Sep 13 11:25:04 localhost postfix/master[18249]: fatal: bind 0.0.0.0 port 25: Address already in use

How can I fix this?

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hello all,

You can use UFW in order to allow connections on ports 25, 465 and 587

UFW, or Uncomplicated Firewall, is a simplified firewall management interface that hides the complexity of lower-level packet filtering technologies such as iptables and nftables

To allow connections on ports 25, 465, 587 execute the following commands:

sudo ufw allow 25/tcp

sudo ufw allow 465/tcp

sudo ufw allow 587/tcp

You can check our existing tutorial on how to setup a Firewall with UFW here:

https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-with-ufw-on-ubuntu-20-04

If you’re still unable to send emails I will recommend you to try using alternative ports as 587 and 465, because a lot of providers will block connections/emails sent without authentication on port 25 as well.

Hope that this helps! Regards, Alex

Other than WordPress, do you need to send mail from your droplet for anything else? If not, <b>remove</b> Postfix and install exim4, instead. <i>See</i> <a href=“https://www.digitalocean.com/community/questions/wordpress-email-notifications”>WordPress email notifications</a>.