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?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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>.
Please do not duplicate your questions. <br> <br><a href=“https://www.digitalocean.com/community/questions/postfix-port-25”>https://www.digitalocean.com/community/questions/postfix-port-25</a>
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.