Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Issues with Secondary SMTP (sendmail) Server

Posted on 2006-06-15
3
Medium Priority
?
285 Views
Last Modified: 2013-12-16
I'm having some trouble with our web-generated emails (like newsletters, contact forms, etc.) are not valid due to some issues with sendmail, so they are being filtered out my spam filters. Our company's mail is handled by ElectricMail (MX records are set to inbound.electric.net). However, we need to be able to send -valid- messages from our web server (www.thedomain.com) (which runs on Fedora Core 3).

Here are the problems that the spam filters identify in the messages...

- HELO doesn't use FQDN
- Sending IP's PTR record doesn't match HELO
- Sending IP's PTR record is full of numbers (so is probably bogus as far as spam filters see the world)
- Message ID illegal (no FQDN)

Here are the headers of the message.....

Return-Path: <apache@localhost.localdomain>
Received: from localhost.localdomain (customer-reverse-entry.111.222.333.444 [111.222.333.444] (may be forged))
 by receiver-domain.com (4.13.10/4.13.10) with ESMTP id k5CFra3R024823
 for <user@receiver-domain.com>; Mon, 12 Jun 2006 11:53:38 -0400
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
 by localhost.localdomain (4.13.10/4.13.10) with ESMTP id k5D0vpHV000975
 for <user@receiver-domain.com>; Mon, 12 Jun 2006 17:57:51 -0700
Received: (from apache@localhost)
 by localhost.localdomain (4.13.10/4.13.10/Submit) id k5D0vdmM000973;
 Mon, 12 Jun 2006 17:57:39 -0700
Date: Mon, 12 Jun 2006 17:57:39 -0700
Message-Id: <200606130057.k5D0vdmM000973@localhost.localdomain>
To: user@receiver-domain.com
Subject: Message from 1
From: user@somedomain.com
Content-type: text/html

I imagined that many of these problems might be able to be fixed by changing the hostname, and perhaps a few headers in PHP. But basically, when I change the /etc/hosts file on the web server to say...

111.222.333.444     www.thedomain.com

it starts sending any emails that are to something@thedomain.com to itself, instead of using the MX record indicated in thedomain.com (which is inbound.electric.net). This obviously is not very helpful, since nobody connects to the web server (www.thedomain.com) to retrieve their mail. I can fix this problem by taking out that line. However, the first set of problems still exists (which is what I'm looking to fix, primarily).

Some of these problems can be fixed, to a limited extent by changing headers in PHP, but many of these headers refuse to change, probably due to configuration settings. Perhaps reverse DNS is required? I'm not sure (and I'm not sure where to start with that regarding sendmail).

I've taken a look at the sendmail.cf and sendmail.mc files, but don't know where to begin on that issue, or if changing those files is part of the solution. I'm more of a web developer than a sys admin. If someone could give a few suggestions on where to start (or more detail would be -very- welcome :), it would certainly be greatly appreciated.

Thanks very much. I certainly appreciate any help.

- Jonathan


0
Comment
Question by:jbulow
1 Comment
 
LVL 22

Accepted Solution

by:
pjedmond earned 1280 total points
ID: 16918722
- HELO doesn't use FQDN
- Sending IP's PTR record doesn't match HELO
- Sending IP's PTR record is full of numbers (so is probably bogus as far as spam filters see the world)
- Message ID illegal (no FQDN)

Starting at the top:

1. Check etc hosts:

Mine is:
------8X------------
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1       localhost.localdomain   localhost
192.168.1.100   bigserver bigserver.mydomain.com
------8X------------

I suspect that yours only has the localhost line?

That should solve both of the issues relating to the FQDN.

The other 2 relate to the reverse DNS (the name) of your system (as seen by the server you are sending the email to). If you don't have a fixed IP addressregistered as 'bigserver.mydomain.com' using the above example, then you will always have a problem with this. You will need to get your ISP to register this for you.

If you can't do that, then your aim should be to reduce other SPAM features to the absolute minimum in order to reduce the chance of the email being labled as spam.

HTH:)
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month8 days, 19 hours left to enroll

876 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question