Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using email addresses for usernames in UNIX

Status
Not open for further replies.

cbnsingram

IS-IT--Management
Mar 29, 2003
4
US
I have email users on multiple domains with the following requirements.
1. Must use the same name on each email address (example listen@ezpromote.com, listen@hosts-inc.com, etc....)
2. Mail for each account must be go to a unique inbox.
3. When logging in the user must use the full email address as his/her login name.

This is a Redhat 7.2 server with Sendmail 8+

What I've tried:
1. I have created unix accounts using the desired email address for user name. (example: listen@ezpromote.com)
2. I have created a virtuser table entry of (listen@ezpromote.com listen@ezpromote.com).
3. I have added ezpromote.com to my local domains list.

Problem: Emails sent to listen@ezpromote.com receive the following error:

"The following addresses had delivery problems:
<listen@ezpromote.com>
Permanent Failure: 554_5.0.0_rewrite:_excessive_recursion_(max_50),_ruleset_canonify&quot;

Am I trying something impossible? Is there a better solution to my needs that still includes Sendmail?
 
Hi,

did create user listen or listen@ezpromote.com?

regards,
feroz
 
I created listen@ezpromote.com. Unix accepts this as a legal username, but Sendmail will not look for this username when delivering mail. If unix account &quot;listen&quot; is present sendmail delivers &quot;listen@ezpromote.com&quot; to &quot;listen's&quot; inbox. But, &quot;listen&quot; might belong to an entirely different user.

I believe I need one of two things.
1. A way to force sendmail to look at the entire email address of &quot;listen@ezpromote.com&quot; first to see if it exists as a unix user. If yes, deliver. If not, look for an account of just &quot;listen&quot;.

OR

2. A third-party virtual email account management program such as can be done with qmail/vpopmail.

I currently use qmail/vpopmail and SquirrelMail but am trying to move back to sendmail. Qmail just is not working smoothly enough.

 
Hi,

I dont think so sendmail will understand listen@domain.com@domain.com . I suggest you use virtual address in sendmail. With virtual address, you dont have to create unix account. Refer to sendmail.org.

regards,
feroz
 
I had no idea a virtual address option was available. Thanks so much.
 
Hello,

There are 2 solutions to this problems:
1. Create the unix usernames as email address (listen@domain.com). In the sendmail virtusertable, create the entry &quot;listen@domain.com listen\@domain.com&quot;
Also create the same entry in genericstable, &quot;listen\@domain.com listen@domain.com&quot;
The back slash will work.
This solution will allow the user to login using their own email and password
2. Another solution is to create a unix user name listen-domain.com. have listen@domain.com point to listen-domain.com
The user will have to login in using listen-domain.com

I prefer the second approach. I figure out the 1 approach only by try and error (not sure it is a good way to do that).

Hope it helps.

Regards,

Angus
 
Thanks. I think I'll experiment with your #1 suggestion and fall back to 2 if I hit any snags.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top