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
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
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!