Restrict LAN users to send mail to Internet but allow to send
mail to other LAN user.
adsnat at yahoo.com
Thu Oct 28 17:35:41 CEST 2004
I tried to find out sendmail solution for the problem
but could not find any article or mailing list topic
for the subject. Can you please guide me how to use
sendmail to only allow certain LAN users to send mail
to outside world and others will be rstricted to LAN
Thanks for support.
--- Aleksandar Milivojevic <amilivojevic at pbl.ca>
> ads nat wrote:
> > Now I want to allow LAN users to send emails to
> > other on LAN but want to allow some LAN users to
> > email to Internet(Outside world).
> > Is there any way using Linux iptables firewall to
> > acieve this requirement.
> I will assume that LAN users are allowed to connect
> to mail server only,
> and not to outside world. Controlling this on
> Sendmail level would be
> much more simpler and efficient. Assuming you are
> using Sendmail as
> your MTA. Netfilter isn't suited for this, because
> there's no way for
> it to know if SMTP connection between client (LAN
> user) and server is
> delivery of email addressed to another LAN user, or
> to somebody at the
> outside. Also, Sendmail will take care of
> generating appropriate error
> messages back to the users, while Netfilter would
> simply block the
> traffic without any explanation to the user what
> Aleksandar Milivojevic <amilivojevic at pbl.ca>
> Pollard Banknote Limited
> Systems Administrator 1499
> Buffalo Place
> Tel: (204) 474-2323 ext 276
> Winnipeg, MB R3T 1L7
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
More information about the netfilter