From owner-freebsd-questions@FreeBSD.ORG Sun Aug 17 02:35:49 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 A9BAF37B401 for ; Sun, 17 Aug 2003 02:35:49 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id EDF3D43F93 for ; Sun, 17 Aug 2003 02:35:47 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) h7H9ZeC7021683 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 17 Aug 2003 10:35:43 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)h7H9ZehM021682; Sun, 17 Aug 2003 10:35:40 +0100 (BST) (envelope-from matthew) Date: Sun, 17 Aug 2003 10:35:40 +0100 From: Matthew Seaman To: Doug Hardie Message-ID: <20030817093540.GA21327@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Doug Hardie , FreeBSD-Questions References: <20030809123004.GB25642@happy-idiot-talk.infracaninophile.co.uk> <17F91460-D04B-11D7-8AA3-000393681B06@lafn.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="yrj/dFKFPuw6o+aM" Content-Disposition: inline In-Reply-To: <17F91460-D04B-11D7-8AA3-000393681B06@lafn.org> User-Agent: Mutt/1.5.4i X-Spam-Status: No, hits=-8.3 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 Subject: Re: Sendmail address rewriting 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, 17 Aug 2003 09:35:50 -0000 --yrj/dFKFPuw6o+aM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Aug 16, 2003 at 05:38:17PM -0700, Doug Hardie wrote: > I have what is most likely a simple misunderstanding of the sendmail.cf= =20 > file configuration. But, nothing I have tried works. Basically I have= =20 > one machine (zoon) which is the mail host for all received mail. All=20 > user mailboxes are on that machine and it is the host identified in the= =20 > MX records. I have the send mail server on zoot. When a message is=20 > sent out without a domain in the to address, zoot is filling it in with= =20 > zoot.lafn.org which makes the reply functions useless. Zoot does not=20 > accept incoming mail. How do I get zoot's sendmail to use the domain=20 > lafn.org in these cases? Hmmm... How exactly are you sending the test e-mails? There are two circumstances where the masquerading setup you've configured below won't be applied: i) Messages sent by root or any other user in class {E} -- however, you've already put root into class {L} -- local users, so you wouldn't use that account for testing masquerading anyhow. ii) Unqualified names (ie. without an @... part) given as the 'From' address. Try adding: FEATURE(`always_add_domain')dnl mail(1) just uses your login ID as the originating address, and it expects the local MTA to fill in any missing information. Other mailers generally have options to let you choose the e-mail address you use to send from. However, sendmail will generally qualify any names with the local domain when relaying to another machine. Aha! You're using LOCAL_RELAY --- try changing that to MAIL_HUB. You may or may not need 'always_add_domain' with that -- you'll have to experiment a bit. =20 > Here is zoot's mc file >=20 >=20 > VERSIONID(`$Id: ZOOT.mc,v 1.1 2000/05/31 22:21:02 gshapiro Exp $') > OSTYPE(bsd4.4)dnl > DOMAIN(generic)dnl >=20 > dnl set SASL options > TRUST_AUTH_MECH(`GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN')dnl > define(`confAUTH_MECHANISMS', `GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN')dnl > define(`confDEF_AUTH_INFO', `/etc/mail/auth-info')dnl >=20 > MASQUERADE_AS(`lafn.org')dnl > MASQUERADE_DOMAIN(`lafn.org')dnl > FEATURE(`masquerade_entire_domain')dnl > FEATURE(`masquerade_envelope')dnl > FEATURE(`relay_entire_domain')dnl >=20 > FEATURE(`access_db', `hash -T /etc/mail/access')dnl > FEATURE(`virtusertable', `hash -T /etc/mail/virtusers')dnl > FEATURE(`delay_checks', `friend')dnl > FEATURE(`no_default_msa')dnl > FEATURE(`use_ct_file')dnl > define(`confBIND_OPTS', `WorkAroundBrokenAAAA')dnl > define(`confTO_QUEUERETURN',`3d')dnl > define(`confTO_QUEUEWARN',`5d')dnl > define(`LOCAL_RELAY',`mail.lafn.org')dnl > LOCAL_USER(`root')dnl >=20 > MODIFY_MAILER_FLAGS(`LOCAL', `+S')dnl >=20 > MAILER(local)dnl > MAILER(smtp)dnl 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 --yrj/dFKFPuw6o+aM Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE/P0xsdtESqEQa7a0RAnoAAJ0YfqdWO6qcSxhgNLQjhD3qAogReACeM0wF XLbeXxU9i7AiDswG1io4L00= =qX/R -----END PGP SIGNATURE----- --yrj/dFKFPuw6o+aM--