Restricting users to send mail internally

Taking care of your Linux box.
Post Reply
Learner
Lance Naik
Posts: 41
Joined: Wed Nov 08, 2006 2:40 am

Restricting users to send mail internally

Post by Learner »

AOA

Dear All !

I am running sendmail on FreeBSD, my e-mails are working properly. Now I want that some of my users can only mail locally / internally on that machine but that cant send mail on the internet (xxx@yahoo.com, xxx@hotmail.com etc).

How can I configure that please guide.
Thanks & Regards


Muhammad Ali
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re:

Post by LinuxFreaK »

Dear Learner,
Salam,

Depending upon how you are authenticating your users. Below file may help you out.

/etc/mail/access

Best Regards.
Farrukh Ahmed
Learner
Lance Naik
Posts: 41
Joined: Wed Nov 08, 2006 2:40 am

Post by Learner »

AOA

Dear LinuxFreaK !

I am not restricting users I just want them, that they can only e-mail in local mail server with each other but they cant mail to other servers.

(Eg. abcd.com is a mail server the user A & B can send mail to user C but with in that server not on the net. But User C can send mail on any e-mail address)
Thanks & Regards


Muhammad Ali
x2oxen
Major General
Posts: 1114
Joined: Wed Aug 22, 2007 3:17 pm
Location: Faisalabad
Contact:

Post by x2oxen »

you cant stop that as they can send email anywhere using any other smtp server.
Muhammad Usman
+92-321-6640501
Chemonics International
http://usmanpk.com
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Post by lambda »

i typed "sendmail restrict mail" into google and the very first link had a solution to your problem.
Watch out for the Manners Taliban!
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
x2oxen
Major General
Posts: 1114
Joined: Wed Aug 22, 2007 3:17 pm
Location: Faisalabad
Contact:

Post by x2oxen »

Dear Lambda!

If i use any 3rd party relaying server for sending emails anywhere using any email address! How he will be able to stop those emails as i am not involving his server for sending emails but receiving only!
Muhammad Usman
+92-321-6640501
Chemonics International
http://usmanpk.com
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Post by lambda »

that wasn't his stated requirement. smtp has no builtin mechanism for authorization. two things he can try are domainkeys and spf, but they depend on the receiving mail server checking for them.
Watch out for the Manners Taliban!
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
x2oxen
Major General
Posts: 1114
Joined: Wed Aug 22, 2007 3:17 pm
Location: Faisalabad
Contact:

Post by x2oxen »

Yup this what i was trying to say!
Muhammad Usman
+92-321-6640501
Chemonics International
http://usmanpk.com
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Post by lambda »

again, what you asked wasn't his requirement.
Watch out for the Manners Taliban!
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
Post Reply