- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- 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
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-20-2007 10:43 PM
08-20-2007 10:43 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-20-2007 10:50 PM
08-20-2007 10:50 PM
Re: Sendmail need to block incoming mails
But still the user "test" is receiving mail if i send test mail from root user.
test@abc.com REJECT <--- external address
---
Thats internal mail, try to send a mail from an other server (external).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2007 10:55 PM
08-20-2007 10:55 PM
Re: Sendmail need to block incoming mails
Thanks for your response.
I want to reject both internal as well as external mails.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2007 11:06 PM
08-20-2007 11:06 PM
Re: Sendmail need to block incoming mails
check the /var/adm/mail.log file and see if the traffic is even passing through the server in question.
It could be relayed through an smtp gateway elsewhere on the network.
Your configuration steps to date are correct. You could in addition try to block the traffic by hostname, if the user has a specific hostname.
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-20-2007 11:22 PM
08-20-2007 11:22 PM
Re: Sendmail need to block incoming mails
This is the entry from /var/adm/syslog/mail.log
Aug 21 06:15:52 il06depo sendmail[15787]: GAA15787: from=root, size=162, class=0 , pri=30162, nrcpts=1, msgid=<200708211115.GAA15787@il06depo.corp.mot.com>, rela y=root@localhost
Aug 21 06:15:52 il06depo sendmail[15789]: GAA15787: to=test@il06depo.corp.mot.co m, ctladdr=root (0/3), delay=00:00:00, xdelay=00:00:00, mailer=local, stat=Sent
Here the host name is il06depo.corp.mot.com instead of abc.com
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2007 12:59 PM
08-21-2007 12:59 PM
Re: Sendmail need to block incoming mails
the issue is likely to be your access file.
# more /etc/mail/access
test@abc.com REJECT
^^^
You need to use tabs to separate the fields.
You also should use the following syntax if you just want to block inbound emails. Just be careful as you'll have issues if email ever bounces.
To:test@abc.com
Cheers,
Philip.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2007 01:01 PM
08-21-2007 01:01 PM
Re: Sendmail need to block incoming mails
# more /etc/mail/access
test@abc.com REJECT
^^^
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2007 04:48 PM
08-21-2007 04:48 PM
Re: Sendmail need to block incoming mails
you can try this way
vi /etc/mail/access
test@abc.com REJECT ( here no space, use tab)
then,
makemap hash access.db < access
Restart sendmail daemon
Hopefully it will work
Thanks & Regards
A.Aashique
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2007 09:40 PM
08-21-2007 09:40 PM
Re: Sendmail need to block incoming mails
I have recreated the access file with
Then tried this also.
makemap hash access.db < access
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2007 09:17 AM
08-22-2007 09:17 AM
Re: Sendmail need to block incoming mails
can you post your sendmail.cf?
Cheers,
Philip.