HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Can sendmail be configured to accept only e-ma...
Operating System - HP-UX
1842349
Members
3261
Online
110188
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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-28-2004 04:12 AM
07-28-2004 04:12 AM
So far, I've been lucky enough to be able to avoid having to run sendmail, and needing to deal with all of it's related security issues. Unfortunately for me, that's about to change....
I need to know if it's possible to limit sendmail to accepting connections only from a select few domains. It seems to me that it should be possible, but I'm just not familiar enough with sendmail to know what's needed.
Pointers to clear documentation on the subject would be appreciated. Meanwhile, I'm heading off to sendmail.org to root around there for some answers....
I need to know if it's possible to limit sendmail to accepting connections only from a select few domains. It seems to me that it should be possible, but I'm just not familiar enough with sendmail to know what's needed.
Pointers to clear documentation on the subject would be appreciated. Meanwhile, I'm heading off to sendmail.org to root around there for some answers....
Remember, wherever you go, there you are...
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2004 04:22 AM
07-28-2004 04:22 AM
Solution
Hmnmmmmnmmm...
You could use the access db...
/etc/mail/access
in the access file, add the domains you want to accecpt from, and block all ip's from the class A level (note it is a tab between ip/domain and reject/OK):
gooddomain.com OK
anotherone.com OK
1 reject
2 reject
.
.
.
254 reject
makemap hash /etc/mail/access
restart sendmail...
Rgds...Geoff
You could use the access db...
/etc/mail/access
in the access file, add the domains you want to accecpt from, and block all ip's from the class A level (note it is a tab between ip/domain and reject/OK):
gooddomain.com OK
anotherone.com OK
1 reject
2 reject
.
.
.
254 reject
makemap hash /etc/mail/access
restart sendmail...
Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2004 04:35 AM
07-28-2004 04:35 AM
Re: Can sendmail be configured to accept only e-mail from certain domains?
I looked in the O'Reilly sendmail book - Second edition - and found on page 289 there is a heading called "Accept Mail Only From Our Domain." It may provide the feature you're looking for.
Good luck,
Dave
I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Good luck,
Dave
I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2004 05:45 AM
07-28-2004 05:45 AM
Re: Can sendmail be configured to accept only e-mail from certain domains?
Goeff's solution will work just fine for you.
You'll need a macro script for HP-UX to build your sendmail.cf file.
http://www.hpux.ws/buildmail.hpux.text
You will cut down a lot on your spam.
I wish I could do that.
SEP
You'll need a macro script for HP-UX to build your sendmail.cf file.
http://www.hpux.ws/buildmail.hpux.text
You will cut down a lot on your spam.
I wish I could do that.
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
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP