[Dovecot] LMTP with address extension
hallo,
I have a problem configuring lmtp service. I use postfix+dovcot2.0.7 with "recipient_delimeter = -". If i switch to dovecot-lda, all works fine, but going to lmtp service it dosn't.
Maybe it works with default delimeter "+", but i plan to move from qmail system with many existent mailboxes.
Enclosed some configuration/logentries.
Can you give me a hint ?
Best Wishes Christoph
dovecot logfile:
dovecot: auth: Debug: master in:
USER#0112#011test-tr@my-domain.de#011service=lmtp
dovecot: auth: Debug: sql(test-tr@my-domain.de): SELECT '/var/vmail/' ||
maildir as home, '5000' AS uid, '5000' AS gid FROM mailbox WHERE username
= 'test-tr@my-domain.de' and active = true
dovecot: auth: sql(test-tr@my-domain.de): Unknown user
dovecot: auth: Debug: master out: NOTFOUND#0112
dovecot: lmtp(3525): Debug: auth input:
dovecot: lmtp(3525): Disconnect from local: Client quit
postfix transport configuration:
virtual_transport = lmtp:unix:private/dovecot-lmtp
doveconf -n:
# 2.0.7: /usr/local/dovecot-2.0.7/etc/dovecot/dovecot.conf # OS: Linux 2.6.32-5-vserver-amd64 x86_64 Debian squeeze/sid ext3 auth_debug = yes auth_debug_passwords = yes auth_mechanisms = plain login digest-md5 cram-md5 apop auth_socket_path = /var/run/dovecot/auth-userdb auth_verbose = yes auth_verbose_passwords = plain base_dir = /var/run/dovecot/ disable_plaintext_auth = no first_valid_gid = 5000 first_valid_uid = 5000 hostname = mx.warenform.de last_valid_gid = 5000 last_valid_uid = 5000 listen = 1.2.3.4 mail_debug = yes mail_gid = vmail mail_location = maildir:/var/vmail/%d/%n/Maildir mail_plugins = autocreate mail_uid = vmail managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date passdb { args = /usr/local/dovecot/etc/dovecot/sql-connect.conf.ext driver = sql } plugin { autocreate = Spam autosubscribe = Spam sieve = ~/.dovecot.sieve sieve_dir = ~/sieve sieve_global_dir = /usr/local/dovecot/etc/dovecot/sieve/global/ sieve_global_path = /usr/local/dovecot/etc/dovecot/sieve/default.sieve } postmaster_address = admin@my-domain.de protocols = imap pop3 sieve lmtp service auth { unix_listener auth-userdb { group = vmail mode = 0600 user = vmail } } service imap-login { inet_listener imap { address = 127.0.0.1 , 1.2.3.4 } inet_listener imaps { address = 1.2.3.4 } } service lmtp { unix_listener /var/spool/postfix/private/dovecot-lmtp { group = postfix mode = 0660 user = postfix } } service pop3-login { inet_listener pop3 { address = 1.2.3.4 }} shutdown_clients = no ssl_cert =
On 30.11.2010, at 3.41, ckubu wrote:
I have a problem configuring lmtp service. I use postfix+dovcot2.0.7 with "recipient_delimeter = -". If i switch to dovecot-lda, all works fine, but going to lmtp service it dosn't.
I guess you mean Postfix's recipient_delimiter setting? Set it also in Dovecot's config.
hallo,
I have a problem configuring lmtp service. I use postfix+dovcot2.0.7 with "recipient_delimeter = -". If i switch to dovecot-lda, all works fine, but going to lmtp service it dosn't.
I guess you mean Postfix's recipient_delimiter setting? Set it also in Dovecot's config.
Thanks for the fast response and sorry, yes i mean postfix's recipient_delimiter. I already testet with different settings of dovecot's recipient_delimiters. If setting global recipient_delimiter (15-lda.conf), lmtp accepted the mail (that was i expected), but sieve tried to deliver the mail to the (extension part named) subdirectory of that user, even if sieve's recipient_delimiter (90-sieve.conf) ist not set ("recipient_delimiter =").
In all my tests, setting of recipient_delimiter in part "plugin {.." doesn't do anithing. always the same behavior, if set or not.
In my situation, i want stay with setting "lda_mailbox_autocreate = yes" and on the other hand, i don't want mailbox creation based on recipient address.
I found a solution for that by setting userdb's user_query - i use a postgres database backend. if dovecot would spend a parameter for the smtp-servers address extension settings, it is possible to formulate that query in a more commen way.
I know, my understanding of address-extension handling is mostly influenced by qmails behavior and therefore: no offence. dovecot at all and in particular the lmtp service is very great !
sorry for my bad english Christoph
On Tue, 2010-11-30 at 19:59 +0100, ckubu wrote:
Thanks for the fast response and sorry, yes i mean postfix's recipient_delimiter. I already testet with different settings of dovecot's recipient_delimiters. If setting global recipient_delimiter (15-lda.conf), lmtp accepted the mail (that was i expected),
Right.
but sieve tried to deliver the mail to the (extension part named) subdirectory of that user,
Oh no. I didn't intend that feature to be enabled by default. I guess it sneaked in kind of accidentally. Now, wonder if I should just change the default behavior or not .. I'm leaning towards changing the default, better to break a few installations now than many later.
Changed in hg now: http://hg.dovecot.org/dovecot-2.0/rev/d7886c6d9ba5
even if sieve's recipient_delimiter (90-sieve.conf) ist not set ("recipient_delimiter =").
I thought Sieve would be using the global recipient_delimited, not the one inside plugin {}. Stephan, should that just be removed from the example config?
Op 30-11-2010 23:40, Timo Sirainen schreef:
On Tue, 2010-11-30 at 19:59 +0100, ckubu wrote:
even if sieve's recipient_delimiter (90-sieve.conf) ist not set ("recipient_delimiter ="). I thought Sieve would be using the global recipient_delimited, not the one inside plugin {}. Stephan, should that just be removed from the example config?
Well, currently it is read usingmail_user_plugin_getenv(), so I think I will need to do some changes to achieve the config behavior you describe.
Regards,
Stephan.
participants (3)
-
ckubu
-
Stephan Bosch
-
Timo Sirainen