Mail issues

Discussion in 'Installation/Configuration' started by spikes, Oct 15, 2009.

  1. spikes

    spikes Member

    I have setup with the guide for debian lenny. Everything is working fine accept for my mail is going to spam for yahoo and hotmail. I have barely used this domain with no users on my site yet, just testing. I have sent 2 emails one to yahoo and one to hotmail and I include the headers below. So if you are able to have a quick look to see if I can do a better setup somewhere. Thanks in advance.


    Yahoo

    From [email protected] Thu Oct 15 07:20:53 2009
    X-Apparently-To: [email protected] via 124.108.96.109; Thu, 15 Oct 2009 00:21:14 -0700
    Return-Path: <[email protected]>
    X-Originating-IP: [192.168.100.1]
    Authentication-Results: mta101.tnz.mail.aue.yahoo.com from=mydomain.com; domainkeys=neutral (no sig); from=mydomain.com; dkim=neutral (no sig)
    Received: from 192.168.100.1 (EHLO server1.mydomain.com) (192.168.100.1)
    by mta101.tnz.mail.aue.yahoo.com with SMTP; Thu, 15 Oct 2009 00:21:14 -0700
    Received: from localhost (localhost.localdomain [127.0.0.1])
    by server1.mydomain.com (Postfix) with ESMTP id C9853C473
    for <[email protected]>; Thu, 15 Oct 2009 20:21:12 +1300 (NZDT)
    X-Virus-Scanned: Debian amavisd-new at server1.mydomain.com
    X-Amavis-Alert: BAD HEADER SECTION, Improper use of control character (char 0D
    hex): Date: Thu, 15 Oct 2009 07:20:53 +0000\r
    Received: from server1.mydomain.com ([127.0.0.1])
    by localhost (server1.mydomain.com [127.0.0.1]) (amavisd-new, port 10024)
    with ESMTP id WeX14bhwEbIq for <[email protected]>;
    Thu, 15 Oct 2009 20:20:58 +1300 (NZDT)
    Received: by server1.mydomain.com (Postfix, from userid 33)
    id E40C2C4BD; Thu, 15 Oct 2009 20:20:53 +1300 (NZDT)
    To: [email protected]
    Subject: =?UTF-8?B?bG91aXNlIGNvbmZpcm1lZCB5b3UgYXMgYSBmcmllbmQgb24gUGFnZWJyYWtlci4=?=
    Date: Thu, 15 Oct 2009 07:20:53 +0000
    From: [email protected]
    Message-ID: <[email protected]>
    X-Priority: 3
    X-Mailer: PHPMailer (phpmailer.sourceforge.net) [version 2.0.3]
    MIME-Version: 1.0
    Content-Type: multipart/alternative;
    boundary="b1_9282fdfc47b33ee4735bc8eaf7823bdd"
    Content-Length: 777



    Hotmail

    X-Message-Delivery: Vj0xLjE7dXM9MDtsPTA7YT0wO0Q9MTtTQ0w9Mw==
    X-Message-Status: n:0
    X-SID-PRA: =?UTF-8?B?TmljbyBTY2hvZW1hbg==?= <[email protected]>
    X-Message-Info: JGTYoYF78jFn+HtGoG7+7IRORgiJi38ovdR72Tqd1ID8hAk2M/C+ST8hMnHAc9UsqhcsqybtwJwAJTQHyGMTbA==
    Received: from server1.mydomain.com ([192.168.100.1]) by COL0-MC2-F1.Col0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959);
    Thu, 15 Oct 2009 11:02:42 -0700
    Received: from localhost (localhost.localdomain [127.0.0.1])
    by server1.mydomain.com (Postfix) with ESMTP id ADB3FC473
    for <[email protected]>; Fri, 16 Oct 2009 07:02:41 +1300 (NZDT)
    X-Virus-Scanned: Debian amavisd-new at server1.mydomain.com
    X-Amavis-Alert: BAD HEADER SECTION, Improper use of control character (char 0D
    hex): Date: Thu, 15 Oct 2009 18:02:36 +0000\r
    Received: from server1.mydomain.com ([127.0.0.1])
    by localhost (server1.mydomain.com [127.0.0.1]) (amavisd-new, port 10024)
    with ESMTP id EBZJAtRHutdd for <[email protected]>;
    Fri, 16 Oct 2009 07:02:38 +1300 (NZDT)
    Received: by server1.mydomain.com (Postfix, from userid 33)
    id F10F4C4BD; Fri, 16 Oct 2009 07:02:36 +1300 (NZDT)
    To: [email protected]
    Subject: =?UTF-8?B?TmljbyBTY2hvZW1hbiBzZW50IHlvdSBhIG1lc3NhZ2Ugb24gUGFnZWJyYWtlcg==?=
    Date: Thu, 15 Oct 2009 18:02:36 +0000
    From: =?UTF-8?B?TmljbyBTY2hvZW1hbg==?= <[email protected]>
    Message-ID: <[email protected]>
    X-Priority: 3
    X-Mailer: PHPMailer (phpmailer.sourceforge.net) [version 2.0.3]
    MIME-Version: 1.0
    Content-Type: multipart/alternative;
    boundary="b1_ee797a16d86979e4fae329c6969b4369"
    Return-Path: [email protected]
    X-OriginalArrivalTime: 15 Oct 2009 18:02:42.0814 (UTC) FILETIME=[B11041E0:01CA4DC1]

    --b1_ee797a16d86979e4fae329c6969b4369
    Content-Type: text/plain; charset = "utf-8"
    Content-Transfer-Encoding: 8bit

    Hello Jeffrey Archer,

    Joe Bloggs sent you a message.

    --------------------

    Subject: Car spares

    Hi Jeff,

    How much for all those .........
    Thanks

    Joe

    --------------------

    To reply to this message, follow the link below:
    <a
    href="http://mydomain.com/mail/view/id_32/">http://mydomain.com/mail/view/id_32/</a>

    Kind regards,

    The mydomain.com Team


    --b1_ee797a16d86979e4fae329c6969b4369
    Content-Type: text/html; charset = "utf-8"
    Content-Transfer-Encoding: 8bit

    Hello Jeffrey Archer,
    <br />
    <br />
    Joe Bloggs sent you a message.<br /><br />--------------------<br />Subject: Car spares<br /><br />Hi Jeff,
    <br />
    <br />How much for all those ........
    <br />
    <br />Thanks
    <br />Joe<br />--------------------<br /><br />To reply to this message, follow the link below:<br /><a href="http://mydomain.com/mail/view/id_32/">http://mydomain.com/mail/view/id_32/</a> <br />
    <br />
    Kind regards,
    <br />The mydomain.com Team

    --b1_ee797a16d86979e4fae329c6969b4369--

    </
     
  2. damir

    damir New Member

    Setup a PTR record and SPF record. This would probably fix the SPAM issue, use MX record all the way as hostname and MX record.
     
  3. spikes

    spikes Member

    pointer record looks like this 192-196-1-1.mydomain.com [192-196-1-1] - is this correct? I got this info from doing ping -a ipaddress from windows cmd line.

    Damir, Is it possible to give me example of "use MX record all the way as hostname and MX record" please?
    Thanks for helping.


    I am now trying to setup

    http://howtoforge.com/quick-and-easy-setup-for-domainkeys-using-ubuntu-postfix-and-dkim-filter

    I get error:

    /etc/default/dkim-filter: line 20: Domain: command not found
    /etc/default/dkim-filter: line 21: KeyFile: command not found
    /etc/default/dkim-filter: line 22: Selector: command not found
    /etc/default/dkim-filter: line 25: AutoRestart: command not found
    /etc/default/dkim-filter: line 26: Background: command not found
    /etc/default/dkim-filter: line 27: Canonicalization: command not found
    /etc/default/dkim-filter: line 28: DNSTimeout: command not found
    /etc/default/dkim-filter: line 29: Mode: command not found
    /etc/default/dkim-filter: line 30: SignatureAlgorithm: command not found
    /etc/default/dkim-filter: line 31: SubDomains: command not found
    /etc/default/dkim-filter: line 32: UseSSPDeny: command not found
    /etc/default/dkim-filter: line 33: X-Header: command not found
    Starting DKIM Filter: dkim-filter.
     
    Last edited: Oct 16, 2009
  4. spikes

    spikes Member

    spf record is working now, it was missing the . in the dns config. If I do a dig for the txt records I do see the spf record but not the domainkey record. Am I supose to see the txt record for the domainkey as well? I also added a . at the end of the domainkey record.

    TXT mail._domainkey.mydomain.com k=rsa; t=y; p=MIGfM(shortened)DAQAB

    If I change the dns to TXT mydomain.com. k=rsa; t=y; p=MIGfM(shortened)DAQAB then I can dig the txt record, but this seems incorrect and if I test with the tool it syas no _domainkey found for my domain

    I still have problems when starting dkim-filter. Is this due to dns issue?


    Please ignore - (I have added spf record in dns. I waited 24 hours for dns. I use the test tool to check for spf but it says none for the domain. I am using ispconfig3 and added records as per below. Does these look correct? and why are they not working in dns?)

    TXT mydomain.com v=spf1 ip4:192.168.1.1 -all
     
    Last edited: Oct 17, 2009
  5. spikes

    spikes Member

    I am still struggling. Any help will be appreciated thanks. I am unable to start the dkim-filter,

    server1:/var/www# /etc/init.d/dkim-filter start
    /etc/default/dkim-filter: line 13: Syslog: command not found
    /etc/default/dkim-filter: line 20: Domain: command not found
    /etc/default/dkim-filter: line 21: KeyFile: command not found
    /etc/default/dkim-filter: line 22: Selector: command not found
    /etc/default/dkim-filter: line 25: AutoRestart: command not found
    /etc/default/dkim-filter: line 26: Background: command not found
    /etc/default/dkim-filter: line 27: Canonicalization: command not found
    /etc/default/dkim-filter: line 28: DNSTimeout: command not found
    /etc/default/dkim-filter: line 29: Mode: command not found
    /etc/default/dkim-filter: line 30: SignatureAlgorithm: command not found
    /etc/default/dkim-filter: line 31: SubDomains: command not found
    /etc/default/dkim-filter: line 32: UseSSPDeny: command not found
    /etc/default/dkim-filter: line 33: X-Header: command not found


    server1:/var/dkim-filter# netstat -tap | grep dkim-filter
    tcp 0 0 server1.mydomain:38418 dns1.hostingprovider:domain ESTABLISHED 3259/dkim-filter
     
    Last edited: Oct 17, 2009
  6. ciprianflorea

    ciprianflorea New Member

    Have you solved this problem? im having the same too
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

  8. ciprianflorea

    ciprianflorea New Member

    Thanks Till but i think you realise that ive tryied all the resources on the net :) the result of that howto is exactly my other post regarding TXT records :) everything works fine until key testing :)
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    Then do not post to different threads at a time which are abozt completely different configurations.

    The faqforge article is fine, our problem is the dns server and not the dkim setup.
     

Share This Page