wrong format /etc/postfix/local-host-names = Postfix 554 relay access denied

Discussion in 'Installation/Configuration' started by andremachado, Jul 2, 2008.

  1. andremachado

    andremachado New Member

    Hello,
    I identified that ispconfig 2.2.23 writes /etc/postfix/local-host-names in the wrong format.
    Following the instructions at
    http://rackerhacker.com/2007/08/30/postfix-554-relay-access-denied/
    in order to receive emails instead of "Postfix: 554 Relay access denied"
    I saw that the ispconfig does not write the "OK" field.
    See bellow the difference between the automatic and the manual configuration:
    Code:
    localhost:~# cat  /etc/postfix/local-host-names
    ###################################
    #
    # ISPConfig local-host-names Configuration File
    #         Version 1.0
    #
    ###################################
    localhost
    localhost.localdomain
    localhost.localhost.localdomain
    www.my_site.com
    #### MAKE MANUAL ENTRIES BELOW THIS LINE! ####
    my_site.com OK
    
    The postmap command warns about the wrong format.
    The system is a Debian GNU / Linux 4.0 Etch.
    I am still trying to understand the CNAME problem
    http://www.howtoforge.com/forums/showthread.php?t=24650
    Regards.
    Andre Felipe Machado
     
    Last edited: Jul 2, 2008
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The line:

    my_site.com OK

    must be:

    my_site.com
     
  3. andremachado

    andremachado New Member

    Hello,
    Actually, is the other way.
    The postmap command (at Debian Etch 4.0) complains about LACKING of the "OK" field content.
    The manual entry having the "OK" is accepted by the postmap and THEN the Postfix "554 relay access denied" reply to receive emails is solved.
    Please, try yourself at the command line and you will see that.
    Regards.
    Andre Felipe Machado
     
    Last edited: Jul 2, 2008
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    The file /etc/postfix/local-host-names is not converted to a hash with postmap! Remove the OK at the end of the line and save it and do not run postmap.
     

Share This Page