OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Accept recipients in an access map, reject the rest

From: David Landgren (davidlandgren.net)
Date: Mon May 03 2004 - 06:30:36 CDT


Hello,

I am in the process of integrating the users of a recently-acquired
company. Their domain is frequently spoofed by spammers. In the long run
I'll obtain their recipients via LDAP, but for the moment the only thing
I can get from them is a list of all valid recipients. Can someone tell
me if the following will work:

At the appropriate point in my smtpd_recipient_restrictions list (i.e.
long after relaying checks et al.), send anything destined for that
domain to a new smtp_restriction_class which looks like the following

recipient_checks:
   other_company.com other_company_restriction

main.cf:
   other_company_restriction =
     check_recipient_access hash:/etc/postfix/list_of_other_users
     reject

I just have to transform the list into an access map suitable for
Postfix and I'll refuse anything that isn't a legitimate address. A poor
man's LDAP if you will. It seems too simple... am I missing anything?

Thanks,
David

--
Commercial OS breeds commerce, whereas free OS breeds freedom,
the only thing more dangerous and confusing than commerce.
                   -- Michael R. Jinks, redhat-list, circa 1997