Hi,
We need to add lots of domains (almots 500 domains) to Relay configuration list and Transports (some of them with different ips).
There is a way to add this with command line?
We try adding the domains to /etc/pmg/domains, but its not working.
Any one can help us?
Regards
Edit: we found the way to add it to Relay, with this:
Previosly you need to generate the list in domains.txt
cat domains.txt| while read i; do pmgsh create /config/domains --domain $i; done
But still no idea how to do it in Transports.
Edit2:
For the Transports:
cat domains.txt| while read i; do pmgsh create /config/transport -domain $i -host <ip> -port 25 -protocol smtp -use_mx 1; done
And with that commads, you can add in bulk the domains.
We need to add lots of domains (almots 500 domains) to Relay configuration list and Transports (some of them with different ips).
There is a way to add this with command line?
We try adding the domains to /etc/pmg/domains, but its not working.
Any one can help us?
Regards
Edit: we found the way to add it to Relay, with this:
Previosly you need to generate the list in domains.txt
cat domains.txt| while read i; do pmgsh create /config/domains --domain $i; done
But still no idea how to do it in Transports.
Edit2:
For the Transports:
cat domains.txt| while read i; do pmgsh create /config/transport -domain $i -host <ip> -port 25 -protocol smtp -use_mx 1; done
And with that commads, you can add in bulk the domains.
Last edited: