Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to configure Postfix on Red Hat Linux to send email with the following command:

mail -s "test"

I have followed all the steps mentioned in this tutorial and have changed relay host configuration as follows:

relayhost =

where is my mail server's IP address.

But it doesn't work. The log file says:

Mar 13 18:14:31 localhost postfix/smtp[3322]: warning:[]:25 offered null AUTH mechanism list
Mar 13 18:14:31 localhost postfix/smtp[3322]: certificate verification failed for]:25: untrusted issuer
Mar 13 18:14:31 localhost postfix/smtp[3322]: 599C44A1AE9: to=, relay=[]:25,
delay=9001, delays=9001/0.11/0.03/0, dsn=4.7.5, status=deferred
(Server certificate not trusted)

What could be the problem and how can I fix it?

share|improve this question

migrated from Mar 13 '13 at 11:53

This question came from our site for professional and enthusiast programmers.

Please use the same credentials as on Stack Overflow to log in here. You can then edit your question and post comments below. – slhck Mar 17 '13 at 9:28

First of all, if your system has a network connection and a local installed mailserver (e.g. Postfix, Sendmail or qmail), you can already send mail without a smart relay.

If for some reason you need a smart relay, you must set it up as it should be. In your situtation your relay server demands SMTP auth with TLS. This means that you should set up your mail server (Postfix) to authenticate correctly with this relay.

To sum up:

  1. Ensure that you provided the right "hostname user:password" in this command:

    echo " smtp_user:smtp_passwd" > /etc/postfix/sasl_passwd
  2. Ensure that you have the crt key required and set the smtp_tls_CAfile parameter to its location, e.g.:

    smtp_tls_CAfile = /etc/pki/tls/certs/ca-bundle.crt
share|improve this answer

You must log in to answer this question.