Peter wrote:

> Is it possible to filter on the "MAIL FROM:" header in acl_check_rcpt: ? 
> ( I can't find any variable that works :( )
> The reason i want to do this is because i would like to ban 'firsttime' 
> ip's that try to send mail from a address that begins with - or _, i'm 
> getting alot of those :(, and i would also like to have a more friendly 
> (Swedish) error message if somebody from my domains try to send a mail 
> without authentication,

Both of these are untested but probably work:

deny condition = ${if match{$sender_address}{\N^[-_]\N}}
      do whatever you need to ban the address

deny condition      = ${if 
match_domain{$sender_address_domain}{+local_domains}}
      !authenticated = *
      message        = You forget to use authenticationski

Mike

-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to