On 05-18-2021 3:10 pm, Noel Jones wrote:
Yes, postfix will attempt to lookup a hostname and use all the IPs
associated with it. This can cause a problem on startup if postfix
starts before the name resolution is available.

The solution i use to this problem on a RHEL systemd server is using the command

   systemctl edit postfix

And putting:

   [Unit]
   Wants=network-online.target
   After=network-online.target

in the file.
This will tell systemd to wait for the network to have a connection before allowing the service to start.

Reply via email to