Bulk add domains

Questions and answers about how to do stuff
Post Reply
lelle
Posts: 13
Joined: 19 Aug 2014 07:59

Bulk add domains

Post 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
User avatar
darky83
Site Admin
Posts: 540
Joined: 30 Sep 2012 11:03
Location: eFa
Contact:

Re: Bulk add domains

Post 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
Version eFa 4.x now available!
lelle
Posts: 13
Joined: 19 Aug 2014 07:59

Re: Bulk add domains

Post by lelle »

Unfortunately not, I had a virtual disk crash screwing my system up.

/Lennart
Edzelf
Posts: 2
Joined: 09 Jan 2017 14:17

Re: Bulk add domains

Post 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
Post Reply