cancel
Showing results for 
Search instead for 
Did you mean: 

Restrict user to send mail

 
Highlighted
Honored Contributor

Restrict user to send mail

I have configure sendmail in my hp-ux box. Now every OS user can send mail.

I want to restrict some OS user to send mail.

How can i do this?
a warrior never quits
7 REPLIES 7
Highlighted
New Member

Re: Restrict user to send mail

1. Open /etc/mail/access file and add username/hostname to deny the user.
2. Restart sendmail.
Learning Never ends !!!!
Highlighted
Honored Contributor

Re: Restrict user to send mail

as there is no access file in /etc/mail then should I only create this file and restart sendmail?
a warrior never quits
Highlighted
Acclaimed Contributor

Re: Restrict user to send mail

See the following document:
Configuring sendmail to Reject Unsolicited Mail
http://docs.hp.com/en/B2355-90685/ch04s09.html
http://docs.hp.com/en/B2355-90685/ch04.html
Highlighted
New Member

Re: Restrict user to send mail

Jeeshan,
1.Touch /etc/mail/access
2.Add the mail details inside the file like logesh@.com REJECT (or) 192.168.202 REJECT

You can also keep log of the Relay/Reject requests by creating .db file in the same location.


Learning Never ends !!!!
Highlighted
Exalted Contributor

Re: Restrict user to send mail

Shalom,

Also, don't run the sendmail daemon.

There is no need to run it unless you are receiving INBOUND mail.

You should to use the m4 utility to create a new sendmail.cf file after making changes to the access file and the access.db

These changes will be implemented immediately, but there is benefit to generating a new file.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Highlighted
Honored Contributor

Re: Restrict user to send mail

@SEP:
Actually I have to restrict some UNIX user to send mail but allowed users will send mail as usual.
a warrior never quits
Highlighted
Honored Contributor

Re: Restrict user to send mail

Hello,

You could use procmail to restrict some OS user(s) to send mail. This is a very powerfull package and it is a must for any SMTP server.

Check this page for documentation/samples:

http://www.procmail.org/

You can also download pre-compiled binaries from the porting page:

http://hpux.connect.org.uk/hppd/hpux/Networking/Mail/procmail-3.22/

Best regards,
Horia.
Best regards from Romania,
Horia.