From owner-freebsd-questions@FreeBSD.ORG Wed Aug 13 08:05:11 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 6A5BB37B401 for ; Wed, 13 Aug 2003 08:05:11 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id D75E043FBF for ; Wed, 13 Aug 2003 08:05:09 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) h7DF4fKo047720 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 13 Aug 2003 16:04:59 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)h7DF4f0T047719; Wed, 13 Aug 2003 16:04:41 +0100 (BST) (envelope-from matthew) Date: Wed, 13 Aug 2003 16:04:40 +0100 From: Matthew Seaman To: Scott Mitchell Message-ID: <20030813150440.GA91996@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Scott Mitchell , freebsd-questions@freebsd.org References: <5.2.0.9.1.20030812180445.0196f180@postamt1.charite.de> <20030812184703.GC14078@devil.stderror.at> <20030813082021.GA31320@llama.fishballoon.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vtzGhvizbBRQ85DL" Content-Disposition: inline In-Reply-To: <20030813082021.GA31320@llama.fishballoon.org> User-Agent: Mutt/1.5.4i X-Spam-Status: No, hits=-8.4 required=5.0 tests=AWL,EMAIL_ATTRIBUTION,IN_REP_TO,PGP_SIGNATURE_2, QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES, USER_AGENT_MUTT autolearn=ham version=2.55 X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: freebsd-questions@freebsd.org Subject: Re: How to send a PR without send-pr? 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: Wed, 13 Aug 2003 15:05:11 -0000 --vtzGhvizbBRQ85DL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Aug 13, 2003 at 09:20:21AM +0100, Scott Mitchell wrote: > On Tue, Aug 12, 2003 at 08:47:03PM +0200, Toni Schmidbauer wrote: > >=20 > > trying to answer q2 because q1 was too complicated :-) > >=20 > > edit /etc/mail/submit.cf and change > >=20 > > D{MTAHost}[localhost]=20 > >=20 > > to > >=20 > > D{MTAHost}[] > >=20 > > restart sendmail. this is untested, so let me know if it works > > for you. > >=20 > > because relaying over is only permitted > > after a successfull pop login, use fetchmail just before sending > > the mail: > >=20 > > fetchmail -c -p pop3 -u >=20 > Possibly easier to edit /etc/mail/freebsd.submit.mc. Change the last lin= e: >=20 > FEATURE(`msp', `[127.0.0.1]')dnl >=20 > to >=20 > FEATURE(`msp', `your.mail.server')dnl >=20 > Then run 'make all install' in /etc/mail. This has exactly the same effe= ct > as Toni's solution, but I find the .mc far easier to read than the .cf th= at > is generated from it, plus this approach will survive an installworld - t= hat > runs make in /etc/mail, which will re-generate your submit.cf. Verb. Sap. The [square brackets] have a function other than indicating the argument is an IP number. What they do is tell sendmail to ignore any MX records set up for the server, and just send direct. That tends to be something you want for this sort of function, as otherwise you may well end up trying to inject messages into the system via the external mail server. Thus: FEATURE(`msp', `[your.mail.server]')dnl The fact that [square brackets] are commonly used around IP numbers quoted directly in the sendmail configuration is principally because no one generally sets up MX records for IP addresses, so it's pretty pointless trying to look them up. 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 --vtzGhvizbBRQ85DL Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE/OlOIdtESqEQa7a0RApwOAKCURLeHA50B7K7BQIkTBznfIx36bQCfWAWk rvo+4UFlUAjKaq1azpbYu6Q= =VEGM -----END PGP SIGNATURE----- --vtzGhvizbBRQ85DL--