VaibhaV Sharma forced the electrons to say:
> The thing I wanna do is that I want to block people from sending ANY mails
> outside our local domain i.e. to the smart host. But at the same time they
> should be able to send / receive mails from anyone in our local domain. How
> do I achieve this in sendmail?

You know what? You do it from sendmail, and people will immediately
write simple SMTP clients in any language of their choice and send emails
where ever they want. In fact, I think /bin/mail does this already. IIRC, so
does pine.

The easiest thing to do is to run the command

/sbin/ipchains -I output ! --dest 127.0.0.1 --dport 25 -j REJECT

on the server. Sendmail will send back an apologetic mail back to anyone
who tries to send mails outside saying that it was unable to help them.

Binand

-- 
#define l/* Binand Raj S. <[EMAIL PROTECTED]> */".%\"-\"("
#define s/* Ambition: To write sendmail.cf from scratch  */abs(abs(i)-5)
main(i,j){for(i=-5;i<6;i++){for(j=0;j<35-s;j++,putchar(32));putchar(s[l]^
108);for(j=0;j<2*s-1;j++,putchar(32));s&&putchar(s[l]^108);putchar(10);}}

----------------------------------------------
An alpha version of a web based tool to manage
your subscription with this mailing list is at
http://lists.linux-india.org/cgi-bin/mj_wwwusr

Reply via email to