Hi

On Tue, 29 Apr 2025 22:06:28 +0930 Tim via users wrote:

> Barry <ba...@barrys-emacs.org> kirjoitti:
>> > Being enabled is not necessarily enough.
>> > It must be enabled for the default target.
>> > 
>> > Is it wanted by the default target?

/usr/lib/systemd/system/postfix.service states to enable it in
the multi-user.target: WantedBy=multi-user.target

> jarmo:
>> Is this what you mean?
>> systemctl enable postfix
>> Created symlink
>> '/etc/systemd/system/multi-user.target.wants/postfix.service' →
>> '/usr/lib/systemd/system/postfix.service'.

And this is done now. It was not enabled before.

@jarmo: can you check that postfix starts now after a reboot ?

> What you probably want is a network-online.target or
> network-wait-online.target, so the network has to be up beforehand
> (and I've forgotten the precise name for it right now).

(this is network-online.target that pulls NetworkManager-wait-online.service)

By default postfix listen only to localhost:

  /etc/postfix/main.cf: inet_interfaces = localhost

If you want incoming smtp connections, the simplest way to do that is
to set inet_interfaces = all in main.cf

> Bearing in mind that even *then* there have been cases of the network
> not actually being up and running before being declared it was.

Right.

> I'm beginning to think we need either a post-boot target, or at
> least an improvement on the network is up decision making.

I wrote one. Search for nm-wait-online-routes-gw.conf in the list
archives:

  
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org/message/THPESZMXWTH6IO6B6YJXUQAGHOMPVCFF/

-- 
francis
-- 
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
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@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to