[Dovecot] Logging in with '+' delimiter
Dovecot v1.2.4 FreeBSD-7.2
I have Postfix configured to use Virtual Users & Domains and use Dovecot for virtual delivery. Postfix also sends, dovecot correctly places mail with '+'addressing; i.e., "foo+bar@domain.com" into "path-to-mail/domain.com/foo+bar". The problem is when I attempt to access the mailbox, the user name: foo+bar@domain.com is rejected.
Is this by design, or is there a way to circumvent this problem?
-- Jerry gesbbb@yahoo.com
Fortune favors the lucky.
On Oct 7, 2009, at 8:48 AM, Jerry wrote:
I have Postfix configured to use Virtual Users & Domains and use Dovecot for virtual delivery. Postfix also sends, dovecot correctly places mail with '+'addressing; i.e., "foo+bar@domain.com" into "path-to-mail/domain.com/foo+bar".
Is this right? Typically it would be placed in mail/domain/foo/.bar/
or something, i.e. a mailbox called" bar" for user "foo"..
The problem is when I attempt to access the mailbox, the user name: foo+bar@domain.com is rejected.
Is this by design, or is there a way to circumvent this problem?
You can safely add "+" to auth_username_chars setting.
On 10/7/2009, Jerry (gesbbb@yahoo.com) wrote:
Postfix also sends, dovecot correctly places mail with '+'addressing; i.e., "foo+bar@domain.com" into "path-to-mail/domain.com/foo+bar".
If you are using plus addressing, the actual user is 'foo', so this mail should go into '.../domain.com/foo', not '.../foo+bar' - unless you are using sieve, in which case it *could* be delivered to a subfolder called '.../foo/.bar' or '.../foo.bar'
The problem is when I attempt to access the mailbox, the user name: foo+bar@domain.com is rejected.
Thats because the user is 'foo', not 'foo+bar'...
If you are using dovecot LDA?
http://wiki.dovecot.org/LDA/Sieve#Plus_Addressed_mail_filtering
--
Best regards,
Charles
On Wed, 07 Oct 2009 11:08:11 -0400 Charles Marcus <CMarcus@Media-Brokers.com> wrote:
On 10/7/2009, Jerry (gesbbb@yahoo.com) wrote:
Postfix also sends, dovecot correctly places mail with '+'addressing; i.e., "foo+bar@domain.com" into "path-to-mail/domain.com/foo+bar".
If you are using plus addressing, the actual user is 'foo', so this mail should go into '.../domain.com/foo', not '.../foo+bar' - unless you are using sieve, in which case it *could* be delivered to a subfolder called '.../foo/.bar' or '.../foo.bar'
The problem is when I attempt to access the mailbox, the user name: foo+bar@domain.com is rejected.
Thats because the user is 'foo', not 'foo+bar'...
If you are using dovecot LDA?
http://wiki.dovecot.org/LDA/Sieve#Plus_Addressed_mail_filtering
This is the folder it is delivered to.
drwx------ 5 vmail vmail 512B Oct 7 11:56 foo+bar/
I am using maildir format.
/usr/local/etc/postfix/master.cf
#Dovecot with '+' addressing dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/local/libexec/dovecot/deliver -f ${sender} -d ${user}@${nexthop} -a ${recipient}
I have not been able to get sieve working yet. It will take awhile.
-- Jerry gesbbb@yahoo.com
If money can't buy happiness, I guess you'll just have to rent it.
participants (3)
-
Charles Marcus
-
Jerry
-
Timo Sirainen