Page 1 of 1

sendmail and spamassassin

Posted: 2020/03/07 23:22:14
by droidus
I am running sendmail and spamassassin, and I know dovecot/postfix work before adding spamassassin, which uses sendmail. I believe the culprit to be sendmail. Here are two lines from my master.cf:

Code: Select all

smtp      inet  n       -       n       -       -       smtpd -o content_filter=spamassassin -o smtpd_enforce_tls=yes
spamassassin unix - n n - - pipe flags=R user=spamd argv=/usr/bin/spamc -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}
When I send an e-mail to my server, I do not receive it, so I believe it is getting lost somewhere. In the maillog, I can see that the public mail server hits my server, but I don't see any errors/warnings that follow from there.

Re: sendmail and spamassassin

Posted: 2020/03/08 01:47:27
by KernelOops
I am confused, are you using sendmail or postfix? because you can't be using both...

I use postfix with spamassassin, and that requires a milter that sits between them, I use spamass-milter which does the job.

Re: sendmail and spamassassin

Posted: 2020/03/08 16:38:20
by droidus
I am only using sendmail here because I found a spamassassin tutorial, and it used this.

Re: sendmail and spamassassin

Posted: 2020/03/08 17:04:03
by TrevorH
But you appear to be using postfix not sendmail.

Re: sendmail and spamassassin

Posted: 2020/03/08 18:13:49
by sml
You are confused by the command /usr/sbin/sendmail being provided by every MTA:

Code: Select all

$ yum -q provides /usr/sbin/sendmail
exim-4.92.3-1.el7.x86_64 : The exim mail transfer agent
Repo        : epel
Matched from:
Filename    : /usr/sbin/sendmail

opensmtpd-6.0.3p1-5.el7.x86_64 : Free implementation of the server-side SMTP protocol as
                               : defined by RFC 5321
Repo        : epel
Matched from:
Filename    : /usr/sbin/sendmail

2:postfix-2.10.1-7.el7.x86_64 : Postfix Mail Transport Agent
Repo        : base
Matched from:
Filename    : /usr/sbin/sendmail

sendmail-8.14.7-5.el7.x86_64 : A widely used Mail Transport Agent (MTA)
Repo        : base
Matched from:
Filename    : /usr/sbin/sendmail

ssmtp-2.64-14.el7.x86_64 : Extremely simple MTA to get mail off the system to a Mailhub
Repo        : epel
Matched from:
Filename    : /usr/sbin/sendmail

Re: sendmail and spamassassin

Posted: 2020/03/13 22:22:50
by droidus
So instead of pointing it to sendmail, I should point it to spamass-milter? Would this work: http://milter-manager.osdn.jp/reference ... entos.html ?