Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 09-16-2007, 04:45 PM   #1
LQ Newbie
Registered: Sep 2003
Posts: 15

Rep: Reputation: 0
postfix sasl configuration - please help!

I've been on this for three days now and am getting nowhere!

ok I have sasl and postfix all working but not together. if I do..

tetstsaslauthd -u useername -p password I get an OK so sasl is working againts the shadow password file.

when trying to authenticate from a mail client I get...

Sep 16 22:42:37 mail postfix/smtpd[17154]: warning: SASL authentication problem: unknown password verifier
Sep 16 22:42:37 mail postfix/smtpd[17154]: warning:[]: SASL LOGIN authentication failed: no mechanism available
Sep 16 22:42:37 mail postfix/smtpd[17154]: lost connection after AUTH from[]

my file....
# These are only the parameters changed from a default install
# see /etc/postfix/ for a commented, fuller version of this file.

# These are changed by postfix install script
readme_directory = /usr/share/doc/postfix-2.1.5/README_FILES
sample_directory = /usr/share/doc/postfix-2.1.5/samples
html_directory = /usr/share/doc/postfix-2.1.5/html
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
command_directory = /usr/sbin
manpage_directory = /usr/share/man
daemon_directory = /usr/libexec/postfix/
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
mailbox_size_limit = 0
message_size_limit = 0

# User configurable parameters
mynetworks_style = class
mynetworks =,
myhostname =
mydonain =
myorigin = $mydomain
delay_warning_time = 4h
smtpd_banner = $myhostname ESMTP $mail_name
unknown_local_recipient_reject_code = 450
smtp-filter_destination_concurrency_limit = 2
lmtp-filter_destination_concurrency_limit = 2
# by IJ - this sorted out delivering locally
mydestination = $myhostname, localhost.$mydomain, localhost,,,
smtpd_sasl_path = smtpd
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_recipient_restrictions =
broken_sasl_auth_clients = yes

postfix is working fine on the internal lan - sending and receiving ok but simply can't connect from outside with authentication
please help!

Last edited by fishy; 09-17-2007 at 02:06 AM.
Old 09-17-2007, 11:35 AM   #2
LQ Newbie
Registered: Sep 2003
Posts: 15

Original Poster
Rep: Reputation: 0
For the benefit of others scratching their heads - here's how i got it working

in /etc/postfix/ - add the following lines

smtpd_sasl_path = smtpd
smtpd_sasl_type = cyrus
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_recipient_restrictions =
broken_sasl_auth_clients = yes

/usr/lib/sasl2/smtpd.conf should look like this:

pwcheck_method: saslauthd
mech_list: plain login

And the bit that was really throwing me is saslauthd was starting in the incorrect directory, so I assume that postfix either did not know about it or couldn't see it. the SOCKETDIR used to be /var/spool/postfix/var/run/saslauthd

/etc/sysconfig/saslauthd now looks like this:

PARAMS="-m /var/run/saslauthd"

and it now all works....


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix with Sasl for Engarde? natewlew Linux - Software 0 09-05-2006 09:34 PM
sasl and postfix configuration smaida Linux - Software 2 12-15-2004 07:48 PM
Mdk 10 + postfix + sasl the_reen Mandriva 1 10-05-2004 05:37 PM
postfix,sasl problem strace Mandriva 1 09-02-2004 09:00 AM
postfix and sasl issue nielchiano Linux - Networking 0 04-22-2004 09:38 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:33 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration