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.

Mail relay?

Discussion in 'E-mail Discussions' started by JamesCTotalWeb, Nov 24, 2014.

  1. JamesCTotalWeb

    JamesCTotalWeb Well-Known Member

    Joined:
    Mar 20, 2005
    Messages:
    64
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Ok here is the issue,

    We have a client that we host their web site and handle the DNS, they have an exchange server setup with another company, and the MX records of course are handled by our DNS servers. When email is sent to or from their exchange server it relays through our hosting server which causes 100's of "Mail delivery failed" messages to fill up the queue. Some even manage to get delivered then we get mail relay alerts from CSF and LFD.

    Here is a copy of the mail header and email

    Code:
    1Xt08X-000UH6-0r-H
    mailnull 47 12
    <>
    1416860489 0
    -ident mailnull
    -received_protocol local
    -body_linecount 94
    -max_received_linelength 134
    -allow_unqualified_recipient
    -allow_unqualified_sender
    -frozen 1416860489
    -localerror
    XX
    1
    username@yahoo.com
    
    155P Received: from mailnull by srv02.net with local (Exim 4.84)
    id 1Xt08X-000UH6-0r
    for username@yahoo.com; Mon, 24 Nov 2014 14:21:29 -0600
    043 X-Failed-Recipients: username@domain.com.hk
    029 Auto-Submitted: auto-replied
    064F From: Mail Delivery System <Mailer-Daemon@domain.net>
    029T To: username@yahoo.com
    059 Subject: Mail delivery failed: returning message to sender
    053I Message-Id: <E1Xt08X-000UH6-0r@domain.net>
    038 Date: Mon, 24 Nov 2014 14:21:29 -0600
    
    Data spool file
    
    1Xt08X-000UH6-0r-D
    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:
    
    username@domain.com.hk
    SMTP error from remote mail server after end of data:
    host smartmx.domain2.com [176.9.xxx.xxx]: 554 5.7.1 Mail appears to be unsolicited -- send error reports to postmaster@domain2.com
    
    ------ This is a copy of the message, including all the headers. ------
    
    Return-path: <username@yahoo.com>
    Received: from [194.44.xx.xxx] (port=54060 helo=theirdomain.org)
    by srv02..net with esmtpa (Exim 4.84)
    (envelope-from <username@yahoo.com>)
    id 1Xt06u-000Txl-Ii
    for username@domain.com.hk; Mon, 24 Nov 2014 14:19:48 -0600
    Message-ID: <E92B00114165B7887AA2C98BC6985EBE@otheirdoamain.org>
    From: "user Name" <username@yahoo.com>
    To: "User Name" <username@domain.com.hk>
    Subject: =?ISO-8859-1?Q?FW=3Avdiana?=
    Date: Sun, 24 Nov 2014 09:19:47 +0000
    MIME-Version: 1.0
    Content-Type: multipart/alternative;
    boundary="----=_NextPart_000_5184_478D586B.23B9A1D5"
    X-Priority: 3
    X-MSMail-Priority: Normal
    Importance: Normal
    X-Mailer: Microsoft Windows Live Mail 16.4.3522.110
    X-MIMEOLE: Produced By Microsoft MimeOLE V16.4.3522.110
    X--MailScanner-Information: Please contact the ISP for more information
    X--MailScanner-ID: 1Xt06u-000Txl-Ii
    X--MailScanner: Not scanned: please contact your Internet E-Mail Service Provider for details
    X--MailScanner-SpamCheck:
    X--MailScanner-From: username@yahoo.com
    X-Spam-Status: No
    
    This is a multi-part message in MIME format.
    
    ------=_NextPart_000_5184_478D586B.23B9A1D5
    Content-Type: text/plain; charset=ISO-8859-1
    Content-Transfer-Encoding: quoted-printable
    
    http : // www.domain .com/zctfhkvr/hpzvrhzuuamewqoqzkwzuxlqxu.saaypweugojsc=
    dtlxnkqkttghefhnznkyxpu
    Ok I have tried everything I can to stop this on our server through Exim but nothing stops the emails can anyone shed some lite on this?
     
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,146
    Likes Received:
    34
    Trophy Points:
    48
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello,

    Have you correctly setup " Remote Mail Exchanger " for that domain ? Please check it at WHM > DNS Functions > Edit DNS Zone area, select the domain and setup it correctly
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    Yes, please ensure you select "Remote Mail Exchanger" if you don't want the email handled on the cPanel server. You can find this under "Email Routing" in the zone when using the "Edit DNS Zone" option in WHM.

    Thank you.
     
Loading...

Share This Page