[ale] Bellsouth Sendmail Fix
Geoffrey
esoteric at 3times25.net
Wed Jul 2 06:55:20 EDT 2003
So where have you placed your mini-howto? Submitted it to ldp yet? :)
Ryan Neily wrote:
> 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...
>
--
Until later: Geoffrey esoteric at 3times25.net
The latest, most widespread virus? Microsoft end user agreement.
Think about it...
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale
More information about the Ale
mailing list