"bogiebog" <nospam93924@yahoo.com> writes:
> Hi
>
> I am using sendmail 8.13.x with *.mc configuration
> I would like to reject ALL local delivery (not forward elsewhere, just
> nuke it and return an 5xx error to the sender), This is intersite
> transfer MTA and I dont want ANY local delivery, not even root nor
> postmaster.
>
> ideally I would like to configure rule that will kick in after sendmail
> determines
> delivery agent and give me an option to do something, e..g,
>
> if (agent = local) then $#error 5.x.x no local delivery
>
> is there anything like that possible thru ruleset thru *.mc
> configuration ?
>
> I went thru cf/README but did not find anything pertinent 
>
> for now I redefined local mailer path to /bin/false but that's a little
> too late as sendmail
> accepts delivery to remote client and then attempts local thru
> /bin/false. I would like
> to reject local delivery while in SMTP session with remote client.
>
> I appreciate any hint/
FEATURE(`stickyhost')dnl Applies MAIL_HUB *before* aliasing
define(`MAIL_HUB',`error:5.x.x:"5?? no local deliveries')dnl
Consider using DontProbeInterfaces to avoid surprises
http://www.sendmail.org/m4/tweaking_...OBE_INTERFACES
I suggest you version without stickyhost and using aliases to redirect
some classic "error reporting destination" to addresses on another host.
--
[pl2en: Andrew] Andrzej Adam Filip :
anfi@priv.onet.pl :
anfi@xl.wp.pl