Tom Kinghorn:
> Good afternoon list.
>
> We have a number of clients who have misconfigured applications on their
> network, which is sending
> anything from warning to info messages to the developer.
>
> Our servers are used as an outbound relay (smarthost) for our clients.
>
> Is there a way to filter messages before they are sent out
> _
> example:_
>
> If the mail comes from [email protected] & the recipient is
> [email protected] & the Subject is <whatever>, then Discard
> / Reject the message
If you make the rule too specific, no-one will fix their application.
The following moves the pain to the party that is making the problem:
/etc/postfix/main.cf:
smtpd_client_restrictions =
check_client_access hash:/etc/postfix/client_access
/etc/postfix/client_access:
1.2.3.4 450 4.7.0 Please see http://www.example/whatever for assistance
The named webpage has instructions for how to be removed from the
blocklist. Once the system/application is cleaned up the rule can
be removed and mail will continue to flow.
Wietse