problem with virtual_maps

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 ...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.postfix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-16-2004
Mark van den Bogaard
 
Posts: n/a
Default problem with virtual_maps

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
---------------------------------------------



Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:18 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0