Discussion Locked

Sendmail

0 helpful
8 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I am trying to restrict access of host computers to send mail to my server. What do I do?

8 replies

by tene92

I do not want to restrict access to all users just some. I do not wnat everyone using Sendmail

by amal

If you are using sendmail greater than 8.9, it blocks all users to use your server for relaying. Only the IP addresses in "/etc/mail/relay-domains" can use your server for relaying.
As to block users, you might want to use a filtering program like Procmail.

by mshavrov

If you have small list of servers, which is allowed to connect to your SMTP host, limit it on router or in firewall. Same thing if you have specific network (if you is ASP and you want to enable this only to YOUR users). Just define network and allow access to TCP port 25.

If you require to allow it on "per-user basis", search for "SNMP AUTH" requirements and configuration (you may just look this words in www.google.com or somewhere else.

Good luck.

by apsingh1

one can also use /etc/mail/access file and put
entries for IP address or domain name or email id's and put REJECT against these entries.Now do makemap to rebuild the access database.Restart sendmail. This should do the trick.

This discussion is closed to new replies.