Operating System - HP-UX
1821981 Members
5378 Online
109638 Solutions
New Discussion юеВ

virtusertable , genericstable .. sendmail

 
someone_4
Honored Contributor

virtusertable , genericstable .. sendmail

I have built a virtusertable and a generics table. in /etc/mail
I did this to be able to host the same username on 2 domains. ie user@thisdomain.net
and user@thatdomain.net , But it is not working. I have the virtusertable like this:
user@thisdomain.net user@localhost
user@thisdomain.net user0@localhost
and i have the generics table reversed.
My goal is to have mail that goes to user@thisdomain.net to go to var/mail/user
and user@thatdomain.net to go to var/mail/user0. This is just a stepping stone to the goal of having multiple domains on one sendmail server. And allowing the domains to have duplicate users. I was even thinking of doing a sendmail config that would send the mail that goes to user@thisdomain.net to
a file in var/mail/thisdomain/user , and mail to go to user@thatdomain.net to go to a file in var/mail/thatdomain/user. What is a real soloution here?
5 REPLIES 5
someone_4
Honored Contributor

Re: virtusertable , genericstable .. sendmail

I am running sendmail 8.9.3
someone_4
Honored Contributor

Re: virtusertable , genericstable .. sendmail

To make my dbm table i used
/usr/sbin/makemap dbm /etc/mail/virtusertable < /etc/mail/virtusertable
and
/usr/sbin/makedbm /etc/mail/virtusertable < /etc/mail/virtusertable

Dave Kelly_1
Respected Contributor

Re: virtusertable , genericstable .. sendmail

This is from the qpopper FAQ:

----------------------
Does Qpopper support virtual domains?
Virtual domains are not currently supported by qpopper, but you can handle them by configuring your MTA (e.g., Sendmail) to map, say, joe@domain1 to user23, and joe@domain2 to user89 (or whatever). Then you tell Joe #1 that his email address is joe@domain1.x.y and his POP user name is user23, and Joe #2 that his email address is joe@domain2.x.y and his POP user name is user89.

------------------
Dave Kelly_1
Respected Contributor

Re: virtusertable , genericstable .. sendmail

You mayhave already seen this but there is a description on virtual hosting at:

http://www.sendmail.org/virtual-hosting.html

To answer your question regarding location of delivery directories, this comes from the sendmail FAQ:

Subject: Q4.3 -- How can I get sendmail to deliver local mail to $HOME/.mail instead of into /usr/spool/mail (or /usr/mail)?
Date: July 9, 1996
Updated: January 7, 1999
Again, this is a local mailer issue, not a sendmail issue. Either modify your local mailer (source code will be required) or change the program called in the "local" mailer configuration description to be a new program that does this local delivery. One program that is capable of doing this is procmail (see Q4.9), although there are probably many others as well.

someone_4
Honored Contributor

Re: virtusertable , genericstable .. sendmail

That is right. That is what I am trying to do.
I have the virtusertable set up to send mail:
user@domain1.net user
user@domain2.net user0
-----------
but I think I made my table wrong.
I am still working on it