* Dan Winchester <2...@dan.co.uk>: > I am new to Postfix. > > I am trying to get Postfix to relay via mail.authsmtp.com. > > I have added the following lines to main.cf > > relayhost = [mail.authsmtp.com] > smtp_sasl_auth_enable = yes > smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd > smtp_sasl_security_options = noanonymous > > I get the following errors: > > warning: SASL authentication failure: No worthy mechs found > > SASL authentication failed; cannot authenticate to server > mail.authsmtp.com[62.13.128.189]: no mechanism available > > I have run saslfinger -c (as advised in a previous post to this list), and > have copied the output below this email. > > Any help would be gratefully received! > > Cheers > Dan > > # saslfinger -c > saslfinger - postfix Cyrus sasl configuration Thu Aug 27 06:23:33 EDT 2009 > version: 1.0.2 > mode: client-side SMTP AUTH > > -- basics -- > Postfix: 2.3.3 > System: CentOS release 5.3 (Final) > > -- smtp is linked to -- > libsasl2.so.2 => /usr/lib64/libsasl2.so.2 (0x00007fd1b846e000) > > -- active SMTP AUTH and TLS parameters for smtp -- > relayhost = [mail.authsmtp.com] > smtp_sasl_auth_enable = yes > smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd > smtp_sasl_security_options = noanonymous > > > -- listing of /usr/lib64/sasl2 -- > total 2712 > drwxr-xr-x 2 root root 4096 Aug 5 05:55 . > drwxr-xr-x 39 root root 20480 Aug 6 04:02 .. > -rwxr-xr-x 1 root root 890 Jan 7 2007 libanonymous.la > -rwxr-xr-x 1 root root 15880 Jan 7 2007 libanonymous.so > -rwxr-xr-x 1 root root 15880 Jan 7 2007 libanonymous.so.2 > -rwxr-xr-x 1 root root 15880 Jan 7 2007 libanonymous.so.2.0.22 > -rwxr-xr-x 1 root root 936 Jan 7 2007 libsasldb.la > -rwxr-xr-x 1 root root 892920 Jan 7 2007 libsasldb.so > -rwxr-xr-x 1 root root 892920 Jan 7 2007 libsasldb.so.2 > -rwxr-xr-x 1 root root 892920 Jan 7 2007 libsasldb.so.2.0.22 > -rw-r--r-- 1 root root 26 Aug 14 2008 smtpd.conf > > -- listing of /usr/lib/sasl2 -- > total 68 > drwxr-xr-x 2 root root 4096 Aug 3 06:16 . > drwxr-xr-x 22 root root 12288 Aug 5 05:55 .. > -rwxr-xr-x 1 root root 884 Jan 7 2007 libanonymous.la > -rwxr-xr-x 1 root root 14372 Jan 7 2007 libanonymous.so > -rwxr-xr-x 1 root root 14372 Jan 7 2007 libanonymous.so.2 > -rwxr-xr-x 1 root root 14372 Jan 7 2007 libanonymous.so.2.0.22
I don't see any SASl modules for AUTH PLAIN or AUTH LOGIN here. You should use "yum" to search for packages like "cyrus-sasl", "sasl-modules" and similar. Cheers Stefan > -- listing of /etc/sasl2 -- > total 8 > drwxr-xr-x 2 root root 4096 Jan 7 2007 . > drwxr-xr-x 58 root root 4096 Aug 27 04:02 .. > > > -- permissions for /etc/postfix/sasl_passwd -- > -rw------- 1 root root 37 Aug 18 08:08 /etc/postfix/sasl_passwd > > -- permissions for /etc/postfix/sasl_passwd.db -- > -rw------- 1 root root 12288 Aug 18 08:10 /etc/postfix/sasl_passwd.db > > /etc/postfix/sasl_passwd.db is up to date. > > -- active services in /etc/postfix/master.cf -- > # service type private unpriv chroot wakeup maxproc command + args > # (yes) (yes) (yes) (never) (100) > smtp inet n - n - - smtpd > pickup fifo n - n 60 1 pickup > cleanup unix n - n - 0 cleanup > qmgr fifo n - n 300 1 qmgr > tlsmgr unix - - n 1000? 1 tlsmgr > rewrite unix - - n - - trivial-rewrite > bounce unix - - n - 0 bounce > defer unix - - n - 0 bounce > trace unix - - n - 0 bounce > verify unix - - n - 1 verify > flush unix n - n 1000? 0 flush > proxymap unix - - n - - proxymap > smtp unix - - n - - smtp > relay unix - - n - - smtp > -o fallback_relay= > showq unix n - n - - showq > error unix - - n - - error > discard unix - - n - - discard > local unix - n n - - local > virtual unix - n n - - virtual > lmtp unix - - n - - lmtp > anvil unix - - n - 1 anvil > scache unix - - n - 1 scache > maildrop unix - n n - - pipe > flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient} > old-cyrus unix - n n - - pipe > flags=R user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -m ${extension} > ${user} > cyrus unix - n n - - pipe > user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -r ${sender} -m > ${extension} ${user} > uucp unix - n n - - pipe > flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail > ($recipient) > ifmail unix - n n - - pipe > flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient) > bsmtp unix - n n - - pipe > flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient > > -- mechanisms on mail.authsmtp.com -- > > > -- end of saslfinger output --