From owner-freebsd-net Sun Aug 5 15:17:25 2001 Delivered-To: freebsd-net@freebsd.org Received: from opensrs.saignon.net (216-120-17-31.dsl.cust.tfb.com [216.120.17.31]) by hub.freebsd.org (Postfix) with ESMTP id 4B45137B401 for ; Sun, 5 Aug 2001 15:17:18 -0700 (PDT) (envelope-from tony@saignon.net) Received: from tsaignmobl (216-120-17-17.dsl.cust.tfb.com [216.120.17.17]) by opensrs.saignon.net (8.11.4/8.11.3) with SMTP id f75MGsd02541; Sun, 5 Aug 2001 15:16:54 -0700 (PDT) (envelope-from tony@saignon.net) From: Tony Saign To: "'Kirk Strauser'" , Subject: RE: Can't get sendmail to masquerade Date: Sun, 5 Aug 2001 15:16:48 -0700 Message-ID: <000001c11dfc$529057c0$fcffa8c0@tsaignmobl> X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2911.0) Importance: Normal In-Reply-To: <874rrm1e9p.fsf@pooh.int> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 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 You need the below line in your .mc file; FEATURE(domaintable, `hash -o /etc/mail/domaintable') the file domaintable would include 1 line; kanga.int.strauser.com strauser.com That should take care of it... -Tony * -----Original Message----- * From: owner-freebsd-net@freebsd.org * [mailto:owner-freebsd-net@freebsd.org]On Behalf Of Kirk Strauser * Sent: Sunday, August 05, 2001 12:46 PM * To: freebsd-net@freebsd.org * Subject: Can't get sendmail to masquerade * * * 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 * To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message