Postfix user at domain splitting

Ricardo Branco ricardo at wenn.com
Wed Jul 16 13:56:41 UTC 2014


Shows that auth is not honouring the %n i have.
Does the username_format need to be only in the userdb section or also the passdb part?

http://pastie.org/9396504

Ricardo Branco wrote, On 15/07/2014 18:23:
> That was done for testing to see if it made any difference when I moved to LDA, in LDA mode it seems to not care if 
> that is %n or %u, it always takes the first part of the email address which is weird.
> Ive just tested again to confirm on %n and its not working so ive reverted again back to LDA which does. Seems to not 
> matter how that variable is set it does not do anything.
>
> When using %n ive tried to see if I can login via IMAP with the whole username but again no, this is the error, note 
> the difference between the 'user' field on each line.
>
> Jul 15 18:22:17 imap-login: Info: Login: user=<mark.whittaker>, method=PLAIN, rip=10.0.0.180, lip=10.100.0.198, 
> mpid=9493, session=<VVE8pj7+9wAKAAC0>
> Jul 15 18:22:20 imap-login: Info: Disconnected: Shutting down (auth failed, 4 attempts in 37 secs): 
> user=<mark.whittaker at Wenn.com>, method=PLAIN, rip=10.0.0.3, lip=10.100.0.198, TLS, session=<Vjs9pD7+IgAKAAAD>
>
> Steffen Kaiser wrote, On 15/07/2014 13:18:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> On Tue, 15 Jul 2014, Ricardo Branco wrote:
>>
>>> Attached files
>>>
>>> Nick Edwards wrote, On 15/07/2014 10:19:
>>>> you need to show doveconf -n
>>>> and what you have in the master.conf for dovecot
>>>>
>>>> On 7/15/14, Ricardo Branco <ricardo at wenn.com> wrote:
>>>>> I have been trying looking though all the wiki documents to setup LMTP.
>>>>> It now seems to all be connected except that it keeps saying that the
>>>>> user is not recognised when postfix sends to LMTP, it sends the full
>>>>> recipent email address but seems that on the dovecot side it is unable
>>>>> to work with this.
>>>>> I have checked the userdb and made sure its using %n but alas it still
>>>>> does not work.
>>
>> userdb {
>>   args = username_format=%u /etc/passwd
>>   driver = passwd-file
>>   name = passwd-file
>> }
>>
>> In opposite to your sentence I see a %u there.
>>
>>>>> Currently ive had to revert to using LDA as it works fine with that but
>>>>> i still dont know how as the postfix config variable $RECIPIENT is the
>>>>> full email address and does not seem to matter to LDA.
>>>>>
>>>
>>>
>>
>> - -- Steffen Kaiser
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.4.11 (GNU/Linux)
>>
>> iQEVAwUBU8UcInz1H7kL/d9rAQKXQAgAmu6NnZOqdQKEgKhk6q/CPtXza+dkUh7f
>> 4Ms2tJFw2krwKNeZOvKGOsEeD7XyFDYpfZFDqEewjffqlABUUytIRPXzD3xFvzXV
>> DuXTW1VseEP26ewR7odHN9J+WL1Unh52HnxFgM63Bo1IwYzF84K09VO3DxqobuF7
>> S8MqQYj6MPqB73IZUbVzRkCDBM0mv52Gx14LFmmPXbphgZFmtixkUy2CpPOT/l02
>> 0aBSsJZqV/ySKcB2V5UNCj8GoGvwyH3Jh9RFeNIlUKYZYT9s534rfbKu7+T6645I
>> 67daEtZjfAbBOi/foqh41kbSpSaHIMvF970EP/EozFgMBsnghQ+SLg==
>> =6YKs
>> -----END PGP SIGNATURE-----



More information about the dovecot mailing list