[Dovecot] LDA not being called by postfix?

Andreas Martin ama at inmedias.it
Thu May 11 16:16:12 EEST 2006


Luca Corti wrote:
> On Thu, 2006-05-11 at 13:21 +0200, Andreas Martin wrote:
>> If you never use the Postfix virtual to deliver Mail, you can omit
>> virtual_gid_maps = static:1234
>> virtual_mailbox_base = /var/vmail
>> virtual_minimum_uid = 1001
>> virtual_uid_maps = static:1234
>> since these setting are not used by Dovecot-LDA.
> 
> These should not do any harm anyway right?

I think so, but I never tried to keep these settings in my main.cf while
I didn't use virtual.

>> Furthermore, I could imagine an entry in your transport-table, which
>> redirects this mailaddress/domain to virtual, or the entry in your
>> postfix/master.cf, which defines another virtual transport for the
>> return from amavisd-new.
> 
> I have the transport maps in MySQL:
> 
> user = myuser
> password = mypass
> hosts = localhost
> dbname = postfix
> table = domain
> select_field = transport
> where_field = domain
> additional_conditions = and active = 1
> 
> 
> and in the db:
> 
> +----+-------------+-------------+---------+-----------+----------+-----------+----------+---------------------+---------------------+--------+
> | id | domain      | description | aliases | mailboxes | maxquota |
> transport | backupmx | created             | modified            |
> active |
> +----+-------------+-------------+---------+-----------+----------+-----------+----------+---------------------+---------------------+--------+
> |  2 | example.com | example.com |       5 |        10 |       20 |
> virtual   |        0 | 2006-05-08 01:30:58 | 2006-05-08 11:42:55 |
  ^^^^^^^
> 1 |
> +----+-------------+-------------+---------+-----------+----------+-----------+----------+---------------------+---------------------+--------+

This should be "dovecot" - corresponding to your master.cf:

dovecot   unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail:vmail argv=/usr/local/libexec/dovecot/deliver -d
${recipient}

> The transport gets correctly selected upon mail delivery:

Nope...

> May 11 13:09:47 ns1 postfix/virtual[9797]: 7C4D4847BC:
                              ^^^^^^^
> to=<luca at example.com>, relay=virtual, delay=0, status=sent
                               ^^^^^^^

This should be something like:

May 11 13:09:47 ns1 postfix/pipe[9797]: 7C4D4847BC:
                            ^^^^
to=<luca at example.com>, relay=dovecot, delay=0, status=sent
                             ^^^^^^^



More information about the dovecot mailing list