On Fri, 9 Nov 2007, Woodchuck wrote:

> Since my fascist ISP blocks port 25 traffic (why they do this is
> hazy), I have to use his lame relay to send mail.  The easy way to
> do this is to use:
>         define(`SMART_HOST', `mail.isp.com')dnl
> in the appropriate myhost.mc file.
> 
> Fine, that works.  But I also have a local RFC1918 LAN, and if
> SMART_HOST is all I do, even mail to hosts on the local LAN are
> sent to the SMART_HOST; the SMART_HOST, of course, eventually
> bounces those mails as undeliverable, since the local domain
> is not in global DNS.
> 
> All mail is smtp.
> 
> So how can I alter my .mc file or hack the .cf file to *not*
> forward mail for a discrete list of hosts or a whole domain?
> 
> This would seem to be a very common situation.  Any LAN
> that needs to use a SMART_HOST to communicate outside itself
> has this situation.
> 
> Any pointers would be appreciated, I can't find this situation
> in the several places I've already looked.  THis seems like
> something that a "mailertable" might handle, but I can't
> get any traction in understanding those.
> 
> Dave

Well of course, silly woodchuck, just add these lines in your
xxxxxxx.mc file after the "define(`SMART_HOST'...) stuff:

LOCAL_NET_CONFIG
R$* < @ $* .$m. > $*    $#smtp $@ $2.$m. $: $1 < @ $2.$m. > $3
                    
Heh.                ^^^^ Use a tab there, not spaces.

Dave's Better Half


-- 
      You don't have to be a woodchuck to eat cabbage.
_______________________________________________
Openbsd-newbies mailing list
[email protected]
http://mailman.theapt.org/listinfo/openbsd-newbies

Reply via email to