I've inherited a system built by someone else with no "baton handoff", so am learning it as I go. Recently a bounced email issue arose, and in trying to decipher the cause and allow this email in, I've found the following in main.cf. I've added numeric comments on significant lines which are explained below.
#1 is where the email gets blocked with a "Relay via ISP" comment. I tried adding the user's email address to #2 as OK, where there are LOTS of "OK"s for others -- it didn't work. So I did some research and created the file at #4, placing it below #3 as my research indicated I should. Still no joy.
But the more I read about this file, the more it seems upside-down to me. First it seems that #2 needs to be above #1. Second, everything I've read indicates that #2 should be below #3. So now I'm thinking that I should have #3 where it is, followed by #2, followed by #1, and #4 probably isn't needed.
Since I am learning this system on the fly, I thought it would be prudent to poll the masses for input before making changes that could have unforeseen effects. Could there be a legit reason for having #1 and #2 above #3? As for #2 following #1, I can see that IF the original author thought that NO ONE should EVER be allowed to override the checks in #1 -- but wouldn't that be extreme?
TIA for your thoughts!
--bd
Code:
smtpd_recipient_restrictions =
# added 12/11/05
reject_unlisted_recipient,
check_client_access regexp:/etc/postfix/fqrdns.regexp, #1
check_helo_access hash:/etc/postfix/access,
check_helo_access regexp:/etc/postfix/helo_blacklist.regexp,
check_sender_access hash:/etc/postfix/blacklist,
check_sender_access regexp:/etc/postfix/sender_blacklist.regexp,
check_sender_mx_access cidr:/etc/postfix/mx_access.txt,
check_client_access hash:/etc/postfix/broken_helos, #2
reject_invalid_hostname,
reject_non_fqdn_sender,
reject_unknown_sender_domain,
reject_unknown_recipient_domain,
check_sender_access regexp:/etc/postfix/filter_10026_catchall,
permit_mynetworks,
reject_non_fqdn_hostname,
reject_non_fqdn_recipient,
reject_unauth_destination, #3
check_client_access hash:/etc/postfix/fqrdns_override #4
#1 is where the email gets blocked with a "Relay via ISP" comment. I tried adding the user's email address to #2 as OK, where there are LOTS of "OK"s for others -- it didn't work. So I did some research and created the file at #4, placing it below #3 as my research indicated I should. Still no joy.
But the more I read about this file, the more it seems upside-down to me. First it seems that #2 needs to be above #1. Second, everything I've read indicates that #2 should be below #3. So now I'm thinking that I should have #3 where it is, followed by #2, followed by #1, and #4 probably isn't needed.
Since I am learning this system on the fly, I thought it would be prudent to poll the masses for input before making changes that could have unforeseen effects. Could there be a legit reason for having #1 and #2 above #3? As for #2 following #1, I can see that IF the original author thought that NO ONE should EVER be allowed to override the checks in #1 -- but wouldn't that be extreme?
TIA for your thoughts!
--bd