Date: 30 Nov 2001 12:23:09 +0000 From: Wayne Pascoe <freebsd@molemanarmy.com> To: "Patrick O'Reilly" <patrick@mip.co.za> Cc: FreeBSD Question List <freebsd-questions@freebsd.org> Subject: Re: Sendmail Domains Message-ID: <863d2wbg7m.fsf@pan.ehsrealtime.com> In-Reply-To: <NDBBIMKICMDGDMNOOCAIGEGEEAAA.patrick@mip.co.za> References: <NDBBIMKICMDGDMNOOCAIGEGEEAAA.patrick@mip.co.za>
next in thread | previous in thread | raw e-mail | index | archive | help
"Patrick O'Reilly" <patrick@mip.co.za> writes:
> Hi all.
>
> I admit up front that I am taking the quick route here - asking before
> doing a detailed RTFM. I've just been thrown a job to do and the system
> MUST BE RUNNING on Monday - you know how it goes! :(
>
> I'm running a few sendmail mail servers, so I'm reasonably familiar with
> the basics of sendmail.
>
> But, now I need to configure a mail server with sendmail to host mail
> for multiple domains. The part that bothers me is what happens when I
> want to create an account for patrick@dom2.com when there is already a
> patrick@dom2.com. These must be _separate_ accounts. But, using email
> accounts based on users in /etc/passwd will obviously not handle this
> correctly. I recall mention of virtual user tables in connection with
> sendmail. Is that the solution to my problem, or what.
Ew. What fun.
The problem here is having unique mailboxes, I take it ?
ie patrick@dom1.com goes to a different mailbox than patrick@dom2.com
?
Doing this can be done easily with virtusertable. You add
patrick@dom1.com: localusername
If I remember right (It's been a while).
The problem is what do you name the local user? Creating the account
user.domain.com will often run into username length constraints.
What I've found to be a nice solution (and probably won't help you in
this case with a monday deadline, but might be nice for the future) is
exim with vmail-sql.
It stores all user details in a MySQL database and deliveries are done
by looking up the domain, and then the local part in the mysql
database. Users then login to fetch mail (with tpop3d) with their
e-mail address as their username and their assigned password. It's a
nice clean solution from what I've seen of using it so far.
HTH.
--
- Wayne Pascoe
| You know, it's simply not true that
freebsd@molemanarmy.com | wars never settle anything - James Burnham
http://www.molemanarmy.com |
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?863d2wbg7m.fsf>
