- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- sendmail - prohibiting/enabling users from sending...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2004 01:37 PM
08-12-2004 01:37 PM
sendmail - prohibiting/enabling users from sending mails
Running HP-UX 11.00. Would like to know how I can enable/prohibit users from sending mails (no one receives mail).
So far, I have set /var/spool/mqueue to read/write for all and this works, but I think is not a recommended way :
mlbs0039:ttyp5 /var/spool # ls -ld /var/spool/mqueue
drwxrwxrwx 2 bin bin 11264 Aug 13 11:34 /var/spool/mqueue/
If not, mail.log complains :
Aug 13 11:19:54 mlbs0039 sendmail[24530]: NOQUEUE: SYSERR(a50adm): queuename: Cannot create "qfLAA24530" in "/var/spool/mqueue
" (euid=3201): Permission denied
Strangely in my 11.11 box it works for all users even without changing the permission of mqueue (0755).
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2004 02:37 PM
08-12-2004 02:37 PM
Re: sendmail - prohibiting/enabling users from sending mails
ll /usr/sbin/sendmail
-r-sr-sr-t 1 root mail 856064 Nov 14 2000 /usr/sbin/sendmail
After you fix the permissions of sendmail, the users will be able to send messages and you can set /var/spool/mqueue back to 755 bin:bin
chmod 7555 /usr/sbin/sendmail
Hope this helps,
-denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2004 02:41 PM
08-12-2004 02:41 PM
Re: sendmail - prohibiting/enabling users from sending mails
Is there a way sendmail can enable/disable other users from sending out mails? Eg by editing sendmail.cf ? Is this possible?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2004 02:44 PM
08-12-2004 02:44 PM
Re: sendmail - prohibiting/enabling users from sending mails
/var/mail/root is root for example.
Other helpful stuff.
mailq display the mail queue. In this case it should be empty.
sendmail -v -q verbose clear attempt on the mail queue. Tries to force the mail out.
You can prohibit users from sending mail by adding them the the /etc/mail/access
username OK tab delimited for good.
usernot REJECT
or DROP for those you don't want to send and receive mail.
To build the sendmail.cf file from these macro directives, you'll need this script, which also turns on common anti spam programs.
http://www.hpux.ws/buildmail.hpux.text
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2004 03:03 PM
08-12-2004 03:03 PM
Re: sendmail - prohibiting/enabling users from sending mails
sendmail -bt -C/etc/mail/sendmail.cf
=M
/quit or Ctrl-q to quit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2004 04:31 PM
08-12-2004 04:31 PM
Re: sendmail - prohibiting/enabling users from sending mails
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2004 11:55 PM
08-12-2004 11:55 PM
Re: sendmail - prohibiting/enabling users from sending mails
yep, there is a way to enable/disable specified users from sending email through sendmail.cf but it's really not simple !!
What you have to do is write a new rule in sendmail.cf which check the sender and decide if allow or deny it. There is already such a rule for relaying to specified host for example, or to perform relaying between UUCP and SMTP.
The problem is that sendmail.cf rule sintax is really cryptic, i cannot help more then this. Take a look at o'reilly manual http://www.oreilly.com/catalog/sendmail3/index.html or go to http://www.sendmail.org/
i know that is not so much but
hope it helps