From owner-freebsd-questions@FreeBSD.ORG Sun Mar 30 10:43:35 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3725537B401 for ; Sun, 30 Mar 2003 10:43:35 -0800 (PST) Received: from mired.org (ip68-97-54-220.ok.ok.cox.net [68.97.54.220]) by mx1.FreeBSD.org (Postfix) with SMTP id 090CE43F85 for ; Sun, 30 Mar 2003 10:43:34 -0800 (PST) (envelope-from mwm-dated-1049481813.2ea41e@mired.org) Received: (qmail 29762 invoked from network); 30 Mar 2003 18:43:33 -0000 Received: from localhost.mired.org (HELO guru.mired.org) (127.0.0.1) by localhost.mired.org with SMTP; 30 Mar 2003 18:43:33 -0000 Received: by guru.mired.org (tmda-inject, from uid 100); Sun, 30 Mar 2003 12:43:33 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16007.15060.172394.868917@guru.mired.org> Date: Sun, 30 Mar 2003 12:43:31 -0600 To: "DJ Boris" In-Reply-To: <003e01c2f6e1$b7ba2760$f6cd07c4@d> References: <003e01c2f6e1$b7ba2760$f6cd07c4@d> X-Mailer: VM 7.07 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ From: Mike Meyer X-Delivery-Agent: TMDA/0.73 (Jet Pilot) cc: freebsd-questions Subject: Re: general email question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Mar 2003 18:43:36 -0000 In <003e01c2f6e1$b7ba2760$f6cd07c4@d>, DJ Boris typed: > I need help. I have done quite a bit of reading but it is all just beating > around the bush.. or maybe I am missing something. > I have one ISP POP3 account (maildrop) with 5 aliases. I need to collect all > mail onto the local fbsd server mail server and sort it according to the > "To:" field so LAN users can collect mail from that server. I also want > users to be able to send mail to the LAN mail server and then the server has > to relay that mail to the ISP's SMTP. all this has to be done over a Dial-up > link. > the dial-up is up and running OK. > > as far as I understand I need fetchmail, sendmail, procmail, and some mail > server. am I right? Not quite. You don't need procmail, but it's handy to have around. You need a pop mail server. Sendmail will be your smtp mail server. > could someone point me to the right documentation or > examples on the internet OR if possible to explain to me what comes first > and how all the above components (fetchmail, sendmail, etc) come together > and possibly suggest what combination of software packages I should use. Personally, I don't use sendmail - it's massive overkill for job of being an smtp server. But it's very popular, already installed on FreeBSD, and you shouldn't have trouble getting help with it. Basically, the flow goes: mail arrives at your ISP's smtp server, which puts it where your POP server can get it. fetchmail picks up mail from the the pop server, and hands it to your local delivery agent. Procmail can do that for you, or Sendmail can do it. That needs to put the mail where your local POP mail server can find it. There are a lots of choices for that - just check out /usr/ports/mail/*pop*. I use qmail-pop3d, which comes in the qmail port, which is what I use instead of sendmail. Outbound is even simpler. Your users will tell their clients to deliver outgoing mail to your local SMTP server. Since you have(?) to use your ISP's SMTP server, you'll configure your sendmail to use that as a SMARTER_HOST. There were details on that here in the last couple of weeks. That will cause all outgoing mail to be sent to your ISP's SMTP server to be forwarded to the actual destination. I'd advise doing one direction at a time. Set up sendmail for local delivery by setting sendmail_enable="YES" in /etc/rc.conf. Check /etc/defaults/rc.conf for other sendmail flags you may want to set up. Then install the fetchmail port, and set that up to read mail from your ISP's POP server and deliver it to sendmail. Finally, choose a pop mail server and install that so you can read mail locally. If you have any questions about the individual steps, ask back here after you've checked the ports documentation and the handbook. Once that's done, all that's left is tweaking your sendmail config for to set the SMARTER_HOST stuff up. Check the archives of this list for information on how to do that. http://www.mired.org/consulting.html Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.