Problem with postfix/dovecot and {RelayedInbound} vs {RelayedOpenRelay}

Discussion in 'Installation/Configuration' started by schmidtedv, Mar 7, 2017.

  1. schmidtedv

    schmidtedv Member HowtoForge Supporter

    By trying to figure out, why mails over our Server (Ubuntu 16.04, configured with "Perfect Server HowTo") quite often are blocked by Hotmail and AOL, I might have found even another Problem...maybe done by misunderstanding.

    I have 2 configurations tested in main.cf and for sending mail internally over Outlook from a@domain.com to b@domain.com. The first brings up

    Code:
    amavis[22435]: (22435-07) Passed CLEAN {RelayedOpenRelay}
    in my mail.log by using

    Code:
    smtpd_relay_restrictions =
      permit_mynetworks,
      permit_sasl_authenticated,
      check_recipient_access mysql:/etc/postfix/mysql-virtual_recipient.cf,
      reject_unauth_destination,
      permit
    
    smtpd_recipient_restrictions =
      permit_mynetworks,
      permit_sasl_authenticated,
      reject_non_fqdn_recipient,
      reject_unknown_recipient_domain,
      reject_rbl_client zen.spamhaus.org,
      check_recipient_access mysql:/etc/postfix/mysql-virtual_policy_greylist.cf,
      permit
    
    and the second, probably more original, Comes up with

    Code:
    amavis[22435]: (22435-08) Passed CLEAN {RelayedInbound}
    by using

    Code:
    smtpd_relay_restrictions =
      permit_mynetworks,
      permit_sasl_authenticated,
      defer_unauth_destination,
      permit
    
    smtpd_recipient_restrictions =
      permit_mynetworks,
      permit_sasl_authenticated,
      reject_non_fqdn_recipient,
      reject_unknown_recipient_domain,
      reject_unauth_destination,
      check_recipient_access mysql:/etc/postfix/mysql-virtual_recipient.cf,
      reject_rbl_client zen.spamhaus.org,
      check_recipient_access mysql:/etc/postfix/mysql-virtual_policy_greylist.cf,
      permit
    Actually, both configs look ok to me (as far as what I have read over the Internet and tried to figure out by myself), so why am I getting any amavis Relay-Messages?
     

Share This Page