Postfix configuration change

Discussion in 'Installation/Configuration' started by bassplayer, Apr 21, 2008.

  1. bassplayer

    bassplayer New Member

    I install ISPconfig succesfully thanks.
    my domain example.com
    ISPconfig mc mc1.example.com
    I use this machine as mail relay server of example.com to mail.example.com
    In order to make it works I change manually /etc/postfix/local-host-names
    I commented out example.com --> #example.com
    it will tell postfix not to check local user when receiving email for this domain and directly relay it. it works find !!!

    but this file /etc/postfix/local-host-names is back to original configuration, it happens 3 times already now. It happen again last friday.
    On last friday I delete than add one website to ISPconfig, Is it causing the changes?,
    During saving the configuration ISPconfig change the whole file or just append the new website.
    If it change the whole file, so next time whenever I add/delete websites I need to check this file manually also.

    Or is it can be done from inside ISPconfig configuration? thanks
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Do not change /etc/postfix/local-host-names manually, ISPConfig will overwrite your changes. Instead you will have to set the website and co-domain to external mailserver in ISPConfig.
     
  3. peacengell

    peacengell Member

    Postfix configuration bash script

    Is there any bash script to use postconf -e please help i'm a newbeeeeeeeeeee
    i done one but i can't see the output like what is happening on the screen
    so can anyone help me
    >>>
    thanks you all
     
  4. falko

    falko Super Moderator Howtoforge Staff

    How do you mean that? :confused:
     
  5. peacengell

    peacengell Member

    Postconf

    i wanna know how to make a bash script to do all
    postconf and get the output when all is done
    that is what i mean
    if there is any
     
  6. bassplayer

    bassplayer New Member

    hi Till, Thanks for the tips.
    this is what I do...
    1. create example.com domain
    2. update dns example com
    mx record -> delete old one
    create new point to mail.example.com

    It Works! but when I try "host example.com"
    it return "example.com has address (my ispconfig server IP)
    no mx record.
    Please let me know if it is the correct way!
    I dont know what co-domain for! and how to set it up.
    Regards,
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    If you want to see the MX record, the command is:

    dig MX example.com
     

Share This Page