1

Topic: Changed Ip can not sendmail

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

After changed my ip from 192.168.2.92  to 172.16.0.92 i can not send mail anymore.
Receiving mail works fine.

What am I missing ???

/Thanks Michael

==== Required information ====
- iRedMail version 0.9.3
- Linux debian
- Store mail accounts in MySQL
- Web server Nginx
- Manage mail accounts with iRedAdmin-Pro nope free Edition

snip of logfile.

Mar  9 16:39:13 mail postfix/qmgr[2306]: B472062813: from=<my-email>, size=1880, nrcpt=1 (queue active)
Mar  9 16:39:13 mail amavis[2051]: (02051-07) Passed CLEAN {RelayedInternal}, ORIGINATING/MYNETS LOCAL [172.16.0.46]:36090 <from-email> -> <to-email>, Queue-ID: 99A4B62812, Message-ID: <56E043A1.8020204@mydomain>, mail_id: Ahyp68Yxokdq, Hits: -1, size: 817, queued_as: B472062813, dkim_new=<mydomain>, 102 ms
Mar  9 16:39:13 mail postfix/smtp[3153]: 99A4B62812: to=<to-email>, relay=127.0.0.1[127.0.0.1]:10026, delay=0.15, delays=0.05/0/0/0.11, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as B472062813)
Mar  9 16:39:13 mail postfix/qmgr[2306]: 99A4B62812: removed
Mar  9 16:39:14 mail postfix/smtp[3188]: connect to gmail-smtp-in.l.google.com[2a00:1450:4010:c02::1a]:25: Network is unreachable
Mar  9 16:39:14 mail postfix/smtp[3188]: B472062813: to=<to-email>, relay=gmail-smtp-in.l.google.com[74.125.205.27]:25, delay=0.76, delays=0/0.01/0.48/0.26, dsn=2.0.0, status=sent (250 2.0.0 OK 1457537954 r123si4097835lfr.226 - gsmtp)
Mar  9 16:39:14 mail postfix/qmgr[2306]: B472062813: removed
Mar  9 16:42:33 mail postfix/anvil[3103]: statistics: max connection rate 1/60s for (smtpd:80.67.6.50) at Mar  9 16:37:03
Mar  9 16:42:33 mail postfix/anvil[3103]: statistics: max connection count 1 for (smtpd:80.67.6.50) at Mar  9 16:37:03
Mar  9 16:42:33 mail postfix/anvil[3103]: statistics: max cache size 2 at Mar  9 16:39:13

====

----

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

2

Re: Changed Ip can not sendmail

michaelvv wrote:

After changed my ip from 192.168.2.92  to 172.16.0.92 i can not send mail anymore.

Any error message in your mail client application (webmail, outlook, Thunderbird, etc)?

michaelvv wrote:

Mar  9 16:39:14 mail postfix/smtp[3188]: connect to gmail-smtp-in.l.google.com[2a00:1450:4010:c02::1a]:25: Network is unreachable

It's trying to connect to Gmail IPv6 address, does your server have IPv6 address?

3

Re: Changed Ip can not sendmail

ZhangHuangbin wrote:
michaelvv wrote:

After changed my ip from 192.168.2.92  to 172.16.0.92 i can not send mail anymore.

Any error message in your mail client application (webmail, outlook, Thunderbird, etc)?

michaelvv wrote:

Mar  9 16:39:14 mail postfix/smtp[3188]: connect to gmail-smtp-in.l.google.com[2a00:1450:4010:c02::1a]:25: Network is unreachable

It's trying to connect to Gmail IPv6 address, does your server have IPv6 address?

HI ZhangHuangbin.

Due to using linux lxc container.

After reconfigured my mailserver to the class B network, my ivp6 address was mess up, so I just
forced the postfix to using ivp4 instead.

so in /etc/postfix/main.cf I added

inet_protocols = ipv4

restarted and now It works fine.

/thanks