- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- login account but no email?
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
09-28-2001 05:48 AM
09-28-2001 05:48 AM
I have several users that require a normal unix login account, but I do not want them to have a valid email account. As far as sendmail is concerned, these people should not exist.
What are some ways that this can be accomplished?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2001 05:54 AM
09-28-2001 05:54 AM
Re: login account but no email?
You could alias them to /dev/null, i.e. /etc/mail/aliases would contain:
username: /dev/null
then run newaliases or 'sendmail -bi'.
Rgds, Robin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2001 05:55 AM
09-28-2001 05:55 AM
Re: login account but no email?
Sendmail looks first in /etc/mail/aliases files or /etc/aliases file for email address. Then send that mail to user. If you do not have that user's mail address on aliases file then if this box has mail realy set it will send this mail to relay host and relay host trys to find users emial address.
If I am not wrong then, you do not have there address on aliases then they are not exist.
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2001 05:58 AM
09-28-2001 05:58 AM
Re: login account but no email?
One of the options is to create an alias for all the users to point to /dev/null
edit /etc/mail/aliases
user1 : /dev/null
user2 : /dev/null
Run newaliases and all the email for these users will go to /dev/null.
-HTH
Ramesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2001 06:11 AM
09-28-2001 06:11 AM
Re: login account but no email?
I would prefer that the mail bounce back to the sender as if the username was unknown.
Also relays are not involved; sendmail on the server does in fact deliver mail to the local mailboxes in /var/mail, and does not forward or relay mail to any other server.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2001 06:17 AM
09-28-2001 06:17 AM
Re: login account but no email?
1) you create a user called "nomail"
2) then alias the mail for the people you don't want to receive mail to this user.
3) Then have an autoreply that sends a message saying that that user doesn't exist...
your lying, and it isn't a standard message, but the recipient will get the message that they can't reach those users via email.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2001 06:19 AM
09-28-2001 06:19 AM
Re: login account but no email?
user1 : unknown
user2 : unknown
user1 and user2 are valid login accounts. unknown is bogus, and does not exist. sendmail returns the mail saying something like:
unknown (expanded from user1) - user unknown
So the effect is the same; it bounces back.
I may use this, but any other ideas are welcome.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2001 06:23 AM
09-28-2001 06:23 AM
SolutionIf you want the mail to bounce back to the sendar, what you could do is in /etc/mail/aliases
user1 : invaliduser
user2 : invaliduser
so when a mail is sent to user1@host.domain.com
this will bounce back since invaliduser is not a valid user on your system.
-HTH
Ramesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2001 06:25 AM
09-28-2001 06:25 AM
Re: login account but no email?
I should have refreshed my browser to check the thread before i sent my message, i tested out the solution, it works.
-Regards
Ramesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2001 06:28 AM
09-28-2001 06:28 AM
Re: login account but no email?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2001 06:35 AM
09-28-2001 06:35 AM
Re: login account but no email?
You could add lines in rule set 0 of sendmail.cf:
Rusername $#error $: unknown user
Ranotheruser $#error $: unknown user
Make sure you put tabs between the user and the $#...
Rgds, Robin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2001 06:50 AM
09-28-2001 06:50 AM
Re: login account but no email?
The other way is to create a class file, then refer to this in rule set 0:
FU /etc/mail/UserList
...
S0
R$=U $#error $: User Unknown
Don't forget to stop/start sendmail after these changes are made.
aliases is probably simpler though ;-) ...Robin