Stefan Nehlsen wrote:
> Is there a size limitation for id in postfix smtp-client/sasl?
>
> I am trying to set up sender_dependent_relayhost_maps for
> different users on a machine at home. It works fine for one
> user (a) but fails for the other (b).
>
> Nov 20 00:07:03 hub postfix/pickup[25952]: 4E9686FB47: uid=1003 from=<b>
>   

The sendmail command was invoked without the sender being specified.
> Nov 20 00:07:03 hub postfix/cleanup[25961]: 4E9686FB47:
> message-id=<[EMAIL PROTECTED]>
> Nov 20 00:07:03 hub postfix/qmgr[25704]: 4E9686FB47: from=<[EMAIL PROTECTED]>,
> size=417, nrcpt=1 (queue active)
>   

Postfix appends myorigin.

> Nov 20 00:07:03 hub postfix/smtp[25963]: 4E9686FB47:
> to=<[EMAIL PROTECTED]>, relay=mail.gmx.net[213.165.64.20]:25, delay=0.36,
> delays=0.14/0.03/0.1/0.1, dsn=5.7.0, status=bounce
> d (host mail.gmx.net[213.165.64.20] said: 550 5.7.0 Need to authenticate
> via SMTP-AUTH-Login {mp037} (in reply to MAIL FROM command))
>
> The account data of b is correct because a mua (evolution) was able
> to authenticate.
>   

Prove it with logs. IMAP auth does not equal SMTP auth.

> I am using debian etch on a tiny Linksys NSLU2 and so I would like
> to stick with the normal packages and not build newer versions.
>
> Postfix version is 2.3.8
> SASL version is 2.1.22
>
> The only difference between a and b is that [EMAIL PROTECTED]
> is longer than [EMAIL PROTECTED]
>
> Could it be that there is a size limit for user ids in the Postfix
> smtp client or in libsasl2 ?
>
> The relevant part of the main.cf :
> ------
> myhostname = hub.zuhause
> myorigin = /etc/mailname
> relayhost = smtp.my-provider.de
> smtp_generic_maps = hash:/etc/postfix/generic
> sender_dependent_relayhost_maps = hash:/etc/postfix/sender_relayhosts
> smtp_sender_dependent_authentication = yes
> smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
> smtp_sasl_auth_enable = yes
> smtp_sasl_security_options = noanonymous
> -----
>
>   

I would try adding 'virtual_alias_map = hash:/etc/postfix/generic'
This manipulates the address at cleanup stage instead of at smtp time.
I am unsure of the timing of each stage of smtp, but this should clear
up when things are rewritten for auth purposes.
(That last statement could be completely wrong, but the
virtual_alias_maps may fix things for you.)

Brian

> generic :
> -----
> [EMAIL PROTECTED]       [EMAIL PROTECTED]
> [EMAIL PROTECTED]   [EMAIL PROTECTED]
> [EMAIL PROTECTED]       [EMAIL PROTECTED]
> [EMAIL PROTECTED]   [EMAIL PROTECTED]
> -----
>
>
> sender_relayhosts :
> -----
> [EMAIL PROTECTED]               [mail.gmx.net]
> [EMAIL PROTECTED]   [mail.gmx.net]
> [EMAIL PROTECTED]               [mail.gmx.net]
> [EMAIL PROTECTED] [mail.gmx.net]
> -----
>
> sasl_passwd :
> -----
> [EMAIL PROTECTED]   [EMAIL PROTECTED]:password
> [EMAIL PROTECTED] [EMAIL PROTECTED]:passwrod
> -----
>
>
> cu, Stefan
>
>
>   

Reply via email to