- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- email for some, not for others
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-27-2003 07:05 AM
08-27-2003 07:05 AM
email for some, not for others
All users have a unix account, and therefore email access - for internal company email.
For certain "authorized by policy" users, there is an entry in sendmail's userdb, which gives them a pretty name to use for internet email (our login names are not pretty).
Only those with a userdb entry are supposed to be sending/receiving outside the company.
Is there a way in sendmail to enforce this?
Some users only have unix access (terminals) and some have PCs that POP in for mail.
Again, they all have email for internal use.
My firewall already only allows mail packets to and from my unix server, so they have to go through it in any case.
It's a bit complex because sendmail needs to relay for my own network but not others; needs to allow local email for all that have an account on the unix machine; but should only send or receive email to other networks (internet) if they have a userdb entry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2003 07:15 AM
08-27-2003 07:15 AM
Re: email for some, not for others
yourdomain.com REJECT
user1@yourdomain.com OK
user2@yourdomain.com OK
That will reject everything except those you say OK for - not too sure if it stops them from sending though.....
When I get a chance, I'll look further - unless someoneelse replies.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2003 07:17 AM
08-27-2003 07:17 AM
Re: email for some, not for others
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2003 07:38 AM
08-27-2003 07:38 AM
Re: email for some, not for others
I think you may have to write your own sendmail rulesets to accomplish what you want to do....
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2003 08:25 AM
08-27-2003 08:25 AM
Re: email for some, not for others
http://www.sendmail.org/~ca/email/restrict.html
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2003 08:36 AM
08-27-2003 08:36 AM
Re: email for some, not for others
It has entries like this:
schmobagel stevenprotter@yourdomain.net
Setting this and restarting sendmail should do the job.
Sometimes however you won't get the right address on outbound mail under these circumstances.
Then you need entries in:
/etc/mail/virtusertable
/etc/mail/genericstable
These are tab delimited and provide a user database to make sure outbound and inbound mail gets to the right user.
virtusertable
stevenprotter@yourdomain.net schmobagel
genericstable is the reverse
schmobagel stevenprotter@yourdomain.net
To get these into the databases requires running the gen_cf utility that ships with HP-UX.
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-27-2003 10:04 AM
08-27-2003 10:04 AM
Re: email for some, not for others
The article on sendmail.org is interesting - I looked at my sendmail.cf file and there already is a "Local_check_rcpt" rule ... it looks like this:
SLocal_check_rcpt
Scheck_rcpt
R$* $: $1 $| $>"Local_check_rcpt" $1
R$* $| $#$* $#$2
.....etc......
There's a note in that article about having more than one Local_check_rcpt, I'll need to read up on all this.