LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-22-2005, 05:57 PM   #1
flybynight446
LQ Newbie
 
Registered: Oct 2005
Posts: 17

Rep: Reputation: 0
sendmail outgoing mail treated as spam


I've got problems on outoing mail via sendmail. Some ISP's smtp servers (not all), dump any outgoing mail I send into the 'junk' or 'spam' folder of the recipient, so they seem to think that I am sending spam.

I have configured (with eg. example.com as my domain) :
- 'A' DNS domain records, so my domain can be recognised via dig/nslookup looking up my hostname example.com, www.example.com or just exmaple.com
- 'A' record for my mail server server.example.com so it can be referenced from mx record immediately below
- 'MX' (mail) record for server.example.com immediately above, so that mail servers can lookup example.com and find a valid mail server.
- reverse dns for server.example.com so mail servers can lookup ip address eg 1.2.3.4 and find out it resolves to server.example.com (my mail server).

I have set up sendmail masquerading so any mail appears to come from eg. (anyuser)@example.com.

Some ISPs deliver successfully to the recipient.. some treat it as spam.

Is there anything else that needs to be configured so that ISP's mail servers recognise emails as non-spam messages ?

I have looked up my domain on dnsstuff.com, and it reports a valid domain, with valid mx record, with valid reverse dns lookup, and my ip address is not on a list of recognised 'spam' ip addresses. So in theory, all should be ok (?)

There's obviously something I've missed.. any ideas ?

(Also just added an spf TXT record in, with no luck)

Many thanks,
Jonathan.

Extra Info and Diagnostis (23/11):
This is is an example of a message which ends up in the junk folder, with example.com being my domain with IP 1.2.3.4, someprovider.com/5.6.7.8 being the domain of the recipients's provider, and 5.5.5.5 being the adsl provider connection through which the mail is being sent.

You can see that I'm using SMTP AUTH over SSL (by the crypto stuff) for example.com to verify that the sender has an account and is allowed to send outgoing mail (ie to prevent relaying). I doubt this is the cause though.. the SMTP handshaking at the protocol level looks fine. Sendmail reports:

Nov 22 22:56:44 server sendmail[26031]: jAN6ubVI025216: to=<recipient@someprovidercom>, ctladdr=<jon@example.com> (1001/100), delay=00:00:03, xdelay=00:00:02, mailer=esmtp, pri=121270, relay=mail.someprovider.com [5.6.7.8], dsn=2.0.0, stat=Sent (ok dirdel)

Now here's the junked message as received by the recipient

From Jonathan Tue Nov 22 22:59:48 2005
X-Apparently-To: recipient@someprovider.com via 5.6.7.8; Wed, 23 Nov 2005 06:59:49 +0000
X-SomeProviderFilteredBulk: 1.2.3.4
X-Originating-IP: [1.2.3.4]
Return-Path: <jon@example.com>
Authentication-Results: mail.someprovider.com from=example.com; domainkeys=neutral (no sig)
Received: from 1.2.3.4 (EHLO server.example.com) (1.2.3.4) by mail.someprovider.com with SMTP; Wed, 23 Nov 2005 06:59:49 +0000
Received: from MYLAPTAP(some-dynamic-ip.a.provider.fr [5.5.5.5]) (authenticated bits=0) by server.example.com (8.13.3/8.13.3/SuSE Linux 0.7) with ESMTP id jAN6ubVI025216 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for <recipient@someprovider.com>; Tue, 22 Nov 2005 22:56:41 -0800
Message-ID: <000a01c5effb$8195e000$6501a8c0@LAPTOP>
Reply-to: "Jonathan" <jon@example.com>
From: "Jonathan " jon@example.com
To: recipient@someprovider.com
Subject: testing test... at 08:00
Date: Wed, 23 Nov 2005 07:59:48 +0100
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_NextPart_000_0007_01C5F003.E004B460"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
Content-Length: 758
test


Last edited by flybynight446; 11-23-2005 at 06:24 AM.
 
Old 10-20-2007, 11:44 AM   #2
FreakboY
Member
 
Registered: Jun 2002
Location: TX, USA
Distribution: Slackware
Posts: 385

Rep: Reputation: 32
Possible Solution:






Reverse Lookup

DNS PTR Record

Required so E-Mail
is not treated as spam


There is a constant battle underway to stop unwanted mass e-mail (spam) and e-mail that contains viruses. If your e-mail is treated as spam, it may be caught in a spam filter and never get to the recipient. It is therefore important to set up your SMTP server so that e-mail sent has the greatest possibility of not being treated as spam.

Spam filters have become much more aggressive in recent years and more e-mail is treated as spam than ever before. One potential spam test is to verify that the sending SMTP server has a valid reverse pointer record. .

The reverse DNS lookup associates the external IP address to the Fully Qualified Domain Name. Setting up the PTR record must be done by the Internet Service Provider (ISP) from who you purchased the external IP Address. For RDP's IRM/SMTP test server the address 65.38.150.7 has a DNS PTR record to the FQDN of IRM.Resortdata.com. Warning: When e-mail is sent from the SMTP server it may be treated by spam if there is not a Reverse lookup record. See "Testing Reverse Lookup" below.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mailserver- my outgoing mail is spam ? kitek Linux - Newbie 5 04-28-2009 06:53 AM
why is my outgoing mail considered spam to others kitek Linux - Networking 4 04-17-2005 05:31 PM
Exim mail monitor for discovering outgoing spam/viruses TheSpork Linux - Software 0 11-30-2004 03:14 AM
How to separate Incoming Mail and Outgoing Mail on SENDMAIL LiloAma Linux - Networking 1 03-22-2004 02:24 AM
sendmail outgoing mail karunesh Linux - General 0 11-17-2003 02:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration