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 [EMAIL PROTECTED] [EMAIL PROTECTED]

I still get this in /var/log/maillog:

  Aug  5 14:36:17 kanga sendmail[83841]: f75JaHH83841: [EMAIL PROTECTED], size=5, 
class=0, nrcpts=1, msgid=<[EMAIL PROTECTED]>, relay=root@localhost
  Aug  5 14:36:18 kanga sendmail[83843]: f75JaHH83841: [EMAIL PROTECTED], 
[EMAIL PROTECTED] (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: [EMAIL PROTECTED], 
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 -----
    [EMAIL PROTECTED]
        (reason: 501 5.1.8 <[EMAIL PROTECTED]>... Domain of sender address [EMAIL PROTECTED] 
does not exist)

       ----- Transcript of session follows -----
    ... while talking to ds9.honeypot.net.:
    >>> MAIL From:<[EMAIL PROTECTED]> SIZE=5
    <<< 501 5.1.8 <[EMAIL PROTECTED]>... Domain of sender address [EMAIL PROTECTED] does not 
exist
    501 5.6.0 [EMAIL PROTECTED] 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 [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message

Reply via email to