PowerMTA IP Rotation
To setup IP rotation in PowerMTA, configure multiple IP on the server. Setup rDNS for each of these IP, point a sub domain to these IPs same as the reverse DNS entry.
Here is an exable
First we need to edit DNS records. Add folowing A records.
1 2 3 |
pmta1.sevrerok.in A 176.123.8.12 pmta2.sevrerok.in A 176.123.8.13 pmta3.sevrerok.in A 176.123.8.17 |
Set up rDNS (reverse DNS/PTR Record) with your server provider.
1 2 3 |
176.123.8.12 > pmta1.sevrerok.in 176.123.8.13 > pmta2.sevrerok.in 176.123.8.17 > pmta3.sevrerok.in |
Edit PowerMTA config file
1 |
vi /etc/pmta/config |
Find your virtual-mta configuration, replace it with
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
<virtual-mta pmta1> smtp-source-host 176.123.8.12 pmta1.sevrerok.in domain-key default,*,/etc/pmta/default.sevrerok.in.pem <domain *> max-msg-rate 400/h </domain> </virtual-mta> <virtual-mta pmta2> smtp-source-host 176.123.8.13 pmta2.sevrerok.in domain-key default,*,/etc/pmta/default.sevrerok.in.pem <domain *> max-msg-rate 400/h </domain> </virtual-mta> <virtual-mta pmta3> smtp-source-host 176.123.8.17 pmta3.sevrerok.in domain-key default,*,/etc/pmta/default.sevrerok.in.pem <domain *> max-msg-rate 400/h </domain> </virtual-mta> <virtual-mta-pool pmta-pool> virtual-mta pmta1 virtual-mta pmta2 virtual-mta pmta3 </virtual-mta-pool> |
See PowerMTA