OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: postfix - sasl problems.

From: Andreas Winkelmann (mlawinkelmann.de)
Date: Fri Dec 29 2006 - 08:21:32 CST


On Friday 29 December 2006 11:18, domingosrealvisual.com wrote:

> This is driving me crazy. Should I use pop-before-smtp instead?

No, why?

> I don't know what to do more?

> > This means the "pwcheck_method" which is configured in your smtpd.conf is
> > wrong.
> >
> > > -- content of /etc/postfix/sasl/smtpd.conf --
> > > pwcheck_method: saslauthd
> >
> > Hmm, strange, this looks good. If this is the right Configuration-File,
> > check if there are Whitespaces or other Characters in the Line (Maybe a
> > DOS CR/LF). Make a Hexdump.
>
> - hexdump -C /etc/postfix/sasl/smtpd.conf
> 00000000 70 77 63 68 65 63 6b 5f 6d 65 74 68 6f 64 3a 20
> |pwcheck_method: | 00000010 73 61 73 6c 61 75 74 68 64 0d 0a 73 61 73 6c

There is a 0x0d 0x0a behind the saslauthd. This is a DOS-CR-LF. Change that.

# mv smtpd.con smtpd_dos.conf
# tr -d '\r' < smtpd_dos.conf > smtpd.conf

> 61 |saslauthd..sasla| 00000020 75 74 68 64 5f 70 61 74 68 3a 20 2f 76 61
> 72 2f |uthd_path: /var/| 00000030 72 75 6e 2f 73 61 73 6c 61 75 74 68 64
> 2f 6d 75 |run/saslauthd/mu| 00000040 78 20 0d 0a 6d 65 63 68 5f 6c 69 73
> 74 3a 20 50 |x ..mech_list: P| 00000050 4c 41 49 4e 20 4c 4f 47 49 4e 0d
> 0a 6c 6f 67 5f |LAIN LOGIN..log_| 00000060 6c 65 76 65 6c 3a 20 37 0d 0a
> |level: 7..| 0000006a

--
        Andreas