I am using Dovecot 1.2RC2 with Postfix 2.5.5. Everything is running fine. I would like to start using address extensions and have e-mail automatically filtered into folders based on the folder name after the "+" in the e-mail address. I only use system users, no virtual users. I have Deliver configured in main.cf as: mailbox_command = /usr/local/libexec/dovecot/deliver Everything I can find about setting this up applies to virtual users which I do not have. How do I get Deliver to recognize the address extension. I am sure it is easy, and I apologize for not finding the answer out myself. Here is a copy of my dovecot -n output: # 1.2.rc2: /usr/local/etc/dovecot.conf # OS: Linux 2.6.29-1-amd64 x86_64 Debian squeeze/sid base_dir: /var/run/dovecot/ protocols: imap imaps pop3 pop3s ssl_cert_file: /etc/ssl/certs/stikman-godaddy.crt ssl_key_file: /etc/ssl/private/stikman-godaddy.key ssl_cipher_list: ALL:!LOW:!SSLv2 disable_plaintext_auth: no login_dir: /var/run/dovecot//login login_executable(default): /usr/local/libexec/dovecot/imap-login login_executable(imap): /usr/local/libexec/dovecot/imap-login login_executable(pop3): /usr/local/libexec/dovecot/pop3-login mail_location: maildir:~/Maildir mail_executable(default): /usr/local/libexec/dovecot/imap mail_executable(imap): /usr/local/libexec/dovecot/imap mail_executable(pop3): /usr/local/libexec/dovecot/pop3 mail_plugin_dir(default): /usr/local/lib/dovecot/imap mail_plugin_dir(imap): /usr/local/lib/dovecot/imap mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3 auth default: mechanisms: plain login passdb: driver: pam userdb: driver: passwd plugin: sieve: sieve
On Thu, 2009-04-16 at 11:14 -0700, Jeff Grossman wrote:> Everything I can find about setting this up applies to virtual users which > I do not have. How do I get Deliver to recognize the address extension. > I am sure it is easy, and I apologize for not finding the answer out > myself.Nope. Actually deliver doesn't currently support that feature at all internally. You could always write a wrapper script that split the extension part and feed it separately to deliver.. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20090416/d1f21395/attachment-0002.bin>
Timo Sirainen wrote:> On Thu, 2009-04-16 at 11:14 -0700, Jeff Grossman wrote: >> Everything I can find about setting this up applies to virtual users >> which >> I do not have. How do I get Deliver to recognize the address extension. >> I am sure it is easy, and I apologize for not finding the answer out >> myself. > > Nope. Actually deliver doesn't currently support that feature at all > internally. You could always write a wrapper script that split the > extension part and feed it separately to deliver.. >Well doesn't that suck. I have no idea how to create a wrapper script. I guess I need to figure something else out. So, if I was create virtual users I would be able to use the +ext filter method?
On 4/16/2009 2:08 PM, Timo Sirainen wrote:> On Thu, 2009-04-16 at 11:14 -0700, Jeff Grossman wrote: > >> Everything I can find about setting this up applies to virtual users which >> I do not have. How do I get Deliver to recognize the address extension. >> I am sure it is easy, and I apologize for not finding the answer out >> myself. >> > Nope. Actually deliver doesn't currently support that feature at all > internally. You could always write a wrapper script that split the > extension part and feed it separately to deliver.. >I was messing around with making this work, and I almost got it, but ran into a problem. I changed the line in main.cf to: mailbox_command = /usr/local/libexec/dovecot/deliver -n -m "$EXTENSION" Now, in my logs it displays this: Apr 16 17:02:34 apple postfix/local[5990]: 3BFF77B8F24: to=<jeff+Dad at stikman.com>, relay=local, delay=0.06, delays=0.01/0.03/0/0.02, dsn=2.0.0, status=sent (delivered to command: /usr/local/libexec/dovecot/deliver -n -m "$EXTENSION") and tries to save the message in the dad folder. The only problem is the dad folder is listed as "Dad" and no matter what I put in the e-mail address, capital "D" or lowecase "D", it always tries to save it do "dad" which does not exist. deliver(jeff): msgid=<49E7C710.7060702 at stikman.com>: save failed to dad: Mailbox doesn't exist: dad Do I have to change all of my folder names to lowercase, or is there a easier fix I am missing? Also, a different problem in regards to this also. Now I am getting the following lines in my maillog file: Apr 16 17:02:34 apple dovecot: deliver(jeff): sieve runtime error: Keep: Generic Error Apr 16 17:02:34 apple dovecot: deliver(jeff): sieve_execute_bytecode(/home/jeff/sievec) failed This only started after I changed the deliver line in main.cf. If I can get + addressing working, I don't need the sieve script so I will remove it. Thanks, Jeff