Re: postfix fails to start on boot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2024-05-16 at 21:40 -0400, Alex wrote:
> Hi,
> I have a fedora38 server with postfix-3.7.9 (although this problem
> has existed for a long time) that fails to start because I believe
> the server has multiple interfaces.
>
> ifconfig shows just the primary ethernet interface, but "ip addr"
> shows the rest. There are five total interfaces in this multi-
> instance postfix config.

Are you using them all?  Are they all up?  Do you want postfix to work
with all of them?  I'm guessing so, but it's not absolutely clear.

If there's a "no" in there, have you tried configuring postfix to only
care about a particular interface or IP?

If "yes," how have you configured postfix to listen?  To specific
interfaces, to a generic "all"?


> After the system boots, I can start postfix successfully with just
> "service postfix start".
> 
> Is it perhaps trying to start before networking is available? This
> would be odd because the problem has persisted for quite a while, and
> I would have thought something like that would have been fixed long
> ago.
> 
> Perhaps related to the difference between ifconfig and ip? Where is
> the egrep coming from? I don't see it in the systemd file:
> 
> # ls -l /etc/systemd/system/multi-user.target.wants/postfix.service
> lrwxrwxrwx 1 root root 39 Jan 24  2023 /etc/systemd/system/multi-user.target.wants/postfix.service -> /usr/lib/systemd/system/postfix.service

It could well be down to it trying to start too early, and other people
have dealt with it by themselves, or their hardware comes up quicker
than yours does.

You may want to look into network-online.target, and define what you
consider as the network being up (is one interface adequate or all
interfaces required?).

multi-user.target.wants is rather simple /the OS is running/, and it
can do that without there being a network.

I kinda wish there was a general purpose "non-urgent" parameter for
some services.  They wouldn't try to immediately start as the system
booted, cutting down on the flurry of things trying to fire up.  Let
just the essential services do that.  After that, *then* look at the
remaining ones.

 
-- 
 
uname -rsvp
Linux 3.10.0-1160.118.1.el7.x86_64 #1 SMP Wed Apr 24 16:01:50 UTC 2024 x86_64
 
Boilerplate:  All unexpected mail to my mailbox is automatically deleted.
I will only get to see the messages that are posted to the mailing list.
 
--
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux