Solved

sendmail authentication

Posted on 2003-10-26
4
339 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
  • 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 400 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

Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

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…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

820 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