Postfix SMTP Auth Error “no SASL authentication mechanisms”
I have been setting up a new mail server recently with Postfix and SMTP Auth, and got the error message "no SASL authentication mechanisms".
Email was the first “killer app” of the early Internet and today millions of emails are sent every day using a variety of emails servers such as postfix and sendmail. This section looks at how to use and configure email servers for sending and receiving email, mail filtering with services such as maildrop and procmail, and POP and IMAP servers such as Courier IMAP and Dovecot.
I have been setting up a new mail server recently with Postfix and SMTP Auth, and got the error message "no SASL authentication mechanisms".
Postfix allows you to store virtual alias maps in a text file, which tells postfix how to route virtual email addresses to real users on the system. This setting and the file location is determined in the postfix configuration file /etc/postfix/main.cf
like so:
virtual_alias_maps = hash:/etc/postfix/virtual
Running postfix on a CentOS mail server I got the following error message both in a returned email and also in the log file: "cannot update mailbox … error writing message: File too large". This post looks at the erorr message in the bounce email, the log files, and the solution to the error. This error will also affect postfix mail servers on Red Hat Enterprise Linux and probably other default installs of Postfix as well.
Postfix by default on CentOS 5 and Red Hat Enterprise Linux is configured to only receive mail on the local network interface. This is good if you are not intending your server to run as a mail server but is one additional step to getting your mail server running when setting up Postfix.
RedHat often misconfigures the /etc/hosts file when setting the system up and sendmail is unable to send messages, leaving log file messages like "Connection refused by localhost.co.nz".