|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Richard Cooper (lists
richardcooper.net)
Date: Tue Feb 05 2008 - 08:42:40 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi all,
I'm trying to get Postfix configured to deliver mail for virtual
domains over LMTP as described here: http://www.postfix.org/VIRTUAL_README.html#in_virtual_other
. I'm using procmail as the LMTP server and the relevant parts of my
postfix config look something like this.
/etc/postfix/main.cf
virtual_transport = lmtp:[mail_store.mydomain.com]:24
virtual_mailbox_domains = my_virtual_domain.com
virtual_mailbox_maps = hash:/etc/postfix/vmailbox
#lmtp_generic_maps = hash:/etc/postfix/vmailbox
/etc/postfix/vmailbox:
test
my_virtual_domain.com test_mailbox
The problem I'm having relates to rewriting the "To" address of email
sent to test
my_virtual_domain.com. If I use the config I've described
above then Postfix will use test
my_virtual_domain.com as the envelope
RCPT TO address for the LMTP conversation causing procmail to complain
because it doesn't know what to do with that address. I can fix that
problem by uncommenting the lmtp_generic_maps line so that Postfix
uses test_mailbox
mail_store.mydomain.com as the envelope RCPT TO
address but then the "To:" message header gets rewritten as well which
I don't want.
Is there a way to rewrite the envelope RCPT TO address but not the
"To:" message header in this case?
Alternatively is there a better way to do what I'm trying to
accomplish, which is to have mail for virtual domains delivered into
Unix accounts on a different machine to the machine that is the MX for
those domains?
Thanks,
- Richard
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]