×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

"virtual domains": so info@dom1.net and info@dom2.net go to 2 accounts

"virtual domains": so info@dom1.net and info@dom2.net go to 2 accounts

"virtual domains": so info@dom1.net and info@dom2.net go to 2 accounts

(OP)
I have sendmail 8.8.7 setup with a sendmail.cw configuration file with entries like:
dom1.com
dom2.net
etc.

QUESTION:
How can I setup user accounts or aliases so that mail messages such as "info@dom1.com" and "info@dom2.net" will go to respective, seperate accounts?

RE: "virtual domains": so info@dom1.net and info@dom2.net go to 2 accounts

I think what you want to do is to create a virtual user table. Make sure that your sendmail.cf contains a line similar to:

Kvirtusertable hash -o /etc/vitusertable

or if you have dbm try

Kvirtusertable dbm -o /etc/virtusertable

Note: if you use m4 to create your .cf file you can use:
FEATURE(`virtusertable') (the first one is a back quote I believe but this editor can't seem to display a back quote) or for dbm
FEATURE(`virtusertable',`dbm -o /set/virtusertable') (again the left side quotes are actually back quotes)

Then build your virtual-user database with entries like:

info@dom1.com localusername1
info@dom2.com username@otherdomain.com
@dom3.com localusername2

(The last one says to send mail for any user from dom3.com to the local user with the name "localusername2".)

I hope this isn't too confusing.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close