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!

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

Status
Not open for further replies.

guyboy

ISP
Oct 27, 1998
1
CA
I have sendmail 8.8.7 setup with a sendmail.cw configuration file with entries like:<br>
dom1.com<br>
dom2.net<br>
etc.<br>
<br>
QUESTION:<br>
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?<br>

 
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:<br>
<br>
Kvirtusertable hash -o /etc/vitusertable<br>
<br>
or if you have dbm try<br>
<br>
Kvirtusertable dbm -o /etc/virtusertable<br>
<br>
Note: if you use m4 to create your .cf file you can use:<br>
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<br>
FEATURE(`virtusertable',`dbm -o /set/virtusertable') (again the left side quotes are actually back quotes)<br>
<br>
Then build your virtual-user database with entries like:<br>
<br>
info@dom1.com localusername1<br>
info@dom2.com username@otherdomain.com<br>
@dom3.com localusername2<br>
<br>
(The last one says to send mail for any user from dom3.com to the local user with the name "localusername2".) <br>
<br>
I hope this isn't too confusing.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top