From owner-freebsd-net Sun Aug 5 12:46:45 2001 Delivered-To: freebsd-net@freebsd.org Received: from kanga.int (c1717606-a.sprgfld1.mo.home.com [65.6.246.57]) by hub.freebsd.org (Postfix) with ESMTP id B057237B403 for ; Sun, 5 Aug 2001 12:46:36 -0700 (PDT) (envelope-from kirk@strauser.com) Received: from pooh.int (pooh.int [10.0.1.2]) by kanga.int (8.11.5/8.11.5) with ESMTP id f75Jkag84386 for ; Sun, 5 Aug 2001 14:46:36 -0500 (CDT) (envelope-from kirk@strauser.com) Received: from kirk by pooh.int with local (Exim 3.22 #1 (Debian)) id 15TTqk-0007g1-00 for ; Sun, 05 Aug 2001 14:46:10 -0500 To: freebsd-net@freebsd.org Subject: Can't get sendmail to masquerade From: Kirk Strauser Date: 05 Aug 2001 14:46:10 -0500 Message-ID: <874rrm1e9p.fsf@pooh.int> Lines: 95 X-Mailer: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I'm using sendmail 8.11.5 on a FreeBSD-STABLE (4.4-PRERELEASE) system. I use the `.int' domain for hosts on my LAN, and the domain `strauser.com' for mail to and from all hosts. My mailserver/gateway/etc., the forementioned FreeBSD server, is named `kanga.int'. I thought that getting email running would be trivial - I only needed to set the `MASQUERADE_AS' entry to the default freebsd.mc file. Here is my entire kanga.int.mc file minus the BSD comments at the top: ############################## divert(0) VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.10.2.11 2001/07/14 18:07:27 gshapiro Exp $') OSTYPE(freebsd4) DOMAIN(generic) MASQUERADE_AS(strauser.com) FEATURE(access_db, `hash -o /etc/mail/access') FEATURE(blacklist_recipients) FEATURE(local_lmtp) FEATURE(mailertable, `hash -o /etc/mail/mailertable') dnl FEATURE(relay_based_on_MX) FEATURE(virtusertable, `hash -o /etc/mail/virtusertable') dnl Uncomment to activate Realtime Blackhole List dnl information available at http://www.mail-abuse.com/ dnl NOTE: This is a subscription service as of July 31, 2001 dnl FEATURE(dnsbl) dnl Alternatively, you can provide your own rejection message for the RBL: dnl FEATURE(dnsbl, `blackholes.mail-abuse.org', `"550 Mail from " $&{client_addr} " rejected, see http://mail-abuse.org/cgi-bin/lookup?" $&{client_addr}') dnl Other DNS based black hole lists dnl -------------------------------- dnl MAPS Relay Spam Stopper (RSS): http://mail-abuse.org/rss/ dnl NOTE: This is a subscription service as of July 31, 2001 dnl FEATURE(dnsbl, `relays.mail-abuse.org', `"550 Mail from " $&{client_addr} " rejected; see http://mail-abuse.org/cgi-bin/nph-rss?" $&{client_addr}') dnl MAPS Dial-up User List (DUL): http://maps.vix.com/dul/ dnl NOTE: This is a subscription service as of July 31, 2001 dnl FEATURE(dnsbl, `dialups.mail-abuse.org', `"550 Mail from dial-up rejected; see http://mail-abuse.org/dul/enduser.htm"') dnl Dialup users should uncomment and define this appropriately dnl define(`SMART_HOST', `your.isp.mail.server') dnl Uncomment the first line to change the location of the default dnl /etc/mail/local-host-names and comment out the second line. dnl define(`confCW_FILE', `-o /etc/mail/sendmail.cw') define(`confCW_FILE', `-o /etc/mail/local-host-names') dnl Uncomment both of the following lines to listen on IPv6 as well as IPv4 dnl DAEMON_OPTIONS(`Name=IPv4, Family=inet') dnl DAEMON_OPTIONS(`Name=IPv6, Family=inet6') define(`confMAX_MIME_HEADER_LENGTH', `256/128') define(`confNO_RCPT_ACTION', `add-to-undisclosed') define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy') MAILER(local) MAILER(smtp) ############################## To keep from introducing my own errors, I leaned on the /etc/mail/Makefile to compile my kanga.int.mc to kanga.int.cf, which I then installed as freebsd.cf, and then restarted sendmail with `make restart'. My problem is that, even though I defined the masquerading feature, if I type: echo 'test' | sendmail -froot@kanga.int kirk@strauser.com I still get this in /var/log/maillog: Aug 5 14:36:17 kanga sendmail[83841]: f75JaHH83841: from=root@kanga.int, size=5, class=0, nrcpts=1, msgid=<200108051936.f75JaHH83841@kanga.int>, relay=root@localhost Aug 5 14:36:18 kanga sendmail[83843]: f75JaHH83841: to=kirk@strauser.com, ctladdr=root@kanga.int (0/0), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=30005, relay=ds9.honeypot.net. [207.150.30.101], dsn=5.6.0, stat=Data format error Aug 5 14:36:18 kanga sendmail[83843]: f75JaHH83841: f75JaIG83843: DSN: Data format error Aug 5 14:36:19 kanga sendmail[83843]: f75JaIG83843: to=kirk@strauser.com, delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=30105, relay=ds9.honeypot.net., dsn=2.0.0, stat=Sent (f75JZsR32315 Message accepted for delivery) And a bounce message with the following contents: ----- The following addresses had permanent fatal errors ----- kirk@strauser.com (reason: 501 5.1.8 ... Domain of sender address root@kanga.int does not exist) ----- Transcript of session follows ----- ... while talking to ds9.honeypot.net.: >>> MAIL From: SIZE=5 <<< 501 5.1.8 ... Domain of sender address root@kanga.int does not exist 501 5.6.0 kirk@strauser.com... Data format error Reporting-MTA: dns; kanga.honeypot.net Arrival-Date: Sun, 5 Aug 2001 14:13:28 -0500 (CDT) Note that I get the same problem if I define FEATURE(`masquerade_envelope'). Any suggestions or troubleshooting advice? -- Kirk Strauser To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message