Operating System - HP-UX
1825782 Members
2157 Online
109687 Solutions
New Discussion

limit outgoing sendmail users

 
John Boland
New Member

limit outgoing sendmail users

for reasons i won't/can't go into, i have a bunch of processes that are sending mail to users who have left the company. i am unable to get the process owners to modify their code to remove the bogus names. consequently, i'm getting a TON of bouncebacks and the admin running the mail server is getting a bit peeved.
the worst offender is running hp-ux 11.11, sendmail 8.9.3.
the processes sending the mail are valid processes, just that some the receipients are no longer valid.
how can i restrict outgoing mail to the relay host for a list of users? not all users in a domain, just some of them.
tia...
2 REPLIES 2
Steven E. Protter
Exalted Contributor

Re: limit outgoing sendmail users

Shalom,

Add an entry for each user you want to block into the access file

username 550 originating mail denied


Make the message anything you want.

http://www.hpux.ws/?p=5

Use that document to build a sendmail configuration file. The script was written on 11.11 and I will stand behind and support it.

This will stop the mail.

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
John Boland
New Member

Re: limit outgoing sendmail users

didn't work!
what i'm trying to do is NOT deliver outgoing mail destined for a list of users. none of the addressees are users on the server sending the mail.
the developers/business process owners do not/will not change their code to remove users. i'm not sure if they will even add new users to their outgoing mail!
so, if i have the following users who no longer are part of the company:
user.name@company.domain.com
another.user@different.place.com
(yes, we support different domains)
when mail is generated for these users, i want to drop it in the bit bucket.
i know i can restrict an entire domain or sub-domain, but i need to extend that to individual users.
tia...