With this identification method, you can define specific headers for us to search within outgoing messages. If a message does not have these lines, it is blocked by the filter. This can help to prevent or better track spam without affecting other senders of the domain.
Log in to the admin panel. You can find instructions in our FAQ article "How can I log in to the Admin-Panel (web interface of the filter)?".
In the "Outgoing" menu, click on the sub-item "Manage users".
Select "Edit" from the Domain Authenticating User's drop-down menu.
Select "Header" from the drop-down menu "Identification Method" and click on the button "+ Add New Identification Header".
In the "Header name" field, enter the header name that you are configuring (e.g. "X-AuthUser" for Exim/cPanel or "Received" for Postfix).
For the "Header Value" choose between the following two options:
Click on "Add".
If you have more than one identity configured, each identity will be processed in turn. If there are multiple headers in a message, EuropeanMX will always process the first header as the first one.
The setup at EuropeanMX is now completed. You can check the settings by searching for a sent message under "Outgoing" < "Logs" and viewing the "Identity" column. If you see the previously defined data in the column, the identification works correctly.
It is important to set up a good identification for your different mail streams in order to use this feature effectively.
There are many different message headers and identities that you can use. Below are a few examples:
Header name: X-AuthUser
Header value: Simple
Header name: X-PHP-Originating-Script
Header value: ^(.*?)\(.*$
Header name: Received
Header value: .*\(Authenticated sender: (.*?)\).*
To enable EuropeanMX to check the identity header when sending a message, your mail server must be configured to automatically add the identity header when the message is transferred. Below we have put together a few sample configurations:
headers_add = X-AuthUser: $authenticated_id
headers_add = X-AuthUser: ${if match {$authenticated_id}{.*@.*}\
{$authenticated_id} {${if match {$authenticated_id}{.+}\
{$authenticated_id@$primary_hostname}{$authenticated_id}}}}
headers_add = ${if !eq{$original_domain}{$domain}{X-Forwarded-For: $original_domain}}
smtpd_sasl_authenticated_header = yes
This adds the line "Authenticated Sender" to the received message header.