Using an identity header allows the system to track and prevent spammers without affecting other senders for the domain.
Step 1 - Configuring the Identity Header Identity Method via the Spam Experts Control Panel
Configure Spam Experts to log and monitor identity headers.
- Navigate to the outgoing authenticating domain.
- Select Outgoing > Manage Users.
- Select Edit from the dropdown alongside the 'Authenticating Domain' outgoing user:
The Outgoing User Settings page is displayed.
- From the Identification Method dropdown, select Header.
- Click on + Add a new identification header.
- In the Header name field, add the header name that you are configuring, (for example X-AuthUser for Exim/cPanel).
- From the Header value dropdown select from:
- Simple - The entire header value will be used to identify unique users that share this identification method
- Custom - Specify a custom regular expression that will be used to extract the identity from the header value in order to identify unique users that share this authentication method.
- If you want to keep this header after processing, ensure the Remove after processing option is ticked. Alternatively, to keep the header after processing remove the tick.
- Click Add.
- Once you have set this up, verify that all is working correctly by checking your outgoing messages in the Outgoing Log Search and look for new messages using the Identity column. If you see data which is using the new identity, it is working correctly.
It is important to set up a good identifier for your different mail streams in order to make effective use of this feature.
There are many different headers and identities that can be set. Here are some examples:
- Header name: X-AuthUser
- Header value: Simple
- Header name: X-PHP-Originating-Script
- Header value: ^(.*?)\(.*$
- Header name: Received
- Header value: .*\(Authenticated sender: (.*?)\).*
As well as configuring Spam Experts to log and monitor identity headers you must ensure that this is also set up in your sending MTA. Here are some example configurations:
Microsoft Exchange Identification headers
Currently on Microsoft Exchange, to be able to add custom outgoing headers a XHeader transport agent must be built. For more information, see the Microsoft KB
Postfix Identification headers
To do this in Postfix, you need to add the following line to your main.cf if not already there:
This will add an "Authenticated Sender" part to the received header