1

Topic: No email in or out since Hosting Service moved my IP

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):
- Deployed with iRedMail Easy or the downloadable installer?
- 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?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

My system was moved (perhaps physically) to a new IP.
I've updated my reverse dns and all my normal dns settings
email is hitting my server, but being rejected:

Jan  5 10:24:50 mail postfix/smtpd[9404]: Anonymous TLS connection established from unknown[13.111.87.70]: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)
Jan  5 10:24:56 mail postfix/smtpd[10405]: NOQUEUE: reject: RCPT from unknown[13.111.62.131]: 450 4.7.1 <mta.email.roberthalf.com>: Helo command rejected: Host not found; from=<bounce-687_HTML-173502398-1497587-100008946-14134@bounce.email.roberthalf.com> to=<andrew@MYDOMAIN.com> p$
Jan  5 10:24:56 mail postfix/smtpd[10405]: disconnect from unknown[13.111.62.131]


I'm not sure why I'm getting the 'Host not found'.

I can't send (except within my own domains) email, either.

Additionally, commands like 'yum update' time out on the new machine/IP

All was working before the forced 'move'.

Suggestions on where to start looking?


Thank you.

Andrew

----

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

2

Re: No email in or out since Hosting Service moved my IP

First would be the DNS settings, especially the resolver, if you can't lookup hosts, you can't send mails aswell

3

Re: No email in or out since Hosting Service moved my IP

DNS settings are all on namecheap.com and have the new IP.

What/where else am I checking?

Thanks for the help.

Andrew

4

Re: No email in or out since Hosting Service moved my IP

AndyInNYC wrote:

What/where else am I checking?

Hello,
can you provide /etc/resolv.conf ?
Is it a Linux or BSD system ?
can you provide output of:

dig mx gmail.com

Nicolas.

5

Re: No email in or out since Hosting Service moved my IP

dig isn't on the system and yum fails (likely part of my overall problem!).



[root@mail ~]# yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7 … nfra=stock error was
12: Timeout on http://mirrorlist.centos.org/?release=7 … fra=stock: (28, 'Resolving timed out after 30545 milliseconds')


One of the configured repositories failed (Unknown),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:

     1. Contact the upstream for the repository and get them to fix the problem.

     2. Reconfigure the baseurl/etc. for the repository, to point to a working
        upstream. This is most often useful if you are using a newer
        distribution release than is supported by the repository (and the
        packages for the previous distribution release still work).

     3. Run the command with the repository temporarily disabled
            yum --disablerepo=<repoid> ...

     4. Disable the repository permanently, so yum won't use it by default. Yum
        will then just ignore the repository until you permanently enable it
        again or use --enablerepo for temporary usage:

            yum-config-manager --disable <repoid>
        or
            subscription-manager repos --disable=<repoid>

     5. Configure the failing repository to be skipped, if it is unavailable.
        Note that yum will try to contact the repo. when it runs most commands,
        so will have to try and fail each time (and thus. yum will be be much
        slower). If it is a very temporary problem though, this is often a nice
        compromise:

            yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true

Cannot find a valid baseurl for repo: base/7/x86_64

Everything was working properly until flipperhost forced a move/IP change on me.


Thanks for all the help.

Andrew

6 (edited by dave.opc 2024-01-07 02:41:58)

Re: No email in or out since Hosting Service moved my IP

cat /etc/resolv.conf
show us what's in this file
also:
ip r - what's the output, probably your gateway changed aswell

7

Re: No email in or out since Hosting Service moved my IP

[root@mail ~]# cat /etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4

So that looks right.

[root@mail ~]# ip r
default via 173.82.12.1 dev eth0
142.171.142.128/25 dev eth0 proto kernel scope link src 142.171.142.193
169.254.0.0/16 dev eth0 scope link metric 1002
173.82.12.0/25 dev eth0 proto kernel scope link src 173.82.12.4
[root@mail ~]#

My old IP was 173.82.12.4 - this is no longer.
The current IP is 142.171.142.193

So what changes can I make (ie what file are the old settings still in) assuming this is the cause of my problems.

And was this a problem caused by their port/forced change, or something strictly on me?

Thanks again, guys.

Andrew

8 (edited by dave.opc 2024-01-07 03:50:34)

Re: No email in or out since Hosting Service moved my IP

default via 173.82.12.1 dev eth0
your gateway is still 173.82... (old one) should be 142.171.142.128 (better confirm with provider)

173.82.12.0/25 dev eth0 proto kernel scope link src 173.82.12.4 - this should be removed aswell
i believe in centos7 should work nmcli to modify settings or
edit this file: /etc/sysconfig/network-scripts/ifcfg-eth0

after that:
nmcli connection reload
or
nmcli connection down eth0
nmcli connection up eth0
or
reboot the server

9

Re: No email in or out since Hosting Service moved my IP

Thanks everyone.

the IPADDR and GATEWAY were both wrong (as pointed out).
My attempt to fix messed things up, but I recovered and the host supplied the info:
my Gateway isn't .1 but .129

Email is being received and can be sent.

Hopefully they'll stay in the same data center forever from now on (or whatever caused them to change my IP this time).

Again, my thanks.

Andrew