On Sun, May 25, 2008 at 11:12:39AM -0400, Nick Holland wrote:
> Unfortunately (for gnats), many ISPs block outbound port 25
> traffic to anything other than their mail servers.  Even if
> yours doesn't block port 25, I'm pretty sure the target
> machine uses greylisting, so you have to leave the machine
> you used sendbug on up long enough to clear the greylisting.
> 
> /var/log/maillog will tell the story...
> 
> IF you have your own mail server, I've had some luck killing
> sendmail on the local machine, then doing an ssh port
> forwarding of port 25 to your mail server.  Something like
> this might work for you (as root, since you are messing with
> a priv. port)
>   ssh -f -N -L 25:localhost:25 [EMAIL PROTECTED]
> (it might not, too.  Something like that worked for me, but
> I didn't jot down exactly what I did, so that might not be
> it.  If this DOES work for you, let me know so I can put it
> in my "notes" (i.e., the FAQ :) properly)
> 
> Don't forget to kill that ssh session and restart sendmail
> to bring the system back up to proper operation when done!

Clever...  but a possibly simpler / more long-term solution is to put

    define(`SMART_HOST', `smtp.your.isp.net')dnl

in /usr/share/sendmail/cf/openbsd-localhost.mc, rebuild the
configuration with

    # m4 /usr/share/sendmail/m4/cf.m4 \
        /usr/share/sendmail/cf/openbsd-localhost.mc \
        >/etc/mail/localhost.cf

and then restart Sendmail with

    # pkill sendmail
    # /usr/sbin/sendmail -L sm-mta -C/etc/mail/localhost.cf \
        -bd -q30m

Next up, how to redirect to your ISP's mail server using PF ;)

-- 
Mark Shroyer
http://markshroyer.com/contact/

Reply via email to