From owner-freebsd-questions Fri Nov 30 20: 3:56 2001 Delivered-To: freebsd-questions@freebsd.org Received: from khi.comsats.net.pk (khi.comsats.net.pk [210.56.4.10]) by hub.freebsd.org (Postfix) with ESMTP id 7ADE337B416 for ; Fri, 30 Nov 2001 20:03:50 -0800 (PST) Received: from company.mail (ppp7-078khi.comsats.net.pk [210.56.7.78]) by khi.comsats.net.pk (8.11.4/8.11.4) with ESMTP id fB142F520435 for ; Sat, 1 Dec 2001 09:02:15 +0500 (PKT) Received: from ahsanalikh [192.168.0.1] by company.mail [192.168.0.1] with SMTP (MDaemon.PRO.v4.0.5.T) for ; Sat, 01 Dec 2001 09:02:39 +0500 Message-ID: <00be01c17a1d$0493a630$0100a8c0@ahsanalikh> From: "Ahsan Ali" To: "FreeBSD Question List" References: <20011201022554.GA61990@boethius.telocity.com> Subject: Re: Sendmail Domains Date: Sat, 1 Dec 2001 09:02:38 +0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-MDRemoteIP: 192.168.0.1 X-Return-Path: ahsan@khi.comsats.net.pk X-MDaemon-Deliver-To: freebsd-questions@FreeBSD.ORG Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I think what he means is that if he is hosting dom1.com and has a user patrick there [patrick@dom1.com] then when he adds dom2.com as a virtual domain, he cant add [patrick@dom2.com] because there is only one password file and you cant add the same user to the system twice. The way around this Patrick, with Sendmail, is to use Virtual Domains with all their mail ending up in a single mailbox. This way, all mail for dom2.com can go into a single box from where it can be popped and then redistributed on another mail server. Its not a perfect solution (BCC mail may not reach the intended BCC recepient etc) but it works for the most part. The way to do it is, add "@dom2.com dom2" in /etc/mail/virtusertable then "cd /etc/mail/virtusertable; makemap hash virtusertable < virtusertable" also, you may need to add "dom2.com" to /etc/mail/sendmail.cw so that sendmail knows it needs to collect mail for that domain. Now all mail for dom2.com will go into the mailbox dom2 - you can pop this account to get all mail for this domain. Not ideal if you want users to POP mail for this domain from your own mailserver only. -Ahsan ----- Original Message ----- From: "Anthony Kim" To: "Patrick O'Reilly" Cc: "FreeBSD Question List" Sent: Saturday, December 01, 2001 7:25 AM Subject: Re: Sendmail Domains > On Fri, Nov 30, 2001, Patrick O'Reilly wrote: > > > 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. > > This doesn't make any sense. Are you saying, there already exists a > local user named patrick, who does not receive mail as patrick@dom2.com. > Instead, some other user, wants to receive mail using the address > patrick@dom2.com ? > > Or, are you saying, patrick@dom2.com needs to go to 2 separate mailboxes? > > Did you read the sample files in FreeBSD:/etc/mail ? > Did the FAQ help you at www.sendmail.org ? > > Write back if you need more help. > -- > "Le motd juste." > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message