On Sat, Sep 30, 2023 at 5:45 PM Alexander Dalloz <ad+lists(a)uni-x.org> wrote:
Am 30.09.2023 um 23:22 schrieb Patrick Dupre:
> Hello,
>
> It seems that 09/09, the sendmail was working fine, but not on 09/16.
>
> Now I get
>
> systemctl start sendmail.service
> Job for sendmail.service failed because a timeout was exceeded.
> See "systemctl status sendmail.service" and "journalctl -xeu
sendmail.service" for details.
>
> journalctl -xeu sendmail.service
>
> Subject: A start job for unit sendmail.service has begun execution
> ░░ Defined-By: systemd
> ░░ Support:
https://lists.freedesktop.org/mailman/listinfo/systemd-devel
> ░░
> ░░ A start job for unit sendmail.service has begun execution.
> ░░
> ░░ The job identifier is 13643.
> Sep 30 23:08:29 Sappho sendmail[88774]: My unqualified host name (Sappho) unknown;
sleeping for retry
https://users.fedoraproject.narkive.com/3QtoAqYk/fc3-problems-with-sendma...
> Sep 30 23:09:15 Sappho systemd[1]: sendmail.service: start operation timed out.
Terminating.
> Sep 30 23:09:15 Sappho systemd[1]: sendmail.service: Failed with result
'timeout'.
> ░░ Subject: Unit failed
> ░░ Defined-By: systemd
> ░░ Support:
https://lists.freedesktop.org/mailman/listinfo/systemd-devel
> ░░
> ░░ The unit sendmail.service has entered the 'failed' state with result
'timeout'.
> Sep 30 23:09:15 Sappho systemd[1]: Failed to start sendmail.service - Sendmail Mail
Transport Agent.
> ░░ Subject: A start job for unit sendmail.service has failed
> ░░ Defined-By: systemd
> ░░ Support:
https://lists.freedesktop.org/mailman/listinfo/systemd-devel
> ░░
> ░░ A start job for unit sendmail.service has finished with a failure.
> ░░
> ░░ The job identifier is 13643 and the job result is failed.
>
> I have in
> /etc/hostname
> Sappho
>
> in /etc/host.conf
> multi on
>
> in /etc/hosts
> # Loopback entries; do not change.
> # For historical reasons, localhost precedes localhost.localdomain:
> 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
> ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
> # See hosts(5) for proper format and other examples:
> # 192.168.1.10
foo.mydomain.org foo
> # 192.168.1.13
bar.mydomain.org bar
>
> I do not see anything about sendmail in dmesg.
>
> Something wrong now?
Sendmail requires a FQDN; see
https://www.sendmail.org/~ca/email/doc8.12/cf/m4/whoami.html
This is a sharp edge... A Fully Qualified Domain Name ends in a dot
('.'). The dot denotes the top of the DNS tree.
Systemd's hostnamectl strips the trailing dot when setting a hostname.
Jeff