OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Restriction class for webserver

From: Magnus Bäck (magnusdsek.lth.se)
Date: Thu Sep 02 2004 - 09:21:17 CDT


On Thursday, September 02, 2004 at 15:48 CEST,
     Eric Toll <ericgodzilla.vipstructures.com> wrote:

> Hi all. I was getting email from my webservers email address, but it
> wasn't really my webserver.
>
> Made a restriction class that said only accept mail to this address if
> and only if it is in fact from my webserver:
>
> ######################################
> ### SMTP Restriction CLASS Section ###
> ######################################
> smtpd_restriction_classes = from_freemail_host, spam_haters, only_from_my_webserver
> only_from_my_webserver = check_client_access
> hash:/etc/postfix/my_webserver_hosts,
> reject Hmm. You look like my webserver but are Not.
> ...

The "REJECT message" form is valid in the result of an access map
lookup, but not in a restriction list.

[...]

--
Magnus Bäck
magnusdsek.lth.se