From owner-freebsd-questions Fri Mar 22 11:58:32 2002 Delivered-To: freebsd-questions@freebsd.org Received: from linuxmail.touchtunes.com (operator.touchtunes.com [216.94.139.201]) by hub.freebsd.org (Postfix) with ESMTP id A610A37B428 for ; Fri, 22 Mar 2002 11:57:58 -0800 (PST) Received: from sunder.touchtunes.com (sunder.touchtunes.com [192.168.0.26]) by linuxmail.touchtunes.com (8.9.3/8.8.7) with ESMTP id OAA04177; Fri, 22 Mar 2002 14:58:12 -0500 Received: (from dinjo@localhost) by sunder.touchtunes.com (8.11.6/8.11.6) id g2MJvgC52944; Fri, 22 Mar 2002 14:57:42 -0500 (EST) (envelope-from dinjo) Date: Fri, 22 Mar 2002 14:57:42 -0500 From: Joel Dinel To: weiwuzhang@263.net Cc: freebsd-questions@FreeBSD.ORG Subject: Re: config mail client Message-ID: <20020322145742.A52883@sunder.touchtunes.com> Mail-Followup-To: Joel Dinel , weiwuzhang@263.net, freebsd-questions@FreeBSD.ORG References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from weiwuzhang@hotmail.com on Sat, Mar 23, 2002 at 03:50:00AM +0800 X-Useless-Header: Look ma, it's a # sign! X-Operating-System: FreeBSD 4.5-STABLE i386 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 On Sat, Mar 23, 2002 at 03:50:00AM +0800, Zhang Weiwu wrote: > But how to config my BSD system so > that when I send a mail using 'mail' it knows which smtp server to use and > which pop3 server to check for incoming mails? If it takes steps to do it ---end quoted text--- The 'mail' command will use the local MTA (Mail Transfert Agent) to send your mail. In this case, the default is Sendmail. To get sendmail to send its mail to your ISP's SMTP server, edit /etc/mail/sendmail.cf, and find this line : # "Smart" relay host (may be null) DS Modify the second line to read : DSyourISPmailserver.somedomain.com Restart sendmail with the command 'kill -HUP PID' where PID is the process ID of sendmail. You can find that out with the command 'ps caux | grep sendmail'. Sendmail will not fetch your POP3 mail. That's not its job. You'll need 'procmail' for that. It's in the ports tree. You can mail me if you need more info on ports tree, or configuring procmail. -- Joel Dinel System Administrator TouchTunes Digital Jukebox, Inc. GnuPG key : http://lysander.mine.nu/~kint/mykey.asc To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message