How can I make sure that all PHP mail is logged and tracked by Warden?

  1. In Warden under Settings -> Anti-spam Milter Settings -> make sure that "Scan outgoing Non-SMTP" is checked.
  2. In each of your php.ini settings make sure that "mail.add_x_header" is set to On.

Example: To enable the X-PHP-Originating-Script header for PHP 7.0 so that it can be used by Warden.

Edit the file /opt/plesk/php/7.0/etc/php.ini

; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
mail.add_x_header = On

Restart the PHP 7.0 FPM handler:

service plesk-php70-fpm.service restart

Repeat the procedure for every version of PHP that you want Warden to track.

  • PHP
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Why isn't autolearning working for me (autolearn=no) ?

Lots of people seem to be confused by the "autolearn=no" statement in the default X-Spam-Status...

I get the a 502 gateway error when clicking on the application. How can I fix this?

This can usually be fixed by just restarting the Plesk interface:/etc/init.d/psa restart

How can I fix the error WARNING: Ignoring deprecated option AllowSupplementaryGroups after upgrading to ClamAV 1.00?

The AllowSupplementaryGroups option was deprecated in ClamAV 1.00. If this option is present in...

How can I fix the error: spamass-milter[27944]: Could not extract score from <> ?

When you look at your email log you see: spamass-milter[27944]: Could not extract score from...

How can I stop encrypted archives from being allowed though ClamAV?

For ClamAV 0.100 and belowUnder Warden -> Settings -> Scanning Settings -> Block...