OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Reject mail to specific addresses?

From: Paul Hutchings (paul.hutchingsmira.co.uk)
Date: Mon Jun 02 2003 - 09:59:13 CDT


I want to setup a list of old/dead employee addresses that we don't wish to
receive mail for.

Am I right in thinking that I can have the following

smtpd_recipient_restrictions =
 permit_mynetworks,
 reject_unauth_destination,
 check_recipient_access hash:/etc/postfix/deadaddress,
 permit
 
/etc/postfix/deadaddress contains:

deadaddress1domain.com reject
deadaddress2domain.com reject
deadaddress3domain.com reject

Some additional questions if I may:

Will this work?
If an email comes in addressed to validaddress1, validaddress2 and
deadaddress1 will the valid recipients still receive it?
Is there a way to not to require "reject" on each line for each address?

regards,
Paul
--
Paul Hutchings
Network Administrator, MIRA Ltd.
Tel: 024 7635 5378, Fax: 024 7635 8378
mailto:paul.hutchingsmira.co.uk