Exim Logging Port and Plaintext Connections
DirectAdmin recently has enforced stricter rules for sending mail (changelog).
The long story short is that starting with the DirectAdmin version 1.676:
- Port 25 cannot be used for the mail submission. It’s dedicated for server to server comunication.
- Authentication via port 587 works only when using StartTLS.
The changelog also provides a way to revert the full or partial functionality to the previous one in case the impact is bigger than expected.
However, the change is strongly adviced. But before jumping to the stricter mode, you may want to collect some stats to visualize how much users are actually using the forbidden settings.
Gathering stats
- Get plaintext authenticated users:
|
|
The P=
keywords are described in rfc3848
|
|
- To get all the users that authenticated using 25 port (requires exim.conf mod):
|
|
exim.conf modification for port logging
Customisation of exim.conf by appending the +incoming_interface
setting to the log_selector
variable.
After adding the setting it should look like this:
|
|
Note: You may want to copy the config to
/usr/local/directadmin/custombuild/custom/exim/
in case you want to be persistent.