Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

SOLVED Incomplete mail account deletion

Discussion in 'E-mail Discussion' started by tc17, Nov 6, 2018.

  1. tc17

    tc17 Registered

    Joined:
    Nov 30, 2003
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    151
    I created an email account, xxx, for my domain as a temporary measure; when I was finished with this account, I deleted it. My expectation was that mail would revert to its behaviour prior to creating the account, that is, any mail addressed to the account would be delivered to the default account. That is not the case. Instead, any delivery attempt to that (now deleted) address gives an error message back to the sender:
    -------
    This message was created automatically by mail delivery software.

    A message that you sent could not be delivered to one or more of its
    recipients. This is a permanent error. The following address(es) failed:

    xxx
    LMTP error after RCPT TO:<xxx>:
    550 5.1.1 <xxx> User doesn't exist:
    xxx
    -----

    So, I tried adding a forwarder (for xxx) to a different account. The mail DOES get forwarded BUT the error message still gets delivered back to the sender.

    I'm on cpanel 74.0.10

    Is this not a bug and is there a fix/workaround?
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,197
    Likes Received:
    1,936
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @tc17,

    You can use cPanel >> Default Address to configure the default delivery behavior for emails sent to email addresses that do not exist. However, even if that option is configured to discard or reject the emails sent to non-existent addresses, creating a forwarder would ensure the delivery was accepted.

    The information you provided suggests there's a filter in place that's removing the email. Do you have any custom file rules setup in cPanel >> Email Filters or cPanel >> Global Email Filters that could be rejecting the emails? If not, review /var/log/exim_mainlog to see the full log output for one of the affected emails. EX:

    Code:
    exigrep user@domain /var/log/exim_mainlog
    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. tc17

    tc17 Registered

    Joined:
    Nov 30, 2003
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    151
    No filters. I'm on a shared system so examining the logs is a pretty much a no-go.

    So, I wandered through my directories and found a few places where cruft was left behind
    after my deletion. There was stuff at:
    ~/etc/<my domain>/@pwcache/xxx
    ~/mail/<my domain>/xxx

    I blew all this junk away and proper behaviour has been restored

    Thanks for your help
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,197
    Likes Received:
    1,936
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @tc17,

    I'm glad to see you were able to solve the issue. Thank you for sharing the outcome.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice