Re: relay_recipients_map not being checked - please help

From: Ralf Hildebrandt (no email)
Date: Mon May 16 2005 - 03:19:28 EDT

  • Next message: Jussi Silvennoinen: "Re: Inexpensive, fast MailDir storage"

    * Gentian Hila <>:

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

    This is not valid syntax

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

    I furthermore think that isssrv01 should rather be a FQDN or
    isssrv01's IP!

    > 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

    That relays ALL mail to isssrv01. This cannot be correct, becuae mail
    to web.de would go to isssrv01 as well. Lose that.

    > relay_domains = mydomain.com, adaptive-tech.com
    Correct.

    > transport_maps = hash:/etc/postfix/smtproutes
    Correct.

    > mynetworks = 10.0.0.0/24
    isssrv01 is in that range?

    > smtpd_sasl_auth_enable = yes
    > smtpd_recipient_restrictions = reject_unknown_recipient_domain,
    > permit_sasl_authenticated, check_relay_domains

    smtpd_recipient_restrictions =
       reject_unknown_recipient_domain
       permit_mynetworks
       permit_sasl_authenticated
       reject_unauth_destination

    > 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

    What's in there?

    > OK
    > OK
    > OK

    Looks OK.

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

    You couldn't find any older version, could you? That version is way to
    old - it doesn't contain that feature at all. We're in 2005 an Postfix
    2.2 has been released:

    20021208

    Feature: new relay_recipient_maps parameter, for optional
    maps with all the recipients in the domains that match $relay_domains (so
    you can reject mail for unknown relay recipients). This is for
    consistency with virtual_xx_maps and virtual_xx_domains, and with
    local_recipient_maps and the local delivery agent. File:
    smtpd/smtpd_check.c.
                    

    -- 
    Ralf Hildebrandt ()          
    http://www.postfix-book.com/                     Tel. +49 (0)30-450 570-155
    When hitting yourself on the head with a hammer starts to give you      
    headaches, the solution is not to put padding on the hammer.
    

  • Next message: Jussi Silvennoinen: "Re: Inexpensive, fast MailDir storage"





    Hosted Email Solutions

    Invaluement Anti-Spam DNSBLs



    Powered By FreeBSD   Powered By FreeBSD