[Dovecot] + sub addressing setup
I have Dovecot/Postfix/MySQL/PostfixAdmin,
I'd like to setup + sub addressing (for +spam and possibly user-defined +folders)
I have setup a user+spam folder path in PostfixAdmin as so;
vvv+spam@tld path:tld/vvv@tld/.spam/
that requires me to put a 'duplicate' user with the + and +path for each user, the folks on PostfixAdmin suggested that Dovecot might have a better way of handling this, how do I accomplish this in Dovecot ?
thanks for any suggestions or tips
-- Voytek
On Mon, July 2, 2012 11:23 pm, Voytek Eymont wrote:
I have Dovecot/Postfix/MySQL/PostfixAdmin,
sorry, forgot to include conf setup:
doveconf -n # 2.1.1: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-220.23.1.el6.x86_64 x86_64 CentOS release 6.2 (Final) auth_cache_size = 1 k auth_mechanisms = plain login disable_plaintext_auth = no log_timestamp = "%Y-%m-%d %H:%M:%S " mail_location = maildir:~/Maildir mail_privileged_group = mail mbox_write_locks = fcntl namespace inbox { inbox = yes location = mailbox Drafts { special_use = \Drafts } mailbox Junk { special_use = \Junk } mailbox Sent { special_use = \Sent } mailbox "Sent Messages" { special_use = \Sent } mailbox Trash { special_use = \Trash } prefix = } passdb { args = /etc/dovecot/dovecot-sql.conf driver = sql } passdb { driver = pam } plugin { autocreate = Spam autosubscribe = Spam } protocols = imap pop3 service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0666 user = postfix } user = root } ssl = required ssl_cert = </etc/pki/dovecot/certs/dovecot.pem ssl_key = </etc/pki/dovecot/private/dovecot.pem userdb { driver = passwd } userdb { args = /etc/dovecot/dovecot-sql.conf driver = sql } protocol pop3 { pop3_uidl_format = %08Xu%08Xv } protocol imap { mail_plugins = " autocreate" }
-- Voytek
See this this thread: http://dovecot.org/list/dovecot/2012-June/066374.html
Regards, Pascal
The trapper recommends today: c01dcafe.1218419@localdomain.org
On 07/02/2012 08:00 PM Pascal Volk wrote:
See this this thread: http://dovecot.org/list/dovecot/2012-June/066374.html
Oh, forget that tread. :)
I hope you are using Dovecot's lmtp, then set lmtp_save_to_detail_mailbox = yes, in your 20-lmtp.conf. Otherwise pass use the -m option with dovecot-lda (http://wiki2.dovecot.org/Tools/DovecotLDA)
Regards, Pascal
The trapper recommends today: deadbeef.1218420@localdomain.org
On Tue, July 3, 2012 4:15 am, Pascal Volk wrote:
Oh, forget that tread. :) I hope you are using Dovecot's lmtp, then set lmtp_save_to_detail_mailbox = yes, in your 20-lmtp.conf. Otherwise pass use the -m option with dovecot-lda (http://wiki2.dovecot.org/Tools/DovecotLDA)
Pascal, thanks for your help
OK, I wasn't, now, trying, using http://wiki2.dovecot.org/HowTo/PostfixDovecotLMTP but, I'm not getting very far:
The first step is to enable its stack via /etc/dovecot/dovecot.conf
!include conf.d/*.conf protocols = imap lmtp
as soon as I past these two lines at the very end of /etc/dovecot.conf, and reload, I get like;
Jul 3 22:58:16 dovecot: master: Warning: SIGHUP received - reloading configuration Jul 3 22:58:16 dovecot: master: Error: Error reading configuration: input is missing end-of-settings line
-- Voytek
On 07/03/2012 03:09 PM Voytek Eymont wrote:
… Jul 3 22:58:16 dovecot: master: Error: Error reading configuration: input is missing end-of-settings line
I guess there is somewhere a missing closing curly bracket in one of your configuration files.
Regards, Pascal
The trapper recommends today: deadbeef.1218619@localdomain.org
On Thu, July 5, 2012 3:33 am, Pascal Volk wrote:
I guess there is somewhere a missing closing curly bracket in one of your configuration files.
Pascal, thanks for all the pointers, I think I got it, I inserted some of the lines in dovecot.conf itself (rather than conf.d), and, I think it's working:
# grep dovecot /var/log/maillog | grep lmtp
Jul 8 01:05:41 dovecot: lmtp(30465): Connect from local Jul 8 01:05:41 dovecot: lmtp(30465, v@tld): XSqYMEVQ+E8BdwAAyLbbsQ: msgid=<860624821.1534673480413.JavaMail.app@rbg42.atlis1>: saved mail to INBOX Jul 8 01:05:41 postfix/lmtp[30623]: 984DB381909: to=<v@tld>, relay=host.tld[private/dovecot-lmtp], delay=0.33, delays=0.18/0.01/0/0.14, dsn=2.0.0, status=sent (250 2.0.0 <v@tld> XSqYMEVQ+E8BdwAAyLbbsQ Saved) Jul 8 01:05:41 dovecot: lmtp(30465): Disconnect from local: Client quit (in reset)
thanks very much for your help
so, is this how it's supposed to work:
as long as there is a corresponding directory 'subdir', name+subdir gets delivered to 'subdir', otherwise, if no 'subdir', gets delivered to inbox ?
-- Voytek
participants (2)
-
Pascal Volk
-
Voytek Eymont