[ILUG] Postfix domain forwarding
Philip Reynolds
philip.reynolds at rfc-networks.ie
Tue Jul 27 22:11:37 IST 2004
Niall O Broin <niall at linux.ie> 24 lines of wisdom included:
> I have a postfix server on which I have amavis + clamav + Spam Assassin. Works
> nicely, but now I want to expand its usage. There is one domain whose users
> are on an Exchange server. I want The postfix server to be the primary MX for
> that domain, and I want it to do its magic with amavis on all incoming mail
> for that domain, and then to pass that mail (with some deleted, or tagged) on
> to the Exchange server.
Although you may think this is more of a pain in the ass, you are
probably better off using relay_recipient_maps and having the list
of valid addresses your Exchange server will accept.
Invalid recipients can be stopped at the SMTP level, without being
blindly accepted by your Postfix gateway, passed through amavis,
forwarded to Exchange and then bounced.
It's possible to extract the users out from the Exchange machine
with a simple bit of PERL as far as I know.
> I want this to happen for ALL addresses @ the domain, without having to keep a
> virtual user table up to date on the postfix box.
>
> I've read the Postfix ADDRESS_CLASS and VIRTUAL readme files, and I suspect
> that the answer lies in them, but it's not clear to me how to make sure that
> all mail for the domain in question is handled by amavis, and THEN forwarded
> to its final destination.
You're going to need to expand on your current setup. How is amavis
plugged into your current setup? (and a description of your current
setup along with postconf -n output and master.cf contents would be
helpful also)
--
Philip Reynolds | RFC Networks Ltd.
philip.reynolds at rfc-networks.ie | +353 (0)1 8832063
http://people.rfc-networks.ie/~phil/ | www.rfc-networks.ie
More information about the ILUG
mailing list