Menu

#3771 /etc/postfix/domains not updated when creating a new server

1.520
closed-works-for-me
5
2010-10-05
2010-10-05
No

My postfiix setup is configured to deliver all main for domains listed in the /etc/postfix/domains via the virtual_alias_domains directive. I expect that when creating a new virtual server with the "accept mail for domain" option checked that webmin would add an entry into the /etc/postfix/domains, but it does not. Any tips here would be great, even if the tips are hints at what files I should look at to add this feature.

Discussion

  • Jamie Cameron

    Jamie Cameron - 2010-10-05

    Webmin is doing the right thing here already - it adds new domains to /etc/postfix/virtual , in a line that contains just the domain name twice. This is all that is needed.

     
  • Jamie Cameron

    Jamie Cameron - 2010-10-05
    • status: open --> closed-works-for-me
     
  • Dennison Williams

    Thanks for the response,

    Maybe there is an issue with my systems configuration that you could help me out with then, because does not work under my setup.

    In /etc/postfix/main.cf I have the following lines (working):

    virtual_alias_domains = /etc/postfix/domains
    virtual_alias_maps = hash:/etc/postfix/virtual

    I understand from here: http://www.postfix.org/postconf.5.html#virtual_alias_domains, that I can remove the virtual_alias_domains directive so that it will default to use the file virtual_alias_maps. This is the file that webmin writes to after a email is added to a virtual domain. The problem is that webmin writes the domain to this file commented out like so:

    # theportalusa.org
    theportalusa.org theportalusa

    I have tested that postfix works fine without the virtual_alias_domains directive set, but only when the domain in /etc/postfix/virtual is uncommented (though postmap still throws a warning).

    Please advise.
    Sincerely,
    Dennison Williams

     
  • Jamie Cameron

    Jamie Cameron - 2010-10-15

    Yes, you should remove the separate virtual_alias_domains line.

    Are you sure that Webmin adds the entry to /etc/postfix/virtual commented out?? does this happen if you create a new test domain?

     

Log in to post a comment.