Our server has been plagued with spam sent from malware on a handful of accounts. We bought CXS several days ago, but it hasn't been installed yet and we don't know why. In the meantime, I would like to execute a script to delete outgoing email from these accounts when there's a LOCALRELAY Alert for one of those accounts. So, I want to create a script to use with the RT_ACTION setting in csf.conf.
The csf.conf file contains these directions:
Code: Select all
# If an RT_* event is triggered, then if the following contains the path to
# a script, it will be run in a child process and passed the following:
# information as parameters which also appears in the email alert:
# IP Address
# Relay Type (RELAY/AUTHRELAY/POPRELAY/LOCALRELAY/LOCALHOSTRELAY)
# Block Message (Temporary/Permanent Block)
# Count of emails relayed
# Sample of the first 10 emails
If there's anyone who's created a RT_ACTION setting, please share what the script needs to do to test that it's a LOCALRELAY alert and then determine which account triggers it. An example would be great.
Thank you in advance.