Re: crond

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

 



> 
> > Date: Friday, July 28, 2023 12:12:04 +0200
> > From: Patrick Dupre <pdupre@xxxxxxx>
> >
> > Sorry, I am wrong.
> > crond is OK,
> > but sendmail is wrong.
> > 
> >  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'. Jul 28 12:08:42 homere 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 19979 and the job result is failed.
> > 
> > 
> > systemctl status sendmail
> > × sendmail.service - Sendmail Mail Transport Agent
> >      Loaded: loaded (/usr/lib/systemd/system/sendmail.service;
> > enabled; preset: disabled)     Drop-In:
> > /usr/lib/systemd/system/service.d
> >              └─10-timeout-abort.conf
> >      Active: failed (Result: timeout) since Fri 2023-07-28 12:08:42
> > CEST; 2min 45s ago     Process: 76753 ExecStartPre=/etc/mail/make
> > (code=exited, status=0/SUCCESS)     Process: 76754
> > ExecStartPre=/etc/mail/make aliases (code=exited, status=0/SUCCESS)
> >     Process: 76758 ExecStart=/usr/sbin/sendmail -bd $SENDMAIL_OPTS
> > $SENDMAIL_OPTARG (code=killed, signal=TERM)         CPU: 10ms
> > 
> > Jul 28 12:07:57 homere systemd[1]: Starting sendmail.service -
> > Sendmail Mail Transport Agent... Jul 28 12:07:57 homere
> > sendmail[76758]: My unqualified host name (homere) unknown;
> > sleeping for retry Jul 28 12:08:42 homere systemd[1]:
> > sendmail.service: start operation timed out. Terminating. Jul 28
> > 12:08:42 homere systemd[1]: sendmail.service: Failed with result
> > 'timeout'. Jul 28 12:08:42 homere systemd[1]: Failed to start
> > sendmail.service - Sendmail Mail Transport Agent.
> > 
> >> 
> 
> Sendmail wants a system name that resolves, not just a hostname that
> doesn't. Ideally this would be a FQDN. If you are only sending this
> mail to your local systems you could potentially deal with this by
> putting the hostname in the local machine's /etc/hosts file and then
> adjusting things so that your target system will accept mail from
> names that don't resolve.
> 
> Jul 28 12:07:57 homere sendmail[76758]: My unqualified host name
> (homere) unknown; sleeping for retry
> Jul 28 12:08:42 homere systemd[1]: sendmail.service: start operation
> timed out. Terminating.
> Jul 28 12:08:42 homere systemd[1]: sendmail.service: Failed with
> result 'timeout'.
> 

I have the same /etc/hosts on 2 machines
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

In one case
/etc/hostname
Teucidide

systemctl status sendmail
● sendmail.service - Sendmail Mail Transport Agent
     Loaded: loaded (/usr/lib/systemd/system/sendmail.service; enabled; preset: disabled)
    Drop-In: /usr/lib/systemd/system/service.d
             └─10-timeout-abort.conf
     Active: active (running) since Fri 2023-07-28 13:59:53 CEST; 8min ago
    Process: 37330 ExecStartPre=/etc/mail/make (code=exited, status=0/SUCCESS)
    Process: 37333 ExecStartPre=/etc/mail/make aliases (code=exited, status=0/SUCCESS)
    Process: 37337 ExecStart=/usr/sbin/sendmail -bd $SENDMAIL_OPTS $SENDMAIL_OPTARG (code=exited, status=0/SUCCESS)
   Main PID: 37338 (sendmail)
      Tasks: 1 (limit: 9309)
     Memory: 3.5M
        CPU: 312ms
     CGroup: /system.slice/sendmail.service
             └─37338 "sendmail: accepting connections"

Jul 28 13:59:53 Teucidide systemd[1]: Starting sendmail.service - Sendmail Mail Transport Agent...
Jul 28 13:59:53 Teucidide sendmail[37338]: starting daemon (8.17.1): SMTP+queueing@01:00:00
Jul 28 13:59:53 Teucidide systemd[1]: sendmail.service: Can't open PID file /run/sendmail.pid (yet?) after start: No such file or directory
Jul 28 13:59:53 Teucidide systemd[1]: Started sendmail.service - Sendmail Mail Transport Agent.


In the other case
/etc/hostname
homere

× sendmail.service - Sendmail Mail Transport Agent
     Loaded: loaded (/usr/lib/systemd/system/sendmail.service; enabled; preset: disabled)
    Drop-In: /usr/lib/systemd/system/service.d
             └─10-timeout-abort.conf
     Active: failed (Result: timeout) since Fri 2023-07-28 12:08:42 CEST; 1h 53min ago
    Process: 76753 ExecStartPre=/etc/mail/make (code=exited, status=0/SUCCESS)
    Process: 76754 ExecStartPre=/etc/mail/make aliases (code=exited, status=0/SUCCESS)
    Process: 76758 ExecStart=/usr/sbin/sendmail -bd $SENDMAIL_OPTS $SENDMAIL_OPTARG (code=killed, signal=TERM)
        CPU: 10ms

Jul 28 12:07:57 homere systemd[1]: Starting sendmail.service - Sendmail Mail Transport Agent...
Jul 28 12:07:57 homere sendmail[76758]: My unqualified host name (homere) unknown; sleeping for retry
Jul 28 12:08:42 homere systemd[1]: sendmail.service: start operation timed out. Terminating.
Jul 28 12:08:42 homere systemd[1]: sendmail.service: Failed with result 'timeout'.
Jul 28 12:08:42 homere systemd[1]: Failed to start sendmail.service - Sendmail Mail Transport Agent.


 _______________________________________________
> 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
>
_______________________________________________
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