I have setup Postfix on my CentOS and configured it properly.

Now, I want to enable user authentication to avoid any spam deliveries.

I don't want a complicated setup, just a plain txt file which will keep the username/password (or MySQL database if it's also easy to setup) and avoiding the delivery of email without AUTH command in Postfix SMTP connection.

I searched on Google, read lots of articles related to Postfix/SASL but couldn't understand, couldn't make Postfix run with SMTP Auth. Is there any body out there who will be happy to explain the process step by step?

Thanks, looking forward to hear from you.

  • 1
    The setup you describe is very non-standard. Do you really want to disallow delivery of any mail without authentication, or do you just want to disallow relaying of mail without auth? – womble Jan 19 '10 at 1:52
  • my issue resolve kindly check answer here – Usman Ali Maan Oct 14 '19 at 16:38

This article from flurdy has all the info on how you can do this. It says how to do it with Mysql.

| improve this answer | |

You DON'T want to make authentication for mail delivery or else users from different mail servers than yours will not be able to deliver e-mails to your server mailboxes.

What you really need from what I've understand is to setup SPAM-bulletproof server. Spamassassin, RBL and greylisting cuts off almost everything if set-up properly.

Check out this article which I have posted on my blog - AntiSPAM postfix setup.
There you will find copy of my mail server setup which cuts off more than 99% of SPAM without using spamassasin which I doesn't really like due to personal constraints.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.