OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
multiple same access maps?

From: Mipam (mipamibb.net)
Date: Thu Aug 19 2004 - 09:02:04 CDT


Hi,

I wondered whether it is possible to have multiple access maps from the
same type like this:

smtpd_recipient_restrictions =
        reject_non_fqdn_sender,
        reject_non_fqdn_recipient,
        check_sender_access hash:/usr/local/etc/postfix/sender_access,
        reject_unknown_sender_domain,
        reject_unknown_recipient_domain,
        permit_mynetworks,
        reject_unauth_destination,
        check_helo_access regexp:/usr/local/etc/postfix/helo_regexp,
        check_recipient_access hash:/usr/local/etc/postfix/recipient_checks,
        check_sender_access hash:/usr/local/etc/postfix/sender_checks,
        check_client_access hash:/usr/local/etc/postfix/client_checks,
        etc etc,

Note: twice check_sender_access, may this be done?
I want this because i wish to make an exception for a machine sending mail
with an unknown sender domain in the mail from header.
This particular mail is being sent to a machine which accepts it therefore
i wish to make an exception. In sender_access i have:

host.domain.exception OK

After this postmap hash:/...../sender_access

I need this exception before reject_unknown_sender_domain else i still get
a rejection because the sender domain cannot resolve.
However, mail is still being rejected, eventhough the early exception.
What am i doing wrong?
Bye,

Mipam.