|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Restriction class for webserver
From: Eric Toll (eric
godzilla.vipstructures.com)
Date: Thu Sep 02 2004 - 08:48:02 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
...
and my_webserver_hosts contains:
host.mywebserver.tld OK
...
and in smtp_recipient_restrictions:
...
hash:/etc/postfix/recipient_access
and recipient_access contains:
address_from
mywebserver.tld only_from_my_webserver
...
This works as expected except, I can't seem to issue the response I'd
like to give to those sending MTA's who have illegally harvested the
address. --"Hmm. You look like my webserver but are Not."
Hope this helps someone else.
Comments welcome.
Regards,
Eric
------
Seasons will pass you by. I get up, I get down. . .
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]