- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- For Blocking Sendmail Users for sending mails
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
07-05-2006 02:08 AM
07-05-2006 02:08 AM
I want to block some users automatically and to unblock them also but without using the /etc/mail/access file .
Can somebody tell me what should I do
Or what are the available options for blocking the users for mail access.
Pls revert.
Thanks
Sachin Rajput
HCL
===============
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2006 12:49 AM
07-06-2006 12:49 AM
Re: For Blocking Sendmail Users for sending mails
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2006 01:45 AM
07-06-2006 01:45 AM
Re: For Blocking Sendmail Users for sending mails
#!/bin/sh
TARGET=$1
/sbin/iptables -I INPUT -s $TARGET -j DROP
Make target the IP address of the offending user.
The way to block mail is to use the access file.
I can provide you a script that will modify it with relative ease. Interested?
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
07-07-2006 09:01 PM
07-07-2006 09:01 PM
Re: For Blocking Sendmail Users for sending mails
You pls give me that script also .
And pls tell me if there is any other way .
I can block users using /etc/pam.d/smtp but unable to revert them back by removing the same entries.
Thanks
Sachin Rajput
====================
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2006 02:23 AM
07-10-2006 02:23 AM
Re: For Blocking Sendmail Users for sending mails
http://www.jonfullmer.com/smtpauth/
To send a mail, users must authenticate using their accounts, so, if yo lock the account with "usermod -L", they won't be able to send mails.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2006 06:40 AM
07-10-2006 06:40 AM
SolutionSorry I'm late with this, I had to take out my customizations:
newaliases
cd /etc/mail
makemap -r -v hash access.db < access
makemap -r -v hash domaintable.db < domaintable
makemap -r -v hash genericstable.db < genericstable
makemap -r -v hash mailertable.db < mailertable
makemap -r -v hash virtusertable.db < virtusertable
cp /etc/mail/sendmail.cf /root
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
You place your entries in the access file
192.168.0.10 554 Not permitted,
192.168.0.20 RELAY
192.168.0.30 OK
Run the above script and you have blocked sendmail.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com