From owner-freebsd-hackers Sat Jul 31 18:35:49 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from smtp02.teb1.iconnet.net (smtp02.teb1.iconnet.net [209.3.218.43]) by hub.freebsd.org (Postfix) with ESMTP id 0170914E7B for ; Sat, 31 Jul 1999 18:35:45 -0700 (PDT) (envelope-from babkin@bellatlantic.net) Received: from bellatlantic.net (client-117-159.bellatlantic.net [151.198.117.159]) by smtp02.teb1.iconnet.net (8.9.1/8.9.1) with ESMTP id VAA19603; Sat, 31 Jul 1999 21:35:35 -0400 (EDT) Message-ID: <37A3A526.253BAD94@bellatlantic.net> Date: Sat, 31 Jul 1999 21:38:46 -0400 From: Sergey Babkin X-Mailer: Mozilla 4.07 [en] (X11; I; FreeBSD 3.0-980222-SNAP i386) MIME-Version: 1.0 To: tarkhil@asteroid.svib.ru Cc: hackers@FreeBSD.ORG Subject: Re: Solution for mail pseudo-users? References: <199907311433.SAA30363@shuttle.svib.ru> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Alex Povolotsky wrote: > > <37A30852.20E5A7AF@bellatlantic.net>Sergey Babkin writes: > >> Any suggestions, anyone? > > > >Modify the POP daemon to use your mySQL database in addition to getpwent ? > >That seems to be the easiest way that should not break anything else. > > And modify sendmail to throw off mail for nonexistent users? You can unload the user list from mySQL into a Berkeley db file and modify /etc/sendmail.cf to route the mail for the users listed in this file to a special delivery agent. And this special delivery agent would be a quite straightforward modification of /usr/libexec/mail.local. A variation of this would be to modify mail.local to add the data from mySQL database to getpwent, just like POP3 does, and instruct sendmail to process the mail for the extra users by mail.local. -SB To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message