0

We recently moved offices, and thus changed our public IPs for our Postfix mail server, and I'm now experiencing some very strange behaviour.

The server will work fine for 24 hours or so, but then it will stop accepting outbound email via IMAP, or it will send the mail but the mail will stay in the outbox, and then duplicates will be sent.

Restarting the DNS server running on the same box, then restarting postfix, will fix the problem, and in fact some email (both internal and external) will be delivered to local mailboxes. So it seems like some sort of DNS issue is blocking services somehow. I have DNS lookups turned off in main.cf so I don't know why DNS would be an issue.

I can't find any DNS issues with the server - only the external IP changed and that's NATed on the firewall, so from the server's perspective nothing has changed. The current config is unchanged from before the move, and it worked perfectly for over 2 years before that.

As an additional aside, sshing into the box takes 30+ seconds the first time, as does sudoing, but after that initial attempt it instantly logs in. So, all the symptoms point to a DNS issue but I cannot find anything wrong.

Jeremy Wilson
  • 311
  • 1
  • 3
  • 12
  • I'd suspect DNS as well. The symptoms sound to me as if your domain still has some MX record that points to something _other_ than the new postfix IP ( probably the old IP?). Postfix is attempting to send to the primary MX for your domain, not realizing that it itself is _supposed_ to be that MX, and queueing all the mail. The queue eventually fills up and it's not willing to take more at that point. Can't guarantee it, I'd need to investigate and have all the details, but that's my hunch. – erik258 Jan 05 '17 at 22:43
  • Could you show some logs please? – sebix Jan 06 '17 at 15:49
  • Logs are normal. – Jeremy Wilson Jan 06 '17 at 19:36

0 Answers0