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.

How to send mails from domain.com instead of host.domain.com

Discussion in 'E-mail Discussions' started by Asmatullah Kohistani, May 5, 2016.

  1. Asmatullah Kohistani

    Joined:
    May 5, 2016
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Sweden
    cPanel Access Level:
    Root Administrator
    I have a WHM server which I have hosted a domain example.com.

    My host name is host.example.com I am using Google Apps mail service and have a DMARC policy where mails not sent from example.com should be rejected.

    Now I see under exim queue manager there a lot of frozen messages.

    My question is how to configure exim to send all notifications from example.com not host.example.com

    Here is delivery report in exim queue manager:

    Code:
    Content-type: message/delivery-status
    
    Reporting-MTA: dns; host.example.com
    
    Action: failed
    Final-Recipient: rfc822;
    Status: 5.0.0
    Remote-MTA: dns; gmail-smtp-in.l.google.com
    Diagnostic-Code: smtp; 550-5.7.1 Unauthenticated email from example.com is not accepted due to
    550-5.7.1 domain's DMARC policy. Please contact administrator of example.com
    550-5.7.1 domain if this was a legitimate mail. Please visit
    550-5.7.1  Control unauthenticated mail from your domain - Gmail Help to learn about DMARC
    550 5.7.1 initiative. m8si5571221wma.116 - gsmtp
    
    
     
    #1 Asmatullah Kohistani, May 5, 2016
    Last edited by a moderator: May 5, 2016
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    How are these messages sent? Could you post the header of one of the messages that's sent out, ensuring to remove any real domain names or IP addresses?

    Thank you.
     
  3. Asmatullah Kohistani

    Joined:
    May 5, 2016
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Sweden
    cPanel Access Level:
    Root Administrator
    Thank you for the post, Actually these are the notifications sent by WHM from roo@host.domain.com to my email address.

    Here is header of the latest message from exim queue manager

    Code:
    Date:   
    Wed, 11 May 2016 16:23:44 +0200
    euom:   
    Mail Delivery System <Mailer-Daemon@eu.domain.com>
    To:   
    root@eu.domain.com
    Subject:   
    Mail delivery failed: returning message to sender
    Auto-Submitted:   
    auto-replied
    Content-Type:   
    multipart/report; report-type=delivery-status; boundary=1462976624-eximdsn-125954060
    Message-Id:   
    <E1b0V3A-0007jy-9V@eu.domain.com>
    MIME-Version:   
    1.0
    Received:   
    euom mailnull by eu.domain.com with local (Exim 4.87)
    id 1b0V3A-0007jy-9V
    for root@eu.domain.com; Wed, 11 May 2016 16:23:44 +0200
    X-Failed-Recipients:   
    email@gmail.com
     
    #3 Asmatullah Kohistani, May 11, 2016
    Last edited: May 11, 2016
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

Share This Page