* What led up to the situation?
Trying to configure postfix to send mails via a relay (smarthost)
* What exactly did you do (or not do) that was effective (or
ineffective)?
Followed some tutorials on the net, configured main.cf to use the relay, and configured the relay user/password
* What was the outcome of this action?
Mails are not sent, here are some usefull informations:
# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
inet_interfaces = loopback-only
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
mydestination = localhost
myhostname = errlock.org
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
myorigin = /etc/mailname
readme_directory = no
recipient_delimiter = +
relayhost = ns0.ovh.net:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/smarthost_passwd
smtp_sasl_security_options =
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
# cat /etc/mailname
errlock.org
Relevant part from /var/log/mail.log:
Aug 17 10:24:51 mediacenter postfix/postfix-script[3594]: refreshing the Postfix mail system
Aug 17 10:24:52 mediacenter postfix/master[14795]: reload -- version 2.9.3, configuration /etc/postfix
Aug 17 10:24:52 mediacenter postfix/qmgr[3600]: 90C1A5814D55: from=<root@errlock.org>, size=414, nrcpt=1 (queue active)
Aug 17 10:24:54 mediacenter postfix/pickup[3599]: DBCA8584100F: uid=0 from=<root>
Aug 17 10:24:54 mediacenter postfix/cleanup[3610]: DBCA8584100F: message-id=<20120817082454.DBCA8584100F@errlock.org>
Aug 17 10:24:54 mediacenter postfix/qmgr[3600]: DBCA8584100F: from=<root@errlock.org>, size=404, nrcpt=1 (queue active)
Aug 17 10:25:42 mediacenter postfix/smtp[3602]: warning: per-session SASL client initialization: generic failure
Aug 17 10:25:42 mediacenter postfix/smtp[3602]: fatal: SASL per-connection initialization failed
Aug 17 10:25:43 mediacenter postfix/qmgr[3600]: warning: private/smtp socket: malformed response
Aug 17 10:25:43 mediacenter postfix/qmgr[3600]: warning: transport smtp failure -- see a previous warning/fatal/panic logfile record for the problem description
Aug 17 10:25:43 mediacenter postfix/master[14795]: warning: process /usr/lib/postfix/smtp pid 3602 exit status 1
Aug 17 10:25:43 mediacenter postfix/master[14795]: warning: /usr/lib/postfix/smtp: bad command startup -- throttling
Aug 17 10:25:43 mediacenter postfix/error[3672]: 90C1A5814D55: to=<domovoy@errlock.org>, relay=none, delay=542, delays=491/51/0/0.06, dsn=4.3.0, status=deferred (unknown mail transport error)
Aug 17 10:25:45 mediacenter postfix/smtp[3611]: warning: per-session SASL client initialization: generic failure
Aug 17 10:25:45 mediacenter postfix/smtp[3611]: fatal: SASL per-connection initialization failed
Aug 17 10:25:46 mediacenter postfix/qmgr[3600]: warning: private/smtp socket: malformed response
Aug 17 10:25:46 mediacenter postfix/qmgr[3600]: warning: transport smtp failure -- see a previous warning/fatal/panic logfile record for the problem description
Aug 17 10:25:46 mediacenter postfix/master[14795]: warning: process /usr/lib/postfix/smtp pid 3611 exit status 1
Aug 17 10:25:46 mediacenter postfix/error[3672]: DBCA8584100F: to=<domovoy@errlock.org>, relay=none, delay=52, delays=0.08/51/0/0.04, dsn=4.3.0, status=deferred (unknown mail transport error)