Exim configuration for no-reply

Operating System & Version
CloudLinux 7
cPanel & WHM Version
v96.0.11

mlopez

Well-Known Member
Dec 17, 2020
75
13
8
Maldonado - Uruguay
cPanel Access Level
Root Administrator
Twitter
Hello,

I've added the following router in the Exim configuration (WHM - Exim Configuration Manager - Advanced Editor):

Section: ROUTERSTART
Code:
# Router to disable no-reply addresses reception
noreply:
  driver = redirect
  local_parts = no-reply
  allow_fail
  data = :fail: Sending only address
This should disable e-mail reception of 'no-reply' accounts for all domains hosted on the server, meaning all messages received by [email protected] account should be discarded with an error message. This no-reply accounts then could be used for sending only.

no-reply local part accounts hosted externally should not be affected, so we should be able to receive e-mails from them.

But now a client is claiming 'lost messages' sent from a [email protected] external account (3rd party hosted) and when I search the logs I find this:

Code:
2021-06-14 16:43:11 H=(UYITAEXCH01.xxx.com) [x.x.x.130]:9172 X=TLS1.2:ECDHE-RSA-AES256-SHA384:256 CV=no F=<[email protected]> rejected RCPT <[email protected]>: Sender verify failed

2021-06-14 16:47:34 H=(UYITAEXCH01.xxx.com) [x.x.x.130]:9529 sender verify fail for <[email protected]>: Sending only address
Is there something wrong with my Exim config snippet?

Thank you in advance
 
Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
14,241
2,217
363
cPanel Access Level
Root Administrator
Hey there! I've been looking at this for a bit now and doing some research, and I'm not seeing anything obviously wrong on my end. If you have a second server, you could create an account and then create an email address called "no-reply" to see if you can reproduce the issue on demand.

This level of customization to Exim isn't something I'm intimately familiar with, so I can't say for sure how that is supposed to behave when it's working, since we don't do much tweaking on our end with that here at cPanel.
 
  • Like
Reactions: mlopez

mlopez

Well-Known Member
Dec 17, 2020
75
13
8
Maldonado - Uruguay
cPanel Access Level
Root Administrator
Twitter
Hey there! I've been looking at this for a bit now and doing some research, and I'm not seeing anything obviously wrong on my end. If you have a second server, you could create an account and then create an email address called "no-reply" to see if you can reproduce the issue on demand.
Hey cPRex,

I did the test you suggested with a second server and I could determine... This router config is crap!

I really appreciate your help!!