From owner-freebsd-questions Thu May 17 23:19:23 2001 Delivered-To: freebsd-questions@freebsd.org Received: from tdl.com (pm4-16.tdl.com [206.180.234.16]) by hub.freebsd.org (Postfix) with ESMTP id 4E11237B423 for ; Thu, 17 May 2001 23:19:08 -0700 (PDT) (envelope-from wdr@tdl.com) Received: by tdl.com (8.11.1/8.11.1) id f4I6IRl34374; Thu, 17 May 2001 23:18:27 -0700 (PDT) (envelope-from wdr) Content-Type: text/plain; charset="iso-8859-1" From: William Richard Organization: William Richard & Associates Ltd To: david@banning.com, questions@FreeBSD.ORG Subject: Re: procmail newbie question Date: Thu, 17 May 2001 23:18:23 -0700 X-Mailer: KMail [version 1.2] References: <200105172321.f4HNLWM30134@d.tracker> In-Reply-To: <200105172321.f4HNLWM30134@d.tracker> MIME-Version: 1.0 Message-Id: <01051723182302.18315@saffron> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: X-Loop: FreeBSD.ORG On Thursday 17 May 2001 16:21, David Banning wrote: > My ISP holds my mailbox and I have a dialup connection > to the net. > > The mail sent has the same domain but all different sorts of > address names eg. david@skytrackercanada.com, john@skytrackercanada.com, > sales@skytrackercanada.com but they all go to one mailbox, > which is david@skytrackercanada.com > > I would like to load these to my machine with fetchmail or popclient, > and then separate them with procmail. I will assume that you have three separate POP accounts on the machine that handles mail for skytrackercanada.com. I will also assume that the names of those accounts are (david|john|sales)%skytrackercanada.com. I will further assume that you have an account on your FreeBSD machine, called "david", to whom you want e-mail for all these accounts delivered. Try this in your .fetchmailrc: poll pop3.mypophost.com protocol POP3 username david%skytrackercanada.com password mysekritpasswd is david poll pop3.mypophost.com protocol POP3 username john%skytrackercanada.com password johnssekritpasswd is david poll pop3.mypophost.com protocol POP3 username sales%skytrackercanada.com password salessekritpasswd is david Now, there are other documents elsewhere on the Internet saying how to get procmail procing your mail, and on how to write a procmail rule. Essentially you'll split them up using the TO_: macro and put them in separate mbox files. > By default all mail loaded through pop goes to the /var/mail/$USER > of the person who did the pop. I can tell popclient to send it elsewhere, > but where? Where does procmail want it? You have to pipe it to procmail. Sendmail will pipe it if you put a .forward file in ~david: "|exec /usr/local/bin/fetchmail" But I prefer to have Sendmail use FEATURE(local_procmail) in the .mc file. Then Sendmail will use procmail instead of mail.local to deliver mail on the local machine (while mail.local will just dump it into /var/user/$USER). If there is no .procmailrc, procmail will still DTRT and deliver to /var/mail. -- William Richard, Supervising Consultant William Richard & Associates Ltd -- The BSD Experts Tel: 925-480-2319 x1951 E-Mail: wdr@tdl.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message