sendmail and spamassassin

Issues related to applications and software problems
Post Reply
droidus
Posts: 31
Joined: 2018/10/14 13:23:12

sendmail and spamassassin

Post by droidus » 2020/03/07 23:22:14

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.

User avatar
KernelOops
Posts: 428
Joined: 2013/12/18 15:04:03
Location: xfs file system

Re: sendmail and spamassassin

Post by KernelOops » 2020/03/08 01:47:27

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.
--
R.I.P. CentOS :cry:
--

droidus
Posts: 31
Joined: 2018/10/14 13:23:12

Re: sendmail and spamassassin

Post by droidus » 2020/03/08 16:38:20

I am only using sendmail here because I found a spamassassin tutorial, and it used this.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: sendmail and spamassassin

Post by TrevorH » 2020/03/08 17:04:03

But you appear to be using postfix not sendmail.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

sml
Posts: 305
Joined: 2020/01/17 09:01:44

Re: sendmail and spamassassin

Post by sml » 2020/03/08 18:13:49

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

droidus
Posts: 31
Joined: 2018/10/14 13:23:12

Re: sendmail and spamassassin

Post by droidus » 2020/03/13 22:22:50

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 ?

Post Reply