Re: Stopping Frequently Forged Domains

From: Michael Tokarev (no email)
Date: Sun Jun 02 2002 - 08:37:18 EDT


Jeremy Howard wrote:
>
> This is great! One little question however--is there any way to change
> the message that the user sees in this case?

Sure. For this, you should change last `reject' to something more complex.
E.g.:

[]
> >strict_client_domain =
> > check_client_access hash:/etc/postfix/strict_client_map, reject

strict_client_domain =
   check_client_access hash:/etc/postfix/strict_client_map,
   check_sender_access regexp:/etc/postfix/strict_sender_msg
         ^^^^^^

/etc/postfix/strict_sender_msg:

 /./ 554 use mailserver that handles your domain please

This way, mail sent from some non-hotmail server with from address in hotmail
domain will be rejected with a message:

 554 <>: Sender address rejected: use mailserver that
                         ^^^^^^
     handles your domain please

Or, more funny one:

/etc/postfix/strict_sender_msg:

 /@([^@]*)$/ 554 use mailserver that handles $1 domain

etc.

/mjt
-
To unsubscribe, send mail to with content
(not subject): unsubscribe postfix-users








Hosted Email Solutions

Invaluement Anti-Spam DNSBLs



Powered By FreeBSD   Powered By FreeBSD