T
T
Twelfth Doctor2017-08-30 21:53:15
linux
Twelfth Doctor, 2017-08-30 21:53:15

Why won't sendmail start?

Hello. Trying to connect rspamd to sendmail
Adding lines to the /etc/mail/sendmail.conf file according to the documentation

MAIL_FILTER(`rspamd', `S=inet:localhost:11332, F=T')
define(`confINPUT_MAIL_FILTERS', `rspamd')

Sendmail crashes on restart
[email protected]:~$ sudo service sendmail restart
Job for sendmail.service failed because the control process exited with error code. See "systemctl status sendmail.service" and "journalctl -xe" for details.

авг 30 21:50:25 node sendmail[21589]: /etc/init.d/sendmail: 1: /etc/mail/sendmail.conf: Syntax error: Unterminated quoted string
авг 30 21:50:25 node systemd[1]: sendmail.service: Control process exited, code=exited status=2
авг 30 21:50:25 node systemd[1]: Failed to start LSB: powerful, efficient, and scalable Mail Transport Agent.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
Twelfth Doctor, 2017-08-30
@verdex

Problem solved. It turns out that these lines should have been written in /etc/sendmail/sendmail.mc , and not in /etc/mail/sendmail.conf , and then run the command m4 sendmail.mc > /etc/sendmail.cfand restart sendmail

A
Alexey Cheremisin, 2017-08-30
@leahch

Well, he writes to you that quotes are not closed somewhere. I have a doubt about the back quotes, in theory they should be straight.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question