Postfix Configuration Error

Discussion in 'General' started by jtomelevage, Jul 26, 2019.

  1. jtomelevage

    jtomelevage New Member

    Hello,
    Several of our Postfix files have errors where the hosts line reads as follows:
    Code:
    hosts = 27.0.0.1
    
    Of course this should read:
    Code:
    hosts = 127.0.0.1
    
    The files (that I have found) that are affected are:
    /etc/postfix/mysql-virtual_client.cf
    /etc/postfix/mysql-virtual_domains.cf
    /etc/postfix/mysql-virtual_email2email.cf
    /etc/postfix/mysql-virtual_forwardings.cf
    /etc/postfix/mysql-virtual_gids.cf
    /etc/postfix/mysql-virtual_mailboxes.cf
    /etc/postfix/mysql-virtual_policy_greylist.cf
    /etc/postfix/mysql-virtual_recipient.cf
    /etc/postfix/mysql-virtual_relaydomains.cf
    /etc/postfix/mysql-virtual_relayrecipientmaps.cf
    /etc/postfix/mysql-virtual_sender.cf
    /etc/postfix/mysql-virtual_sender_login_maps.cf
    /etc/postfix/mysql-virtual_transports.cf
    /etc/postfix/mysql-virtual_uids.cf

    There must have been some error during the original installation that set the hosts = 27.0.0.1 instead of 127.0.0.1. I have manually changed all the files I found (so far) but after running:
    Code:
    ispconfig_update.sh
    All the files were set back to hosts = 27.0.0.1

    There must be a file somewhere that needs to be changed that when
    Code:
    ispconfig_update.sh
    is run all the Postfix files won't revert to hosts = 27.0.0.1

    Any suggestions?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Check the /etc/hosts file to ensure the localhost IP is set there correctly.
     
    jtomelevage likes this.
  3. jtomelevage

    jtomelevage New Member

    Excellent!
    Yep, it was set like this:
    Code:
    27.0.0.1       localhost
    I do not know how this got set this way, maybe a typo during install.
     
  4. jtomelevage

    jtomelevage New Member

    Hmm. I corrected the hosts file and restarted the server - however messages are hanging in the mail queue and are not being delivered.
     
  5. jtomelevage

    jtomelevage New Member

    Found the problem: /etcamavis/conf.d/50-user had:
    Code:
    DBI:mysql:database=dbispconfig;host=27.0.0.1;
    
    Changed to host=127.0.0.1 and mail is sending.
     

Share This Page