This is a discussion on problem with virtual_maps within the alt.comp.mail.postfix forums, part of the Mail Servers and Related category; Hi, I have a Debian server with Postfix and Cyrus which receives mail for 3 domains. I only use 1 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi,
I have a Debian server with Postfix and Cyrus which receives mail for 3 domains. I only use 1 mailbox structure (Cyrus mailboxes) I want to have special delivery rules for certain addresses and catch the rest in a catchall mailbox I've set up a virtual file and configured my main.cf with this line: virtual_maps = hash:/etc/postfix/virtual virtual file: shop@domain2.com shop @domain1.com catchall shop is a cyrus mailbox, so is catchall Now I have the following strange problem: the line directing shop@domain.com to mailbox shop is ignored, the mail is sent into the 'catchall' mailbox see the log: Jan 16 14:22:25 debian postfix/qmgr[5160]: 22F6C1DB12F: from=<bogaard@nlcom.nl.nospam>, size=6485, nrcpt=1 (queue active) Jan 16 14:22:25 debian postfix/pipe[5212]: 22F6C1DB12F: to=catchall@domain1.com, orig_to=<shop@domain2.com>, relay=cyrus, delay=0, status=sent (mail.server.com) BUT, if I change the first line of the virtual file to another user, e.g. 'mybox' instead of 'shop': shop@domain2.com mybox then it works ! As far as I can see both cyrus mailboxes are identical. Only difference I can see: the 'mybox' mailbox was created earlier than the 'shop' mailbox' I really can't figure out why this goes wrong. (naturally, after each change in the virtual file I do a postmap /etc/postfix/virtual) My postfix version: 2.0.16-4 (Debian) Any help is appreciated ... workarounds also Regards, Mark van den Bogaard Mail: bogaard@nlcom.nl.nospam remove the nospam when responding --------------------------------------------- |