Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Restricting relaying by user...

Status
Not open for further replies.

DavidAkers

Programmer
May 14, 2001
11
US
Is there any way to limit relaying by user?

In other words, I'm trying to grant internet email access to certain individuals, and allowing the rest only to send mail within our domain.

Thanks...
-David Akers
 
If you know the IP address or IP range of the users you want to grant access to you could try the following:

vi /etc/mail/access

##
xx.xx.xx.xx RELAY
yy.yy.yy RELAY
## eof

make

Where xx.xx.xx.xx is a known specific IP address and where
yy.yy.yy is a know specific subnet.

the make command makes the access.db.

Of course this assumes you have the following in your /etc/mail/sendmail.mc file

dnl FEATURE('access_db', 'hash -T<TMPF> /etc/mail/access')dnl
FEATURE(''access_db')

HTH
 
Yeah, I thought about that, but I was hoping to limit it by user, rather than by IP.

Also, stopping relaying this way keeps that IP from using the mail for internal stuff.

-David
 
I have exactly the same problem. And the mail is accessed by one http’s webmail, at the same server as sendmail, the IP restrictions don't apply.

Any ideia ?

Thanks in advance
Max
 
David,
Why don't you setup a pop before smtp system? Once the pop3 is triggered by the user you wanted to relay, it will relay.
Shouldn't be that hard to setup I guess.
 
I swear that I scoured the sendmail site for answers before I posted here. I don't know how you found that, but thanks. :)

Now, I assume I can write a similar ruleset to limit incoming mail the same way. Is there a guide to writing these rules outside of the short one in the sendmail docs? Is there a man page?

Thanks...
-David
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top