Postfix virtual_alias stealing emails from virutal_mailbox

Posted by drewag on Server Fault See other posts from Server Fault or by drewag
Published on 2013-10-21T05:14:54Z Indexed on 2013/10/25 3:58 UTC
Read the original article Hit count: 543

Filed under:
|

I am trying to setup a "catchall" address. In my virtual_mailbox table I have emails setup like so:

select * from virtual_users;

 id | domain_id |      password     |           email
----+-----------+----------------------------------------------
  3 |         1 | ***************** | [email protected]
  4 |         1 | ***************** | [email protected]

That works great on its own. When I try to add a virtual alias for the catchall:

select * from virtual_aliases;

 id | domain_id |      source       |        destination
----+-----------+-------------------+---------------------------
  1 |         1 | @domain.com       | [email protected]

Once I add that virtual_alias, all email is going to catchall and I can send any to [email protected].

Is there something I need to do to shift around the priority?

This is what I am getting in my postfix logs:

Oct 20 23:24:26 localhost postfix/qmgr[8002]: C23A711DF9: from=<[email protected]>, size=1712, nrcpt=1 (queue active)
Oct 20 23:24:26 localhost postfix/lmtp[8148]: C23A711DF9: to=<[email protected]>, orig_to=<[email protected]>, relay=domain.com[private/dovecot-lmtp], delay=0.42,     delays=0.4/0.01/0.01/0.01, dsn=2.0.0, status=sent (250 2.0.0 <[email protected]> 8V9DA4q6ZFLVHwAA0J78UA Saved)
Oct 20 23:24:26 localhost postfix/qmgr[8002]: C23A711DF9: removed

© Server Fault or respective owner

Related posts about postfix

Related posts about dovecot