Postfix alias entire domain (*.newdomain.tld -> *.olddomain.tld)

Discussion in 'Server Operation' started by kbdc, Feb 24, 2017.

  1. kbdc

    kbdc New Member

    I have a customer who has around 100 mailboxs + all the aliases. He has now purchased a new domain name and requires all email address in the new domain to be sent to the old domain which will remain the master. Alias *.newdomain.tld -> *.olddomain.tld.
    At the moment the only way I can see to do this would be to create an alias for each mailbox and aliases in the old domain
  2. kbdc

    kbdc New Member

    I found this on the internet, where would be the safest place to put it in the Ispconfig 3 files. is it safe to just edit the /etc/postfix/virtual file.?
    "You can do this by inserting a @domain.from: line into your virtual aliased map, which is in most cases in /etc/postfix/virtual. After that, you shouldn't forget to rerun a postmap virtual command to recreate its database!"
  3. liane

    liane Member HowtoForge Supporter

    if you use ispconfig 3, you should use the domain alias feature in email section
  4. kbdc

    kbdc New Member

    Thank you. The most obvious things are always right under your nose. Read the manual and for some reason skipped that entry.

Share This Page