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 Suspend Sending Outgoing Email

Discussion in 'E-mail Discussion' started by nunop, Apr 29, 2019.

  1. nunop

    nunop Member

    Joined:
    Jan 27, 2012
    Messages:
    9
    Likes Received:
    1
    Trophy Points:
    53
    cPanel Access Level:
    Root Administrator
    Hello,

    I'm looking into suspending "Sending Outgoing Email" of a few email addresses, to ensure whoever sets up those email addresses in Outlook/Thunderbird will use AWS SES as the SMTP server.

    However, I'd just like to know what exactly happens in the background when I select "Suspend".

    What configurations are changed?
    Are any DNS entries affected?

    Thank you.
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,299
    Likes Received:
    2,155
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @nunop,

    1. Here's a quote from our Email Accounts document explaining how this feature works:

    Additionally, here's the link to the corresponding UAPI function if you'd like to do this via a script or via the command line:

    UAPI Functions - Email::suspend_outgoing - Developer Documentation - cPanel Documentation

    2. On the backend, a custom Exim ACL is configured to block outgoing emails if the email account is suspended (it checks the /etc/outgoing_mail_suspended_users file). You can view the full ACL with the following command:

    Code:
    # cat /usr/local/cpanel/etc/exim/acls/ACL_RECIPIENT_BLOCK/default_recipient
    Here's the specific part of the above ACL that blocks outgoing emails:

    Code:
      # implemented for "suspend outgoing email" feature for domains and individual webmail/pop accounts
      deny
        domains = ! +local_domains
        condition = ${perl{check_outgoing_mail_suspended}}
        message = ${perl{get_outgoing_mail_suspended_message}}
        log_message = ${perl{get_outgoing_mail_suspended_message}}
    Let me know if this helps.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    nunop likes this.
  3. nunop

    nunop Member

    Joined:
    Jan 27, 2012
    Messages:
    9
    Likes Received:
    1
    Trophy Points:
    53
    cPanel Access Level:
    Root Administrator
    Very good reply. Thank you very much!
     
    cPanelMichael likes this.
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