Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Emails sent to recipient's junk or spam


    I'm configuring my mail server, but the email I sent from my server always go to the recipient's spam or junk box.
    Here is my case:
    My domain: example.com
    Mail and DNS server: exm.example.com
    IP addresses of name servers: 1.2.3.4 and 1.2.3.5
    I have checked the email header in the recipient side: dkim, spf and dmarc are all PASSED
    The ISP already pointed my ip addresses to my domain.(rDNS)
    Everything is fine, but the email is still sent to the spam box.
    My server is centos 6.5, I'm using BIND 9.8.2. Here is my zone files:


    in /etc/named.conf :
    zone "example.com" IN{
    type master;
    file "example.com.db";
    };

    zone "3.2.1.in-addr.arpa" IN{
    type master;
    file "example.local";
    };

    ################################
    in /var/named/example.com.db:
    $ORIGIN example.com.
    $TTL 14400
    example.com. 14400 IN SOA ns1.example.com. exm.example.com. (
    2015082112 ;Serial Number
    43200 ;refresh
    7200 ;retry
    2419200 ;expire
    43200 ;minimum
    )
    example.com. IN NS ns1.example.com.
    example.com. IN NS ns2.example.com.
    example.com. IN MX 0 exm.example.com.
    example.com. IN MX 10 exm.example.com.
    www 14400 IN CNAME example.com.
    ftp 14400 IN CNAME example.com.
    webdisk 14400 IN A 1.2.3.4
    whm 14400 IN A 1.2.3.4
    webmail 14400 IN A 1.2.3.4

    mail 14400 IN CNAME example.com.
    cpanel 14400 IN A 1.2.3.4
    cpcalendars 14400 IN A 1.2.3.4
    cpcontacts 14400 IN A 1.2.3.4
    1.2.3.4.com. 14400 IN A 1.2.3.4
    exm 14400 IN A 1.2.3.4
    ns2 14400 IN A 1.2.3.5
    ns1 14400 IN A 1.2.3.4
    _dmarc 14400 IN TXT "v=DMARC1; p=none; sp=none; adkim=r; aspf=r; rua=mailto:abuse@example.com; ruf=mailto:abuse@example.com; rf=afrf; pct=100; fo=1; ri=84600"
    example.com. 14400 IN TXT "v=spf1 +a +mx +ip4:1.2.3.4 ~all"

    ################################

    ################################
    in /var/named/example.local
    $ORIGIN 3.2.1.in-addr.arpa.
    $TTL 14400
    @ IN SOA ns1.example.com. exm.example.com. (
    2001062501 ; serial
    43200 ; refresh
    7200 ; retry
    2419200 ; expire
    43200 ; minimum TTL
    )
    4 IN PTR exm.example.com.
    5 IN PTR exm.example.com.

    ################################

    There are problems here:
    When I check my domain on a dns-checking website, there is a warning in the "Reverse records (PTR)" section, and it says:

    "At least one name server is missing a reverse record which points back to the hostname. The result of this check does not affect on granting the domain name. " And it shows:
    ns1.example.com-->1.2.3.4-->exm.example.com
    ns2.example.com-->1.2.3.5-->exm.example.com
    See the image below.
    1.PNG


    And again in the email header, one thing I wonder:
    There is one place showing that:
    Received: from example.com ([127.0.0.1]:36775)
    by exm.example.com with esmtpa (Exim 4.85)
    Does the ip "127.0.0.1" matter, because I think gmail or others mail service will mark it as a spam email.

    Do I need to change or configure something else.
    Last edited by demons_dragon; 08-26-2015 at 10:01 AM. Reason: insert image

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    14,038
    -->
    You probably need to adjust the spam filter rules associated with the recipient's email account.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •