From owner-freebsd-questions Wed May 8 15:48: 2 2002 Delivered-To: freebsd-questions@freebsd.org Received: from a96180.upc-a.chello.nl (a96180.upc-a.chello.nl [62.163.96.180]) by hub.freebsd.org (Postfix) with ESMTP id 46A3737B40F for ; Wed, 8 May 2002 15:47:50 -0700 (PDT) Received: by a96180.upc-a.chello.nl (Postfix, from userid 1004) id 2EE282171; Thu, 9 May 2002 00:47:48 +0200 (CEST) Date: Thu, 9 May 2002 00:47:48 +0200 From: Munish Chopra To: freebsd-questions@freebsd.org Subject: Sendmail masquerades (again) Message-ID: <20020508224748.GA97121@daemon.chronias.ninth-circle.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 Well the masquerades are still troubling me. When trying to send mail to -hackers/-current, I get the following in my log: May 8 18:34:08 dhcppc1 sendmail[43659]: g48MY7YS043659: to=current@FreeBSD.ORG, ctladdr=mchopra@engmail.uwaterloo.ca (1001/1001), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=30820, relay=localhost [127.0.0.1], dsn=2.0.0, stat=Sent (g48MY8jA043660 Message accepted for delivery) May 8 18:34:21 dhcppc1 sm-mta[43662]: g48MY8jA043660: to=, delay=00:00:13, xdelay=00:00:13, mailer=esmtp, pri=31064, relay=hub.freebsd.org. [216.136.204.18], dsn=4.2.0, stat=Deferred: 450 : Helo command rejected: Host not found So it's accepted for delivery, then deferred because of a hostname check? (just trying to make sure I understand the messages correctly) To get the masquerade going, I did the following: MASQUERADE_AS(`rogers.com') FEATURE(`masquerade_envelope') FEATURE(`allmasquerade') ...all added to the freebsd.mc file (which was renamed arcadia.mc). cd /usr/share/sendmail/cf/cf (dumped mc file here) m4 /usr/share/sendmail/cf/m4/cf.m4 arcadia.mc > /etc/mail/sendmail.cf killall -HUP sendmail Then, upon a suggestion from someone on this list, I added this to my .muttrc: my_hdr From: Your Name set envelope_from=yes set use_from This worked fine for most things, but still leaves me unable to send mail to the freebsd lists. It also screws up my nightly reports mailed to root (the come in with the subject line 'Returned Mail...'. So, could someone explain to me what's going on and what I'm doing wrong? I believe a while back when I had to masquerade this machine I had everything going fine without the need to add those three lines to my .muttrc - I'd like to get back to that but unfortunately I never wrote down what I did (back in the super newbie days). I'd really appreciate any help. Thanks. -- -Munish To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message