1

Topic: best steps to change server sending/recieving IP

==== Required information ====
- iRedMail version (check /etc/iredmail-release): latest
- Linux/BSD distribution name and version: Ubuntu 14
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): apache
- Manage mail accounts with iRedAdmin-Pro? yes
- Related log if you're reporting an issue: n/a
====

im looking to change my "outward facing" IP address on our server due to issues we've been having with having inherited a potentially dirty IP address, i just wondered what the best steps are to achieve this?

I found the following article on your docs and it looks promising, is there anyway this can be modified to be applied to all sending domains? http://www.iredmail.org/docs/send.out.e … esses.html

is this even the best way? i am looking for a solution with the least possible disruption that i can potentially reverse if it doesn't fix our issue.

i understand that i will need to change my DNS record to reflect this IP change. Will i have to generate DKIM keys again also? is there anywhere else i need to change the IP? i am wary of changing the eth0 value in the network config as i think this may break the cloud config so i am keen to isolate the changes to just the mail functions.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: best steps to change server sending/recieving IP

Nothing special, just change the system IP address and update DNS records, no additional changes required to Postfix/Dovecot/Apache/DKIM/... config files.

3

Re: best steps to change server sending/recieving IP

so if i have 2 IP addresses available on my iredmail server how do i ensure that a specific one will be used when sending out mail? how do i make my outgoing email originate from the new IP address?

i hope this makes sense

4

Re: best steps to change server sending/recieving IP

bw1984 wrote:

so if i have 2 IP addresses available on my iredmail server how do i ensure that a specific one will be used when sending out mail? how do i make my outgoing email originate from the new IP address?

Set Postfix parameter `smtp_bind_address` and `inet_interfaces`:
http://www.postfix.org/postconf.5.html# … nd_address
http://www.postfix.org/postconf.5.html#inet_interfaces