postfix smtp Must issue a STARTTLS command first

When sending an email to a server, mail bounced with the following error message.

To fix the error, first enabled debug in postfix for the Remote-MTA, for this, edit file

Add the following lines. You need to remove these lines after debug is completed or your log file will get larger with debug log.

Restart postfix mail server.

Now I send a mail, in /var/log/mail.log, I got the detailed error message.

The error is fixed by running

You may also need to check the value of smtpd_tls_CAfile

If you don’t have this set, run

See postfix

Leave a Reply

Your email address will not be published. Required fields are marked *