Hello there. I’m a completely a newbie to this email stuff. Anyway I have installed and configured postfix and mailx on my Centos 6 by following this tutorial: https://www.digitalocean.com/community/tutorials/how-to-install-postfix-on-centos-6
However I tried to send an test email by typing ‘mail’ into terminal. but it does not send an email.
Where should I check for error logs? Any help would be appreciated.
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!
Hi @auzen
Your mail log should be located in /var/log/mail.log unless you’ve changed that configuration in Postfix.
On CentOS, the mail log is /var/log/maillog.
That being said, when it comes to setting up a mail server and actually getting the mail that you send to land in the recipients inbox instead of spam/junk folder, there’s a lot more to the setup.
PTR (Reverse DNS), SPF, DKIM, and DMARC all come in to play and need to be setup as upstream will check during validation – if something is amiss, the e-mail will be rejected or flagged as spam.
Hello there,
It’s possible that port 25 is closed for external uses for new accounts. There are a few ways to go about the problem
To expand more on blocking port 25 for new accounts, this is something DigitalOcean has been doing to reduce spam on its network. It is more that we simply cannot accurately determine who is going to send it.
Stopping spam is a constant fight, so DigitalOcean has implemented some restrictions on newer accounts. Having said that, you can always contact them and ask for the port block to be lifted on:
https://www.digitalocean.com/support/
More information here:
https://docs.digitalocean.com/support/why-is-smtp-blocked/
Hope that helps!
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.