2 msgpostmap header_checks error
10 msgmailbox_command (dovecot lda) stopped working, ...
5 msgmynetworks via LDAP lookup
7 msgLocal recipient table in LDAP problem
2 msgproxy_read_maps
1 msgsmtpd_restriction_class and it's lookup
8 msgMessage Rejected
12 msgCustomize to filter attachment ?
2 msgRelay question
14 msgunnecessary routing?
4 msgdo not use 'reject_maps_rbl'?
9 msgFwd: Postfix in OpenVZ.
2 msgbypass body_checks for local mail?
4 msgcatchall with relay_recipient_maps
4 msg'Name server failure' is output

smtp_sasl_password_maps lookups
\ (Marco d'Itri) (23 Jan 2008)
. \ Victor Duchovni (23 Jan 2008)
. \ Patrick Ben Koetter (23 Jan 2008)

16 msgPostfix Queues on a Ram Disk
15 msgsendmail compared to smtp sending
3 msgPostfix does not recognize remote emails
2 msgHow to disable SSLv2 on smtpd opportunistic TLS?
Subject:Re: smtp_sasl_password_maps lookups
Group:Postfix-users
From:Patrick Ben Koetter
Date:23 Jan 2008


 
* Marco d'Itri <md>:
> Exactly, what are the keys of smtp_sasl_password_maps lookups?
> I have been converting some of my old sendmail servers to postfix, and
> some postfix *clients* (managed by customers) stopped authenticating.
> Authentication does not fail, they do not even try to authenticate
> anymore. Both servers are only offering LOGIN and PLAIN.
>
> After investigating with the customers I noticed that their systems are
> apparently misconfigured, i.e. they use relayhost=[server] or
> smtp:[server] in a transport map but the smtp_sasl_password_maps key
> lacks the [].
> I can understand why this is not working, and adding the hostname with
> [] to the password map fixes it, but why did the postfix client
> correctly authenticate to the old sendmail servers?

Besides the DNS related issues that Viktor already mentioned:

One aspect why this might not work out of the box (or why you may get stuck
again as soon you've solved the current problem) is that the Postfix smtp
client SASL default policy is not to use plaintext mechanisms. As you
mentioned above your "servers are only offering LOGIN and PLAIN".

In cases like this you usually get "no worthy mechs found" as an error message
on the Postfix client side. To solve the problem you can either

- offer other, non-plaintext mechanisms such as CRAM-MD5 or DIGEST-MD5 on the
server side, which IMO is the preferred solution as authentication
credentials will be transmitted encrypted
- set "smtp_sasl_security_options = noanonymous" explicitly in main.cf and
thus override the default (see: postconf -d smtp_sasl_security_options). In
this case you want to enable TLS on the server-side and require your Postfix
client server to use TLS. Using TLS will shield the authentication
credential transmission from other parties.

p@rick

--
The Book of Postfix
<http://www.postfix-book.com>
saslfinger (debugging SMTP AUTH):
<http://postfix.state-of-mind.de/patrick.koetter/saslfinger/>


© 2004-2008 readlist.com