Hi
It seems that I did something wrong with the sendmail configuration files via the vcenter bash. I added
define(`SMART_HOST', `our_smtp_address')dnl
to /etc/mail/sendmail.mc and then ran
# m4 sendmail.mc > sendmail.cf
# service sendmail restart
But the service log shows this error
-- Unit sendmail.service has begun starting up.
Nov 02 13:22:52 10.1.1.2 sendmail[56368]: [91B blob data]
Nov 02 13:22:52 10.1.1.2 sendmail[56368]: NOQUEUE: SYSERR(root): /etc/mail/sendmail.cf: line 1: invalid argument to V line: "ERSIO
Nov 02 13:22:52 10.1.1.2 sendmail[56368]: 554 5.0.0 No local mailer defined
Nov 02 13:22:52 10.1.1.2 sendmail[56368]: NOQUEUE: SYSERR(root): No local mailer defined
Nov 02 13:22:52 10.1.1.2 sendmail[56368]: 554 5.0.0 QueueDirectory (Q) option must be set
Nov 02 13:22:52 10.1.1.2 sendmail[56368]: NOQUEUE: SYSERR(root): QueueDirectory (Q) option must be set
Nov 02 13:22:52 10.1.1.2 systemd[1]: sendmail.service: Control process exited, code=exited status=78
Nov 02 13:22:52 10.1.1.2 systemd[1]: Failed to start Sendmail Mail Transport Agent.
-- Subject: Unit sendmail.service has failed
The content of files are
root@10 [ /etc/mail ]# cat sendmail.mc
divert(-1)
divert(0)dnl
VERSIONID(`$Id: generic-linux.mc,v 8.2 2013-11-22 20:51:08 ca Exp $')
OSTYPE(linux)dnl
DOMAIN(generic)dnl
MAILER(local)dnl
MAILER(smtp)dnl
define(`SMART_HOST', `our_smtp_address')dnl
root@10 [ /etc/mail ]# cat sendmail.cf
VERSIONID($Id: generic-linux.mc,v 8.2 2013-11-22 20:51:08 ca Exp $)
OSTYPE(linux)DOMAIN(generic)MAILER(local)MAILER(smtp)
Clik here to view.
