Postfix Config on Arch Linux

Discussion in 'Server Operation' started by carlosinfl, Feb 26, 2010.

  1. carlosinfl

    carlosinfl New Member

    I was following this guide & noticed that during the section I was to modify my /etc/postfix/main.cf file, do I not need to add a mydomain = mydomain.tld?

    For example:

    Code:
    # Domain settings
    myhostname = mail.mydomain.tld
    [B][COLOR="Red"]mydomain = mydomain.tld[/COLOR][/B]
    myorigin = mydomain.tld
    mydestination = $myhostname, localhost.$mydomain, localhost
    The guide tells you to reference $mydomain parameter under the "mydestination =" section however we are never instructed to enter this parameter according to the link above. Should we add the "mydomain =" parameter or is it not necessary and only clutter?
     
  2. falko

    falko Super Moderator Howtoforge Staff

    What are the outputs of
    Code:
    postconf -d | grep mydomain
    and
    Code:
    postconf -n | grep mydomain
    ?
     
  3. carlosinfl

    carlosinfl New Member

    Code:
    [root@mail ~]# postconf -d | grep -i "mydomain"
    append_dot_mydomain = yes
    mydestination = $myhostname, localhost.$mydomain, localhost
    mydomain = localdomain
    
    [root@mail ~]# postconf -n | grep -i "mydomain"
    append_dot_mydomain = no
    mydestination = $myhostname, localhost.$mydomain, localhost
    
     
  4. carlosinfl

    carlosinfl New Member

    Anyone? :confused:
     
  5. falko

    falko Super Moderator Howtoforge Staff

    The default setting currently is mydomain = localdomain. If you want to change it, run
    Code:
    postconf -e 'mydomain = mydomain.tld'
    and restart Postfix.
     

Share This Page