OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: One domain has MX elsewhere

From: Magnus Bäck (magnusdsek.lth.se)
Date: Tue Nov 02 2004 - 07:42:40 CST


On Tuesday, November 02, 2004 at 14:36 CET,
     Veikko <visiovisiopaja.fi> wrote:

> One of our email customers have a filter (and MX) server for their
> domain "N". Our server is the MX server for the other domains.
>
> Some virus/spam-generated messages for domain N are still coming
> directly to our server, not via the MX server as they should.
>
> Is there any standard Postfix configuration to accept mail for domain
> N from that filter server only? (I know separating MX and mailboxes
> is another solution.)

main.cf:
smtpd_restriction_classes = foo

foo = check_client_access hash:/path/to/mx_clients, reject

smtpd_recipient_restrictions =
        ...
        check_recipient_access hash:/path/to/filtered_domains
        ...

/path/to/mx_clients
your.filter.server.hostname OK

/path/to/filtered_domains:
filtereddomain.com foo

--
Magnus Bäck
magnusdsek.lth.se