[vox-tech] configuring sendmail with dynamic ip dsl
Kevin Hooke
vox-tech@lists.lugod.org
Sat, 3 Jan 2004 13:42:55 -0800 (PST)
Hi - I have been trying to configure sendmail so I can
run it on my local server at home, which is connected
to the net via a DSL connection with a dynamic IP
address.
I host my domains and websites from this server, and
use a script with zoneedit.com to keep my domain name
dns entries mapped to my dynamic ip (which rarely
seems to change anyway) and this all works fine.
I also have sendmail configured ok so I can send and
receive email ok.
What is driving me nuts is the dynamic ip blacklists
that result in the majority of my emails being bounced
from mailservers that consider my dynamic IP address
to be the originator of spam.
I think this is a pretty broad (and wrong) assumption,
but anyway, heres my problem try to get round this:
I've read on abuse.net that I can configure sendmail
to relay my email via my ISP's smtp server, so it
appears to come from them, rather than my ip address.
I am using Redhat 8.0.
Heres what I added to /etc/mail/sendmail.mc:
define(`SMART_HOST',`mail.yourisp.net')dnl
MASQUERADE_AS(kevinhooke.com)dnl
FEATURE(`allmasquerade')dnl
FEATURE(`masquerade_envelope')dnl
replacing mail.yourisp.net with sbcglobal/yahoo's smtp
server.
I then updated this with:
m4 sendmail.mc > sendmail.cf
then restarted my sendmail server with:
/etc/init.d/sendmail restart
Server starts ok, everything looks good.
When I send mail, I can see in /var/log/maillog that
the email was relayed via mx1.mail.yahoo.com (I
think).
The email that is actually sent though still has info
about my own server and my dynamic IP address, which
means the email is still getting blacklisted/blocked
as spam.
Heres the headers:
X-Apparently-To: kevin_hooke@yahoo.com via
66.218.93.88; Sat, 03 Jan 2004 13:32:42 -0800
X-YahooFilteredBulk: 64.165.71.234
Return-Path: <kevin@kevinhooke.com>
Received: from 64.165.71.234 (EHLO
linuxsvr.localdomain) (64.165.71.234) by
mta207.mail.scd.yahoo.com with SMTP; Sat, 03 Jan 2004
13:32:42 -0800
Received: from thebeast ([192.168.0.3]) by
linuxsvr.localdomain (8.12.8/8.12.8) with ESMTP id
i03LWf11031162 for <kevin_hooke@yahoo.com>; Sat, 3 Jan
2004 13:32:42 -0800
Message-ID: <002c01c3d241$26b3f160$0300a8c0@thebeast>
From: "Kevin Hooke" <kevin@kevinhooke.com> Add to
Address Book
To: "Kev" <kevin_hooke@yahoo.com>
Subject: test from pc
Date: Sat, 3 Jan 2004 13:32:55 -0800
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE
V6.00.2800.1165
Content-Length: 1
This was an email sent from Outlook on my Windows XP
machine, via my sendmail mailserver for my
kevinhooke.com domain on my linux box, to a test email
address kevin_hooke@yahoo.com
I was expecting from what I read on the abuse.net site
that relaying via my isp's smtp server would solve the
dynamic ip blacklisting problems, but apparently it
hasn't or I am misunderstanding something.
Any ideas? I only know a little linux (enough to get
me in trouble apparently), so please be explicit with
any instructions! :-)
If anyone knows of any website/how-tos that may help,
that would be appreciated too!
Thanks, Kevin Hooke
__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/