From owner-freebsd-questions@FreeBSD.ORG Sat Dec 20 02:26:53 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 B4FAD16A4CE for ; Sat, 20 Dec 2003 02:26:53 -0800 (PST) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id ABBEF43D50 for ; Sat, 20 Dec 2003 02:26:50 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) hBKAQeA7007625 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 20 Dec 2003 10:26:40 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id hBKAQbKp007620; Sat, 20 Dec 2003 10:26:37 GMT (envelope-from matthew) Date: Sat, 20 Dec 2003 10:26:37 +0000 From: Matthew Seaman To: zhangweiwu@realss.com Message-ID: <20031220102637.GB6942@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , zhangweiwu@realss.com, freebsd-questions@freebsd.org References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="3uo+9/B/ebqu+fSQ" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.5.1i X-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.60 X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on happy-idiot-talk.infracaninophile.co.uk cc: freebsd-questions@freebsd.org Subject: Re: why do I need sendmail 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: Sat, 20 Dec 2003 10:26:53 -0000 --3uo+9/B/ebqu+fSQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Dec 20, 2003 at 03:29:23PM +0800, Zhang Weiwu wrote: > Hello. Just to confirm: if I use dial-up connection on my laptop and use= =20 > the ISP's smtp server to send emails, I don't really need sendmail's most= =20 > functions, so it is safe to set 'sendmail=3D"NO"' in rc.conf without loos= ing=20 > local emails like "weekly run output", is it? If you're using something like Netscape or Evolution for your e-mail needs, then yes, you don't need an MTA on your local machine to do that. However, automatic e-mails from your system -- usually from the periodic(8) scripts -- do require sendmail(8) or equivalent. Note that you don't need to have sendmail listening on port 25 for incoming e-mail, but you do need sendmail to run occasionally to process outgoing messages in the mail queue. You can achieve that by: sendmail_enable=3D"NO" sendmail_msp_queue_enable=3D"YES" Now, the sendmail MSP (Mail Submission Process) needs to hand-off the e-mail to a MTA (Mail Transport Agent) -- you can either run an MTA process locally, or you can configure the MSP to deliver straight to your provider's smarthost. For the first, just add: sendmail_submit_enable=3D"YES" which will start up a sendmail process that listens on the loopback address only. For the second, you should create a slightly customized sendmail configuration, as follows: # cd /etc/mail # cp freebsd.submit.mc submit.mc # vi submit.mc (or whatever your favourite editor is) and change the last line from: FEATURE(`msp', `[127.0.0.1]')dnl to FEATURE(`msp', `smtp.yourprovider.net')dnl where smtp.yourprovider.net is the mail smarthost provided by your ISP. Then: # make # make install # make restart Note that these configurations will cause your system to dial-up every time you send an e-mail. If that's not acceptable to you, then you can generate a configuration that just queues up the mail and only attempts to deliver the next time that your link comes up. But that's a topic for another e-mail. =20 > I was told nowadays many spam filters only accept smtp server's email whe= n=20 > the smtp server is in the same domain as the sender's email address. So i= t=20 > seems I better not use the sendmail on my laptop to send emails in case= =20 > they are filtered. Should I? Thank you. That's not the case, and a server set up in that way would be breaking the SMTP standards. It's perfectly permissible to run e-mail for several different domains from the same server. What you do need to ensure is that your system and your e-mail address are appropriately registered in the DNS. Generally if you use the SMTP service from your provider, then this will not be a problem. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --3uo+9/B/ebqu+fSQ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/5CPddtESqEQa7a0RAiHMAJ0QO9/bLRGqeB7qWgbrk68GN7CjVwCcDzVt 2kcHkrY2ifmVXRSa6GPWYqs= =7RXK -----END PGP SIGNATURE----- --3uo+9/B/ebqu+fSQ--