Exim blacklist username - deny send email by cli without full smtp auth
Hi,
I'm seeking guidance on how to prevent a specific system user, for example, "damian," from sending emails without full SMTP authentication. This requirement is similar to what's documented for https://docs.directadmin.com/other-hosting-services/preventing-spam/incoming-spam.html#outbound-directadmin-username-smtp-login-blocks
example
example:
2024-02-29 15:39:38 1rfkNe-00B8mA-6S <= frog@example.com U=damian P=local S=665 T="Example send by cli" from <frog@example.com> for contact@cpanel.com
2024-02-29 17:39:38 2rfkNe-00B8mA-6S <= frog@example.com U=damian P=local S=665 T="Example send by cli" from <frog@example.com> for contact@google.com
I want block by U=damian
I have custom outgoing mail scanner for DirectAdmin server and I want integrated then with cPanel but I must have the above futhers.
How to achieve the same result in cPanel?
-
Hey there! Do you have the WHM >> Tweak Settings option of "Restrict outgoing SMTP to root, exim, and mailman (FKA SMTP Tweak)" enabled on the machine? If so, that only allows root, Exim, and mailman to connect to the mailserver, which keeps unauthenticated users from being able to send messages server-wide.
0 -
OK, but the solution disable basic user mail functionality from scripts, cron, php and other.
90% user send mail via php/scripts/cron without smtp full auth it is normall for example on basic wordpress installation.
I want disable only for specific user which has infections in web-page files.0 -
I don't have a good way to do that on my end. It's likely possible through custom Exim filters, but you'd need to do some testing with that in order to come up with a good solution.
0
Please sign in to leave a comment.
Comments
3 comments