From owner-freebsd-questions Thu Jan 13 5:37: 9 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mx2.x-treme.gr (mx2.x-treme.gr [212.120.192.15]) by hub.freebsd.org (Postfix) with ESMTP id 7A2C215563 for ; Thu, 13 Jan 2000 05:37:02 -0800 (PST) (envelope-from keramida@diogenis.ceid.upatras.gr) Received: from hades.hell.gr (pat41.x-treme.gr [212.120.197.233]) by mx2.x-treme.gr (8.9.3/8.9.3/IPNG-ADV-ANTISPAM-0.1) with ESMTP id PAA23416; Thu, 13 Jan 2000 15:36:57 +0200 Received: (from charon@localhost) by hades.hell.gr (8.9.3/8.9.3) id PAA02852; Thu, 13 Jan 2000 15:05:14 +0200 (EET) (envelope-from keramida@diogenis.ceid.upatras.gr) Date: Thu, 13 Jan 2000 15:05:14 +0200 From: Giorgos Keramidas To: Sie LAW Cc: freebsd-questions@freebsd.org Subject: Re: Sendmail problem Message-ID: <20000113150514.B2590@hades.hell.gr> Reply-To: keramida@ceid.upatras.gr References: <20000112080511.23320.qmail@web3304.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3i In-Reply-To: <20000112080511.23320.qmail@web3304.mail.yahoo.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Jan 12, 2000 at 12:05:11AM -0800, Sie LAW wrote: > Hi, > > I am having problem trying to use sendmail program to send email from > my FreeBSD PC to internet through a SMTP proxy. Can anyone help me as > in how to configure my sendmail to use my SMTP proxy. You can find a lot of information on relaying mail through your ISP's smtp server in the handbook and the faq. Start at the "Electronic Mail : FAQ" section: [ http://www.freebsd.org/handbook/mailfaq.html ] The basic setup, which I repeated for a machine in one of my friends home is roughly equivalent to: # cd /usr/src/etc/sendmail/ # cp freebsd.mc localhost.mc Then edit localhost.mc to suit your needs[1]. While editing the .mc file, you will find a lot of valuable information in the file /usr/src/contrib/sendmail/cf/README After you have edited localhost.mc, execute (still as a superuser): # make localhost.cf # cd /usr/obj/usr/src/etc/sendmail # cp -f localhost.cf /etc/sendmail.cf Pay special attention to the define(`SMART_HOST',`mail.isp.com')dnl statement. You should replace mail.isp.com with your ISP's mail gateway. [1] This step is not so easy as it sounds, if you start from scratch. Luckily `freebsd.mc' contains all the essential parts. Minor changes are required, and you're ready to go :) -- Giorgos Keramidas, < keramida @ ceid . upatras . gr > "What we have to learn to do, we learn by doing." [Aristotle] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message