Page 1 of 1

Bulk add domains

Posted: 21 Oct 2015 16:32
by lelle
Hi all,

I'm a long time ESVA user that have to move my servers to EFA and thats fine.
My problem is that I have appr 120 domains that I receive e-mail for. The last time I set things up I made a script utilizing esva-domainadd and a csv file with domain name and ip address of the mail server to forward incoming mails to. That script added the transport, users names and password to mailwatch etc.
EFA looks a bit different and I wonder if someone got a idea how to do the same in EFA

Best regards

Lennart

Re: Bulk add domains

Posted: 21 Oct 2015 17:50
by darky83
If you still have your ESVA system running you could migrate your settings from ESVA to EFA see: viewtopic.php?f=14&t=513

Re: Bulk add domains

Posted: 21 Oct 2015 18:24
by lelle
Unfortunately not, I had a virtual disk crash screwing my system up.

/Lennart

Re: Bulk add domains

Posted: 09 Jan 2017 15:35
by Edzelf
You can simply add you domains at the end of /etc/postfix/transport like this:
.
.
.
###### START E.F.A ADDED DOMAINS ######
example.com smtp:[37.10.10.10]
example2.com smtp:[mail.example2.com]

After this run:
postmap /etc/postfix/transport