I needed to change the smart host setting for a Sendmail email server, so I edited
/etc/mail/sendmail.mc
and rebuilt /etc/mail/sendmail.cf
with the m4 command.
I then attempted to restart
Sendmail, but it did not restart.# m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf # service sendmail restart Redirecting to /bin/systemctl restart sendmail.service Job for sendmail.service failed because the control process exited with error code. See "systemctl status sendmail.service" and "journalctl -xe" for details.
When I issued a systemctl status sendmail.service
command
for further information, I saw the following:
# systemctl status sendmail.service ● sendmail.service - Sendmail Mail Transport Agent Loaded: loaded (/usr/lib/systemd/system/sendmail.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Thu 2016-08-18 15:40:49 EDT; 11s ago Process: 25578 ExecStart=/usr/sbin/sendmail -bd $SENDMAIL_OPTS $SENDMAIL_OPTARG (code=exited, status=78) Process: 25573 ExecStartPre=/etc/mail/make aliases (code=exited, status=0/SUCCESS) Process: 25570 ExecStartPre=/etc/mail/make (code=exited, status=0/SUCCESS) Main PID: 3394 (code=exited, status=0/SUCCESS) Aug 18 15:40:49 moonpoint.com systemd[1]: Starting Sendmail Mail Transport A.... Aug 18 15:40:49 moonpoint.com sendmail[25578]: 554 5.0.0 /etc/mail/sendmail....d Aug 18 15:40:49 moonpoint.com sendmail[25578]: NOQUEUE: SYSERR(root): /etc/m...d Aug 18 15:40:49 moonpoint.com sendmail[25578]: NOQUEUE: SYSERR(root): InputF...y Aug 18 15:40:49 moonpoint.com sendmail[25578]: 451 4.0.0 InputFilter BitDefe...y Aug 18 15:40:49 moonpoint.com systemd[1]: sendmail.service: control process ...8 Aug 18 15:40:49 moonpoint.com systemd[1]: Failed to start Sendmail Mail Tran.... Aug 18 15:40:49 moonpoint.com systemd[1]: Unit sendmail.service entered fail.... Aug 18 15:40:49 moonpoint.com systemd[1]: sendmail.service failed. Hint: Some lines were ellipsized, use -l to show in full.
When I undid the changes I had made to sendmail.mc
, the issue
remained. When I used the
journalctl command to check on the problem, I saw the following:
# journalctl -xe -- -- Unit sendmail.service has failed. -- -- The result is failed. Aug 18 15:43:25 moonpoint.com systemd[1]: Dependency failed for Sendmail Mail Tr -- Subject: Unit sm-client.service has failed -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit sm-client.service has failed. -- -- The result is dependency. Aug 18 15:43:25 moonpoint.com systemd[1]: Job sm-client.service/start failed wit Aug 18 15:43:25 moonpoint.com systemd[1]: Unit sendmail.service entered failed s Aug 18 15:43:25 moonpoint.com systemd[1]: sendmail.service failed. Aug 18 15:43:25 moonpoint.com polkitd[771]: Unregistered Authentication Agent fo Aug 18 15:43:53 moonpoint.com sshd[25845]: Address 168.176.56.13 maps to wimax13 Aug 18 15:43:53 moonpoint.com sshd[25845]: Invalid user log from 168.176.56.13 Aug 18 15:43:53 moonpoint.com sshd[25845]: input_userauth_request: invalid user Aug 18 15:43:53 moonpoint.com sshd[25845]: pam_unix(sshd:auth): check pass; user Aug 18 15:43:53 moonpoint.com sshd[25845]: pam_unix(sshd:auth): authentication f Aug 18 15:43:55 moonpoint.com sshd[25845]: Failed password for invalid user log Aug 18 15:43:56 moonpoint.com sshd[25845]: Connection closed by 168.176.56.13 [p lines 1490-1512/1512 (END)
[ More Info ]