relay_recipients_map not being checked - please help

From: Gentian Hila (no email)
Date: Sun May 15 2005 - 23:53:23 EDT

  • Next message: Mike Morris: "Re: relay_recipients_map not being checked - please help"

    As you can understand postfix is serving as a relay for incoming
    emails, protecting an exchange server. I tried to configure
    relay_recipient_maps so it would reject all mail for non-existing
    users immediately.
    I followed the instructions of two guides:

    http://www2.origogeneris.com:4000/relay_recipients.html

    and
    http://postfix.state-of-mind.de/patrick.koetter/mailrelay/

    each of them provides a script in perl and vbscript respectively of
    how to export email addresses to a file. I called the file
    exchange_recipients and put it in /etc/postfix directory and then run
    postmatp /etc/postfix/exchange_recipients to create db file.

    I created the transport file /etc/postfix/smtproute
    which has the following content:

    mydomain.com smtp:isssrv01
    adaptive-tech.com smtp:isssrv01
    issapp01.iss.mydomain.com local
    issapp01.mydomain.com local

    where isssrv01 is the exchange server and issapp01 is the postfix
    box."mydomain" is instead of the real domain name.

    Of course I created a smtproute.db file by running postmap.

    Here is the main.cf config:

    myhostname = issapp01.mydomain.com

    mydomain = mydomain.com

    alias_maps = hash:/etc/postfix/aliases
    alias_database = hash:/etc/postfix/aliases
    # Other configurable parameters.
    virtual_maps = hash:/etc/postfix/virtual
    relayhost = isssrv01
    relay_domains = mydomain.com, adaptive-tech.com
    transport_maps = hash:/etc/postfix/smtproutes
    mynetworks = 10.0.0.0/24

    smtpd_sasl_auth_enable = yes
    smtpd_recipient_restrictions = reject_unknown_recipient_domain,
    permit_sasl_authenticated, check_relay_domains
    smtpd_sasl_security_options = noanonymous
    smtpd_sasl_local_domain = $myhostname
    broken_sasl_auth_clients = yes

    relay_recipient_maps = hash:/etc/postfix/exchange_recipients

    Every thing seems to be running fine except the fact that that the
    exchange_recipients file is not being read or it is ignored totally so
    the rule is not working which is allowing a lot of spam going through.
    In /var/log/mail I can see the errors, info and warning files contain
    nothing about exchange_recipients being being checked at all.

    I have no idea anymore what I may be doing wrong. Please help me ...
    Totally lost now.

    Here is a part of the content of exchange_recipients file:

     OK
     OK
     OK

    and here is the version of Postfix I am using:

    [root at issapp01 root]# postconf mail_version
    mail_version = Postfix-20010228-pl08

    Every idea is appreciated since I have no more ideas.

    Thanks in advance


  • Next message: Mike Morris: "Re: relay_recipients_map not being checked - please help"





    Hosted Email Solutions

    Invaluement Anti-Spam DNSBLs



    Powered By FreeBSD   Powered By FreeBSD