Mails from PHP mail() not filtered by rspamd/exim

kladizkov

New member
Joined
Jan 25, 2021
Messages
2
I have installed and configured Rspamd in our directadmin server. Except mails that are send using php mail(), all outgoing mails get scanned by Rspamd.

I'm trying to get mails send using php mail() to be scanned by rspamd. In exim logs, such mails will show up like below.

=====
2021-01-21 22:00:32 cwd=/home/accountuser/domains/accountuserdomain.com/public_html 5 args: /usr/sbin/sendmail -t -i -f [email protected]
2021-01-21 22:00:33 2l37BI-0282Er-BH <= [email protected] U=accountuser P=local S=568 T="My Emails" from <[email protected]> for [email protected]
2021-01-21 22:00:33 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 2l37BI-0282Er-BH
2021-01-21 22:00:33 2l37BI-0282Er-BH => [email protected] F=<[email protected]> R=lookuphost T=remote_smtp S=1454 H=outboundhost.com [123.123.123.123] X=TLS1.2:ECDHE-ECDSA-AES128-GCM-SHA256:128 CV=yes C="250 2.0.0 OK 1611370843 u17si11068733ybj.429 - smtp"
2021-01-21 22:00:35 2l37BI-0282Er-BH Completed
=====

Nothing will be shown in rspamd.log. This happens only for mails that are send using php's mail(). How can I also get these mails scanned by rspamd?
 
Back
Top