check_mail_permissions could not determine the sender domain [case 59140]

thowden

Well-Known Member
May 17, 2013
92
17
58
Australia
cPanel Access Level
Root Administrator
Hi

I know this has been around for years, but that is why it appears at the top of a google search " check_mail_permissions could not determine the sender domain ".

So here in 2021, with version 94.08 loaded, this message is still presented. Ok, so it is accurate in the statement but it is missing the important debugging information of what is being tested and failing to trigger the message.

So, if someone can enlighten me on "how to find what is causing the error" I'd appreciate it.

At the moment, I am getting the error when authenticated to the server with an account / username / email / password combination that is correct, and in theory should be accurately identified, but as I cannot 'see' what is being tested, I have no idea what needs to be changed to stop this warning from appearing.

thanks in advance.
 

thowden

Well-Known Member
May 17, 2013
92
17
58
Australia
cPanel Access Level
Root Administrator
Hi All

In typical form, no sooner do I ask a question but an answer arrives via another related thread.

The issue here is that 'white-listing' mail servers for inbound relay connections, means that exim skips the checking so that the system does not process the login as expected.

The fix for me was to remove the originating server from /etc/skipsmtpcheckhosts via the WHM console:

Exim Configuration Manager -> Access Lists -> Trusted IP Addresses (Edit List)

Which also provides a clue in the long description:

IP addresses exempt from all SMTP sender, recipient, spam, and relaying checks

which apparently includes the 'check_mail_permissions' for the purpose of quota records and hence the annoying warning message.

The source of my enlightenment was another old thread in https://www.webhostingtalk.com/showthread.php?t=1128907

Hope this helps someone else.
 
  • Like
Reactions: cPRex