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.

SMTP & Spam Tagging Problem

Discussion in 'E-mail Discussions' started by dcabbar2, Oct 24, 2005.

  1. dcabbar2

    dcabbar2 Registered

    Joined:
    Oct 24, 2005
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    I am having a problem with my system when sending e-mails to yahoo accounts, and it has been baffling me for the last couple of days, actually I should say it is driving me crazy...

    As I mentioned, I have a cpanel and have 2 domains/sites with dedicated IP addresses on my system. The base account has domain name: host.mydomain.com with IP address, let's say is x.x.x.x, the first domain first.com is x.x.x.[x+1], the second domain second.com is x.x.x.[x+2]. And, as you know, all e-mails for both domains are sent from host.mydomain.com with source IP as x.x.x.x

    Now, I wrote a php script, and placed it on both sites. It is exactly the same script, with only one difference, from address, reply-to address, etc. are set to admin@first.com for the first domain and admin@second.com for the second domain.

    When I execute this script, it sends an e-mail to a yahoo address. The problem is: the e-mail sent from first.com is sent fine meaning it reaches the recipient Yahoo INBOX, but the one sent from second.com is dropping into Yahoo's Bulk Folder...

    For the second domain, I tried sending e-mail for that domain from another hosting service, and that one got into the INBOX, not Bulk...

    Both first.com and second.com have proper A records and MX records. host.mydomain.com has an A record setup, and mydomain.com has an MX record setup (pointing to some other mail server)...

    Now, this is very confusing because:

    1. If my hosts IP address (x.x.x.x) was blocked, then both admin@first.com and admin@second.com should be blocked, but one of them is reaching its destination, while the second one is tagged as SPAM.

    2. If there was a problem with the way SMTP is configured, again both should not have been dispatched. In fact, EHLO domain (host.mydomain.com) is resolving to source IP (x.x.x.x) and source IP (x.x.x.x) is resolving to the EHLO domain (again host.mydomain.com)... And, two headers are almost same (other than return-path, etc. of course)

    3. If admin@second.com (or the whole domain second.com for that matter) e-mail address(es) was/were blocked, then both mail sent from x.x.x.x and other hosting service should have been blocked. But, as I mentioned, other hosting services e-mail goes thru fine!

    Can someone please shead a light onto this before I lost my sanity ;)

    E-MAIL HEADER AS RECEIVED BY YAHOO: [IT IS ALMOST THE SAME FOR SECOND.COM, just replace FIRST.COM with SECOND.COM]


    X-Apparently-To: yahooaddress@yahoo.com via 68.142.228.52; Mon, 24 Oct 2005 09:54:48 -0700
    X-YahooFilteredBulk: x.x.x.x
    X-Originating-IP: [x.x.x.x]
    Return-Path: <admin@first.com>
    Authentication-Results: mta295.mail.scd.yahoo.com from=first.com; domainkeys=neutral (no sig)
    Received: from x.x.x.x (EHLO host.mydomain.com) (x.x.x.x) by mta295.mail.scd.yahoo.com with SMTP; Mon, 24 Oct 2005 09:54:47 -0700
    Received: from nobody by host.mydomain.com with local (Exim 4.52) id XXXXXXX for yahooaddress@yahoo.com; Mon, 24 Oct 2005 19:54:44 +0300
    To: yahooaddress@yahoo.com
    Subject: TESTING
    MIME-Version: 1.0
    Content-type: text/plain; charset=iso-8859-9
    From: admin@first.com
    Message-Id: <XXXXXXXX@host.mydomain.com>
    Date: Mon, 24 Oct 2005 19:54:44 +0300
    X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
    X-AntiAbuse: Primary Hostname - host.mydomain.com
    X-AntiAbuse: Original Domain - yahoo.com
    X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [47 12]
    X-AntiAbuse: Sender Address Domain - first.com
    X-Source:
    X-Source-Args:
    X-Source-Dir:
    Content-Length: 12


    PHP CODE USED FOR SENDING E-MAIL:

    <?php
    $fromMail = "admin@first.com";

    $to = "yahooaddress@yahoo.com";
    $subject = "TESTING";
    $msg = "TEST MESSAGE";

    $headers = "MIME-Version: 1.0\r\n";
    $headers .= "Return-Path: <$fromMail>\r\n";
    $headers .= "Content-type: text/plain; charset=iso-8859-9\r\n";
    $headers .= "From: $fromMail\r\n";

    print "<h1>TEST: " . mail($to, $subject, $msg, $headers, "-f$fromMail") . "</h1>";
    ?>
     
  2. yurster

    yurster Member

    Joined:
    Jun 13, 2003
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Same problem

    I'm having the exact same problem...and it doesn't matter if the email is sent from a script or from one of the web clients (tried horde and squirrelmail). Works fine on one server and doesn't on another. Anyone have any suggestions?
     
  3. dcabbar

    dcabbar Member

    Joined:
    Oct 18, 2004
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    bump bump bump
     
  4. myusername

    myusername Well-Known Member
    PartnerNOC

    Joined:
    Mar 6, 2003
    Messages:
    691
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    chown -R us.*yourbase*
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    I'd start with asking the yahoo postmaster since they have the logs of why it is getting routed where it is.
     
  5. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Indeed. The problem is with Yahoo and their very odd email practices and only asking them will shed any light (if any at all) on why they have such stupid filtering systems.
     
Loading...

Share This Page