I’m getting the following error when trying to send mail to a mail server I’ve set up:
The recipient server did not accept our requests to connect. Learn more at http://support.google.com/mail/bin/answer.py?answer=7720
[(10) mail.mydomain.com. [123.456.789.123]:25: socket error]
My MX records check out when I put them through mxtoolbox.com. However, I can’t seem to get through via SMTP despite the following UFW status:
Status: active
To Action From
-- ------ ----
22 ALLOW Anywhere
9999/tcp ALLOW Anywhere
80/tcp ALLOW Anywhere
Anywhere ALLOW 24.62.28.170
443/tcp ALLOW Anywhere
25/tcp ALLOW Anywhere
993/tcp ALLOW Anywhere
587/tcp ALLOW Anywhere
465/tcp ALLOW Anywhere
22 (v6) ALLOW Anywhere (v6)
9999/tcp (v6) ALLOW Anywhere (v6)
80/tcp (v6) ALLOW Anywhere (v6)
443/tcp (v6) ALLOW Anywhere (v6)
25/tcp (v6) ALLOW Anywhere (v6)
993/tcp (v6) ALLOW Anywhere (v6)
587/tcp (v6) ALLOW Anywhere (v6)
465/tcp (v6) ALLOW Anywhere (v6)
I’ve followed the ARS guide for setting up a mail server with the exception of the DKIM setup which I did via port rather than user (it seems to be working just fine).
Outgoing mail sends just fine and does not get caught in spam filters. I remember when I initially set up the server I did some kind of mail configuring to send Tripwire reports and I’m wondering if that’s messing everything up.
Barring suggestions here, I’m thinking I might take a mulligan and try again.
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!
I’m not able to reach port 25 on your Droplet. Do you have a mail server running and listening on 0.0.0.0:25?
Please post the output of the following command:
sudo netstat -plutn | grep 25
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.