The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Detect email rejections

Discussion in 'E-mail Discussions' started by PatrickVeenstra, Dec 11, 2013.

  1. PatrickVeenstra

    PatrickVeenstra Well-Known Member

    Joined:
    Feb 12, 2012
    Messages:
    75
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Barcelona
    cPanel Access Level:
    Root Administrator
    I've disabled the default email account. Now my question is, how can I receive notifications of undelivered mails? They are send from Mailer-Daemon@myserver.domain.com to the default mailbox (that I've disabled).

    I guess I should be able to do something editing /etc/vfilters/ but don't really know what :(
     
    #1 PatrickVeenstra, Dec 11, 2013
    Last edited: Dec 11, 2013
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    669
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Email messages are bounced to the actual sender. Thus, if you sent an email from "123@domain", and it's not deliverable, then it's bounced back to "123@domain".

    Thank you.
     
  3. PatrickVeenstra

    PatrickVeenstra Well-Known Member

    Joined:
    Feb 12, 2012
    Messages:
    75
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Barcelona
    cPanel Access Level:
    Root Administrator
    So when using the PHP mail() function, it will bounce to the "From: " value in the header or additional_header?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    669
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    It should bounce to the email address it was sent from. Thus, if it was sent out from "cpanel-username@domain" using PHP, then it would be bounced to that address. You may want to create an email account for the account username itself if you prefer to receive those emails instead of rejecting them.

    Thank you.
     
  5. PatrickVeenstra

    PatrickVeenstra Well-Known Member

    Joined:
    Feb 12, 2012
    Messages:
    75
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Barcelona
    cPanel Access Level:
    Root Administrator
    Emails are being send to accountname@servername.serverdomain.com
    I only see options to create emails under an accountname, not under a servername.serverdomain. Where can I create an email address under servername.serverdomain?
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    669
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page