[Dovecot] Address Extensions with System Users

Jeff Grossman jeff at stikman.com
Fri Apr 17 04:10:14 EEST 2009


On 4/16/2009 5:18 PM, Jeff Grossman wrote:
> 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
It works if I change the folder name to lowercase.  But, it seems to be 
delivering the message twice to the folder.  Not sure why that is yet.  
Plus, I am no longer getting the sieve errors.  Must be something to do 
with the folder name mismatch.

Jeff


More information about the dovecot mailing list