- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Sendmail need to block incoming 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
Discussions
Discussions
Discussions
Forums
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
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-20-2007 10:23 PM
тАО08-20-2007 10:23 PM
Sendmail need to block incoming mails
I need to block incoming mail for a particular user where that user can send only outgoing mails. We are using sendmail 8.9.3 with PHNE_35950. The steps I performed are below.
1.Using /usr/newconfig/etc/mail/cf/cf/gen_cf script, created new sendmail.cf.gen file and copied to /etc/mail/sendmail.cf to enable
the blocklist recipients feature.
2. Then I create the /etc/mail/access file manually and put the below entry.
# more /etc/mail/access
test@abc.com REJECT
3.Then I created database map using the below command
#makemap dbm /etc/mail/access < /etc/mail/access
4.Restarted the sendmail daemon.
But still the user "test" is receiving mail if i send test mail from root user.
# mailx test@abc.com
Subject: test mail
test mail
.
EOT
#
Your valuable advice pls..
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2007 12:17 AM
тАО08-21-2007 12:17 AM
Re: Sendmail need to block incoming mails
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2007 12:53 AM
тАО08-21-2007 12:53 AM
Re: Sendmail need to block incoming mails
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2007 01:35 AM
тАО08-21-2007 01:35 AM
Re: Sendmail need to block incoming mails
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2007 08:04 AM
тАО08-21-2007 08:04 AM
Re: Sendmail need to block incoming mails
cd /etc/mail
vi access
...
To:refuse@mshome.net REJECT
make
ls -lrt |tail
-rw-r--r-- 1 root root 617 Aug 21 21:05 access
-rw-r----- 1 root root 12288 Aug 21 21:05 access.db
service sendmail restart
tail /var/log/maillog
Aug 21 21:51:50 router sendmail[9867]: l7LJpog9009867: ruleset=check_rcpt, arg1=
Mayby the following could do the trick? In case the mail domain would not be properly known in DNS?
grep mshome.net /etc/hosts
...
192.168.4.31 mshome.net
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2007 06:58 PM
тАО08-21-2007 06:58 PM
Re: Sendmail need to block incoming mails
By mistake I have put this thread here instead of in HP-UX.
Anyway thanks for all your responses.
Ganesh.