- CENTOS 7.4
- WHM v68.0.36
- PHP 7.0.29
The site that I'm working on (foobar.com) uses PHP Mail to send emails via a front-end contact form. Only an A record is pointed to this server, so MX records do not come into play as far as I know.
Emails are sent using a from address of [email protected] and are sent to addresses on external domains.
I would like to configure SpamAssassin to prevent outgoing spam emails. So far, I've done the following in WHM > Exim Configuration Manager.
ACL:
- Apache SpamAssassin reject spam score threshold - 1
- Apache SpamAssassin: Forced Global ON - enabled
- Scan outgoing messages for spam and reject based on defined Apache SpamAssassin score - 2
- Do not forward mail to external recipients based on the defined Apache SpamAssassin score - 2
Code:
X-Spf-Status: internal_error
X-Spam-Score: 100
X-Ms-Exchange-Organization-Authas: Anonymous
X-Authenticated-Sender: host.foobar.com: [email protected]
Spam-Stopper-V2: Yes
Return-Path: [email protected]
X-Outgoing-Spam-Status: No, score=1.7
X-Php-Script: www.foobar.com/index.php for 146.185.223.45
X-Antiabuse: This header was added to track abuse, please include it with any abuse report
X-Antiabuse: Primary Hostname - host.foobar.com
X-Antiabuse: Original Domain - myagencydomain.com
X-Antiabuse: Originator/Caller UID/GID - [1004 994] / [47 12]
X-Antiabuse: Sender Address Domain - foobar.com
X-Rdns-Status: pass
X-Cmae-Analysis: v=2.2 cv=KdiiiUQD c=1 sm=1 tr=0 p=vunVSMQuAAAA:8 a=RlVqcaIcYrwspz6jv1/UUQ==:117 a=RlVqcaIcYrwspz6jv1/UUQ==:17 a=9+rZDBEiDlHhcck0kWbJtElFXBc=:19 a=IkcTkHD0fZMA:10 a=00susGKmFCUA:10 a=QG2GU6Tx0C0A:10 a=MuaeFusq_UQA:10 a=Kd1tUaAdevIA:10 a=voaReoZHVQIA:10 a=W0xnywqEAAAA:8 a=9Dx8fhRWlIe3BX9u-PUA:9 a=IvN1vS8p1NYsI4Zn:21 a=xwIu7TnLqA44iwvY:21 a=ebssT2Pg4LZiMCej:21 a=QEXdDO2ut3YA:10 a=kvi-aVvvx00A:10 a=k0ykbI1PaL3kEB8atyas:22 a=SsrFxdC4mYw4ZYkWcDDW:22
X-Aes-Category: SPAM
X-Spam-Reasons: Cause=gggruggvucftvghtrhhoucdtuddrgedtgedriedvgdektdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucdtuddrgedtgedrtddtpdfkpffvgfftoffgfffktedpggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepvffufffhkfggtgeshhdtjhdttddtjeenucfhrhhomhepjfgftffuvfculfgrfihsuchofhcunfhifhgvuceoihhnfhhosehjrgifshhofhhlihhfvgdrtghomheqnecuffhomhgrihhnpehoughlvghtvhdrrhhupdhrrhgrthhinhhghihfuhdrrhhunecukfhppeeigedrledurddvgeehrddvudehnecuvehluhhsthgvrhfuihiivgeptd To=Darth Vader <[email protected]> From=Foo Bar <[email protected]>
X-Source-Args: php-fpm: pool foobar_com
Message-Id: <[email protected]>
X-Spam-Category: LEGIT
Mime-Version: 1.0
X-Php-Originating-Script: 1004:class.phpmailer.php
Thanks!