Hello
I own 25 domains. I want to add them all in bulk instead of adding them one by one.
Can you help with this?
Thanks.
Bulk domains
Re: Bulk domains
add the first domain and second domain in normally.
then edit the /etc/transport file and add in your other domains using the same format as the first two domains. I assume that all domains are going to the same destination mail server?
after you have finished editing the files, run the postmap command on the transport table to update the transport database file.
then test to see if everything is working.
then edit the /etc/transport file and add in your other domains using the same format as the first two domains. I assume that all domains are going to the same destination mail server?
after you have finished editing the files, run the postmap command on the transport table to update the transport database file.
then test to see if everything is working.
Re: Bulk domains
Hello
thanks for the answer.
What I want is to do the adding process in bulk. So not just adding 1st and 2nd domains, but adding all up to 1..25. In summary, I want to add 25 domains at once. I could write a loop for it, but I don't know where and how. I think the added domain is written first to the database and then to the config files.
If there is no tool that I can add in bulk, I just need to know where the added ones are added.
thanks for the answer.
What I want is to do the adding process in bulk. So not just adding 1st and 2nd domains, but adding all up to 1..25. In summary, I want to add 25 domains at once. I could write a loop for it, but I don't know where and how. I think the added domain is written first to the database and then to the config files.
If there is no tool that I can add in bulk, I just need to know where the added ones are added.
Re: Bulk domains
/etc/transport is the file you want to look at.
please see my previous instructions
[edit]
change that to /etc/postfix/transport. I think you'll find it works better.
please see my previous instructions
[edit]
change that to /etc/postfix/transport. I think you'll find it works better.
-
- Posts: 1
- Joined: 18 Sep 2023 17:04
Re: Bulk domains
Just as update to help avoid confusion for others, at least on my install (CentOS based) the location is:
/etc/postfix/transport
Bottom of the transport file should list all your existing domains and internal mail server IPs, and you can add more entries there too (in my case, I needed to edit 8 domains as I have a new email server in play at a different internal IP address - it's worked a treat )
/etc/postfix/transport
Bottom of the transport file should list all your existing domains and internal mail server IPs, and you can add more entries there too (in my case, I needed to edit 8 domains as I have a new email server in play at a different internal IP address - it's worked a treat )
Re: Bulk domains
I stand corrected.
A slip on my part. Thanks stormgoose.
A slip on my part. Thanks stormgoose.