[Dovecot] Postfix : lda problem

Benny Pedersen me at junc.org
Sun Aug 30 23:19:42 EEST 2009


On Mon 17 Aug 2009 10:21:47 PM CEST, denis wrote

> denis a écrit :
>> Ok, here is a configuration that works fine but without success to
>> retrieve the correct gid in the database.
>>
> In fact, aliases no longer work
> In trying with alias_maps or virtual_alias_maps and in both cases the
> following error: User unknown in virtual mailbox table
>
> Any Ideas ?
> Thanks
> Denis
>
> ## /etc/postfix/main.cf
>
> alias_maps =    proxy:mysql:/etc/postfix/myalias.cf,
>         hash:/etc/aliases
> virtual_mailbox_base = /var/alternc/mail
> virtual_mailbox_maps = proxy:mysql:/etc/postfix/myvirtual.cf
> virtual_mailbox_domains = mysql:/etc/postfix/mydomain.cf
> default_privs = www-data

dont give web server full email read access outside dovecot auth

> virtual_uid_maps = static:33
> virtual_gid_maps = static:33
>
> virtual_transport = dovecot
> dovecot_destination_recipient_limit = 1
>
> ## /etc/postfix/myalias.cf
>
> user = xyz
> password = xyz
> hosts = 10.0.112.1
> dbname = alternc
> table = mail_alias
> select_field = alias
> where_field = mail

now sync dovecot to use same db backend as postfix

so virtual_mailbox in postfix is equal to dovecot mailbox, make sure  
any alias in postfix is delivered to a mailbox not just another alias  
that is delivered to a alias in dovecot, else you get mailbox does not  
exists

-- 
xpoint



More information about the dovecot mailing list