[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Bellsouth Sendmail Fix
- To: ale@ale.org
- Subject: [ale] Bellsouth Sendmail Fix
- From: Ryan Neily <ryan@neily.net>
- Date: Tue, 1 Jul 2003 23:26:49 -0400 (EDT)
- List-Archive: <http://www.ale.org/pipermail/ale/>
- List-Help: <mailto:ale-request@ale.org?subject=help>
- List-Id: Atlanta Linux Enthusiasts <ale.ale.org>
- List-Post: <mailto:ale@ale.org>
- List-Subscribe: <http://www.ale.org/mailman/listinfo/ale>,<mailto:ale-request@ale.org?subject=subscribe>
- List-Unsubscribe: <http://www.ale.org/mailman/listinfo/ale>,<mailto:ale-request@ale.org?subject=unsubscribe>
- Reply-To: ale@ale.org
- Sender: ale-admin@ale.org
If this gets posted, I've fixed the Bellsouth no-relay problem that people
has been complaining about. I used some of the tips of James CE Johnson
which is using Postfix. My solution is using Sendmail, but works much the
same...
I added a redirect rule to my IPtables firewall script that redirects any
traffic coming from port 26 on the localhost interface to the bellsouth
SMTP server on port 25. I used this iptables command:
$IPTABLES -t nat -A OUTPUT -p tcp -d 127.0.0.1 --dport 26 -j DNAT
--to-destination 205.152.59.16:25
and then added the following directives to my sendmail.mc, m4'd it to
sendmail.cf and it seems to be working:
# This makes sendmail send everything on port 26
define(`SMTP_MAILER_ARGS', `TCP $h 26')
# This sets up the SMART_HOST to be the "localhost" which is Bellsouth
# Keep in mind there are a few other commands to setup SMART_HOST
define(`SMART_HOST',`localhost')dnl
The only reason why i think this works is because the Bellsouth SMTP
server sees the mail coming from a loopback addres, and thinks it's fine
instead of coming from an IP address on the Bellsouth dialup namespace.
This is kinda strange, and I am not sure why it works...
--
Ryan Neily
ryan@neily.net
Random Quote:
"Aerodynamics are for people that cant build good engines... - Enzo Ferrari"
_______________________________________________
Ale mailing list
Ale@ale.org
http://www.ale.org/mailman/listinfo/ale