- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /etc/mail/access and DISCARD
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-21-2003 05:57 AM
07-21-2003 05:57 AM
To test, I put my PC's name in there, and tried sending email to someone on our network. Here's the line in /etc/access:
fred.applicatorssales.com DISCARD Sorry.
It worked from the sender's point of view. When I tried to send an email, my mail client echoed the discard and sorry message back.
However - the email was sent anyway. The recipient got the message. That transaction appears in the mail log, with a different ID than the transaction that was discarded.
My understanding of DISCARD is that the email would be discarded. Hmmm. Am I not setting this up right?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2003 06:04 AM
07-21-2003 06:04 AM
Re: /etc/mail/access and DISCARD
You have to create the access.db file.
I've attached a Linux script for building these databases.
Somewhere in my past questions is an hpux version. I'm looking for it.
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-21-2003 06:09 AM
07-21-2003 06:09 AM
Re: /etc/mail/access and DISCARD
makemap dbm /etc/mail/access < /etc/mail/access
Fred
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2003 06:10 AM
07-21-2003 06:10 AM
Re: /etc/mail/access and DISCARD
Kaccess dbm /etc/mail/access
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2003 06:14 AM
07-21-2003 06:14 AM
SolutionI'll stop looking for that script.
DISCARD is not the best choice. It would be better to REJECt.
That is an aside.
Set up another HP-UX box with this discard
build the databases
from the discarded box
sendmail -v -d8.99 -d38.99 someone@otherbox.net
Type some text.
.
You should see the message be accepted.
DISCARD does not bounce the message, it just does nothing with it.
After running a few tests, look at the mail log.
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-21-2003 06:35 AM
07-21-2003 06:35 AM
Re: /etc/mail/access and DISCARD
I am not sure where I found it. I think it was a doc on the hp site. But it explains everything pretty well.
In my access file for spammers I use the line below.
biscoind.com 553 Spammer
And no one can send to the domain or get email from the domain. You can put an IP instead too.
Hope it helps
Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2003 10:11 AM
07-21-2003 10:11 AM
Re: /etc/mail/access and DISCARD
In my test, as the sender, my Eudora email client refused to even send the email at all, when my server sent the 550 back. Even if the spammer's client blindly sends stuff anyway, my server didn't keep or evaluate the incoming spam, but just dropped the conection after the bounce.
Building a list of spammers is a bit like trying to hit a moving target, but it's a start for me anyway. At least I can hit the larger ligitimate marketing places with this.
I'll be trying to implement a black hole list soon, if that works OK.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2003 10:47 AM
07-21-2003 10:47 AM
Re: /etc/mail/access and DISCARD
I'd be happy to send you my access file.
I have a very extensive list of spammers and a few IP address blocks that house mobile spammers.
I actually cut my spam count over the weekend to 1 message on my account. As I've tightened the screws complaints from my customers about spam have dropped too.
I'll trade you for your makemap script?
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-21-2003 11:11 AM
07-21-2003 11:11 AM
Re: /etc/mail/access and DISCARD
My makemap script is pretty hairy, but you are welcome to it, I suppose. It updates several things - it runs newaliases, creates the access.db and the user.db based on exterior files that I maintained. They are complicated by the fact that three companies are sharing one mail server...
It also creates "printable" text files of internal aliases and internet email addresses for those employees with perission to use them.
The printable files are for internal distribution, but are interesting in that the printable list only prints aliases we want users to see, and in a few unique cases certain addresses are masked from the printable list...i.e. some higher-ups see more email than some realize. Nudge nudge.
Then if that's not enough it ftp's these print files to a public folder on an NT server.
The code to make that all happen is very obtuse and requires the /etc/aliases file to be in a specific format beyond the normal.
But anyway, I'll send it to you if you want to see it. I hesitate to put it here though, because it's such a hack.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2003 11:24 AM
07-21-2003 11:24 AM
Re: /etc/mail/access and DISCARD
sprotter@investmenttool.com
Attach the script, which is better than what I have and when I get home, I'll reply with a copy of the access file.
If we agree its a resource, we can improve both of our situations by exchanging access files regularly. I will strip out the internal section of access file, just in case any of my customer email addresses found their way in there.
I'm starting at ground zero with sendmail configuration on HP-UX and thats why your makemap script is important. I'm thinking my sendmail.mc file might work on sendmail 8.11 HP-UX which would save me a lot of time. If you have one of those it would be most useful.
Identify yourself on the subject line if the name isn't obvious.
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-21-2003 11:56 AM
07-21-2003 11:56 AM
Re: /etc/mail/access and DISCARD
And, as I said, it's a hack, and is placed here without warranty. I only know it works for me. I don't have time to engage in any debugging.
And, no comments about the legality of the bigboss bit - that wasn't my idea :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2003 12:18 PM
07-21-2003 12:18 PM
Re: /etc/mail/access and DISCARD
h6LJOaT09182: --> 553 5.0.0 No soliciting. (held)
The 553 No Soliciting is a result of my access file entry. But what does '(held)' mean? Not all the hits have that comment.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2003 12:24 PM
07-21-2003 12:24 PM
Re: /etc/mail/access and DISCARD
I grabbed it by ftp
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-21-2003 12:24 PM
07-21-2003 12:24 PM