?
Solved

sendmail authentication

Posted on 2003-10-26
4
Medium Priority
?
354 Views
Last Modified: 2012-06-21
hi,
  I am using sendmail 8.12.10 with sasl authentications for the user.
We have to restrict some of the users to send mails outside and receiving from outside while the others should have no restrictions.
  Could anybody suggest me how to accomplish this.

  Thanks.
0
Comment
Question by:shenasar
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 

Author Comment

by:shenasar
ID: 9648450
Is this feature not in sendmail. Is there any other MTA supports these type of feature.  please help me to achieve this.
Thanks.
0
 
LVL 3

Accepted Solution

by:
Sandy Kalugdan earned 800 total points
ID: 9648798
Edit the /etc/mail/access file.  From this file you can restrict using IP address
Example:
User1 is using 192.168.0.1. If you want to restrict is from sending out emails from the server you would add a line in the /etc/mail/access file such as this

192.168.0.1<TAB>REJECT or simply not to include this IP address from the list.

On the other hand, if you would like to allow this user to send out emails, add this line in the /etc/mail/access

192.168.0.1<TAB>RELAY

Just make sure after editing and saving the /etc/mail/access file you issue this
makemap hash access.db<access

Now with the sendmail-8.12.10 feature of AUTHENTICATION, this can be overided.  Even IP address are not included in the access file, they can send emails simply by AUTHENTICATION first.

Hope this helps.


0
 

Author Comment

by:shenasar
ID: 9649430
hi SandyKalugdan,
    Thanks for your reply. This is ok. But there is a loop hole if the user uses other machine and then sends mails to outside. Our sendmail is configured to use user authentication. So restriction should be user based not ip based.
0
 

Author Comment

by:shenasar
ID: 9784783
Well, I did not get any proper solutions. Now we made a serparate mail server  for those people.

0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses
Course of the Month11 days, 12 hours left to enroll

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question