[Dovecot] lmtp error at domains containing "-" sign
hallo,
I have running dovecot 2.0.9.
I want to deliver mail with rcipient prameter "-", we spoked about that at thread "LMTP with address extension" and after your patch and version 2.0.8 that works.
But now, there's an another much greater problem. No mails to adresses, which domain-part contains an "-" sign wil be delivered (i.e. test@aku-punkt-berlin.de). lmtp is looking about the user "test@aku" instead of "test@aku-punkt-berlin.de" and the following logentries appears:
Feb 3 10:46:36 vserver08 dovecot: auth: Debug: sql(test@aku): SELECT '/var/vmail/' || maildir as home, '5000' AS uid, '5000' AS gid, '*:bytes=' || quota as quota_rule FROM mailbox WHERE username = 'test@aku' and active = true
Feb 3 10:46:36 vserver08 dovecot: auth: sql(test@aku): Unknown user
Greatings Christoph
On Thu, 2011-02-03 at 11:34 +0100, ckubu wrote:
I want to deliver mail with rcipient prameter "-", we spoked about that at thread "LMTP with address extension" and after your patch and version 2.0.8 that works.
But now, there's an another much greater problem. No mails to adresses, which domain-part contains an "-" sign wil be delivered (i.e. test@aku-punkt-berlin.de). lmtp is looking about the user "test@aku" instead of "test@aku-punkt-berlin.de" and the following logentries appears:
http://hg.dovecot.org/dovecot-2.0/rev/c34d871a7bb6 should fix this.
hi,
I want to deliver mail with rcipient prameter "-", we spoked about that at thread "LMTP with address extension" and after your patch and version 2.0.8 that works.
But now, there's an another much greater problem. No mails to adresses, which domain-part contains an "-" sign wil be delivered (i.e. test@aku-punkt-berlin.de). lmtp is looking about the user "test@aku" instead of "test@aku-punkt-berlin.de" and the following logentries appears:
http://hg.dovecot.org/dovecot-2.0/rev/c34d871a7bb6 should fix this.
yes, it works well. thanks timo...
christoph
hi,
I want to deliver mail with rcipient prameter "-", we spoked about that at thread "LMTP with address extension" and after your patch and version 2.0.8 that works.
But now, there's an another much greater problem. No mails to adresses, which domain-part contains an "-" sign wil be delivered (i.e. test@aku-punkt-berlin.de). lmtp is looking about the user "test@aku" instead of "test@aku-punkt-berlin.de" and the following logentries appears:
http://hg.dovecot.org/dovecot-2.0/rev/c34d871a7bb6 should fix this.
yes, it works well. thanks timo...
Sorry, but now i went into another problem: for _normal_ mailboxes of type name1-name2@domain.tld, no mail will be delivered. lmtp said "User doesn't exist" - lmtp is looking of user "name1@domain.tld".
Is it possible, that for mails, whose local-part contains the recipient_delimeter, lmtp first checks existence of a user with full local part address and afterward, if no user was found, checks local part without extension?
All my problems concerning the recipient parameter are the result of changing mailsystem from qmail+vpopmail (with default mail extension settings) to postfix+dovecot+lmtp (with non standard recipient_delimeter). Maybe you think, thats a very special situation and theres no sense in implementing that to dovecot. that would be ok too.
greetings christoph
On 7.2.2011, at 15.01, ckubu wrote:
Sorry, but now i went into another problem: for _normal_ mailboxes of type name1-name2@domain.tld, no mail will be delivered. lmtp said "User doesn't exist" - lmtp is looking of user "name1@domain.tld".
Is it possible, that for mails, whose local-part contains the recipient_delimeter, lmtp first checks existence of a user with full local part address and afterward, if no user was found, checks local part without extension?
Possible? Yes. Do I want to add such code? Not really. It'll just slow down deliveries for most other people.
All my problems concerning the recipient parameter are the result of changing mailsystem from qmail+vpopmail (with default mail extension settings) to postfix+dovecot+lmtp (with non standard recipient_delimeter). Maybe you think, thats a very special situation and theres no sense in implementing that to dovecot. that would be ok too.
I wonder if you could do that address rewriting in SMTP server before handing the mail over to Dovecot. So that Dovecot only sees user+detail@domain.
hallo,
Sorry, but now i went into another problem: for _normal_ mailboxes of type name1-name2@domain.tld, no mail will be delivered. lmtp said "User doesn't exist" - lmtp is looking of user "name1@domain.tld".
Is it possible, that for mails, whose local-part contains the recipient_delimeter, lmtp first checks existence of a user with full local part address and afterward, if no user was found, checks local part without extension?
Possible? Yes. Do I want to add such code? Not really. It'll just slow down deliveries for most other people.
All my problems concerning the recipient parameter are the result of changing mailsystem from qmail+vpopmail (with default mail extension settings) to postfix+dovecot+lmtp (with non standard recipient_delimeter). Maybe you think, thats a very special situation and theres no sense in implementing that to dovecot. that would be ok too.
I wonder if you could do that address rewriting in SMTP server before handing the mail over to Dovecot. So that Dovecot only sees user+detail@domain.
maybe i missunderstood, but the real mailbox name is name-detail@domain and thats what dovecot sees. so i don't know, what rewriting to do.
lg christoph
On 8.2.2011, at 2.39, ckubu wrote:
All my problems concerning the recipient parameter are the result of changing mailsystem from qmail+vpopmail (with default mail extension settings) to postfix+dovecot+lmtp (with non standard recipient_delimeter). Maybe you think, thats a very special situation and theres no sense in implementing that to dovecot. that would be ok too.
I wonder if you could do that address rewriting in SMTP server before handing the mail over to Dovecot. So that Dovecot only sees user+detail@domain.
maybe i missunderstood, but the real mailbox name is name-detail@domain and thats what dovecot sees. so i don't know, what rewriting to do.
I understood that you have to kinds of '-' chars in the username:
user-detail@domain user-name-with-dashes@domain
Where you could set the rewriting to give them to Dovecot as:
user+detail@domain user-name-with-dashes@domain
is the part of postfix to rewrite addresses
man 8 virtual
Le mardi 08 février 2011 à 03:17 +0200, Timo Sirainen a écrit :
On 8.2.2011, at 2.39, ckubu wrote:
All my problems concerning the recipient parameter are the result of changing mailsystem from qmail+vpopmail (with default mail extension settings) to postfix+dovecot+lmtp (with non standard recipient_delimeter). Maybe you think, thats a very special situation and theres no sense in implementing that to dovecot. that would be ok too.
I wonder if you could do that address rewriting in SMTP server before handing the mail over to Dovecot. So that Dovecot only sees user+detail@domain.
maybe i missunderstood, but the real mailbox name is name-detail@domain and thats what dovecot sees. so i don't know, what rewriting to do.
I understood that you have to kinds of '-' chars in the username:
user-detail@domain user-name-with-dashes@domain
Where you could set the rewriting to give them to Dovecot as:
user+detail@domain user-name-with-dashes@domain
-- gpg --keyserver pgp.mit.edu --recv-key 092164A7 http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x092164A7
hallo,
All my problems concerning the recipient parameter are the result of changing mailsystem from qmail+vpopmail (with default mail extension settings) to postfix+dovecot+lmtp (with non standard recipient_delimeter). Maybe you think, thats a very special situation and theres no sense in implementing that to dovecot. that would be ok too.
I wonder if you could do that address rewriting in SMTP server before handing the mail over to Dovecot. So that Dovecot only sees user+detail@domain.
maybe i missunderstood, but the real mailbox name is name-detail@domain and thats what dovecot sees. so i don't know, what rewriting to do.
I understood that you have to kinds of '-' chars in the username:
user-detail@domain user-name-with-dashes@domain
Where you could set the rewriting to give them to Dovecot as:
user+detail@domain user-name-with-dashes@domain
Ok, i now what you meen, I will look about such a resolution. thanks..
lg christoph
participants (4)
-
Charles Marcus
-
ckubu
-
fakessh @
-
Timo Sirainen