OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: Re: Access forbidden for 'tous' aliases
From: Lars Hecking (lheckingnmrc.ucc.ie)
Date: Wed Feb 09 2000 - 12:01:32 CST


Emmanuel Courcelle writes:
> Hello.
>
> I have an address (tous... ) which delivers the mail
> to EVERYBODY (except some special accounts).
> This works through a perl script, the alias piping to this script.
>
> The script tries to find out the From: field, and the mail is rejected
> if it comes from 'OUTSIDE' (the domain name is different from ipbs.fr).
>
> Do you think it is possible implementing this through a postfix access
> list ???
> I could not figure how to do that with the smtpd_recipient_restrictions
> schemes,
> as I want to reject ONLY a mail FROM xxx TO yyy.
 
 If your inbound email comes through a gateway,
 you can easily block this list on the gateway:

 smtpd_recipient_restrictions =
  check_recipient_access hash:/etc/postfix/client_access
 [...]

 and client_access (cleartext)

tousibPs.fr REJECT
[...]

 Else, Ralf's solution applies.