Package: sendmail-base
Version: 8.14.3-5+lenny1
Followup-For: Bug #483930

sendmailconfig(8) sets MASQUERADE_AS() on the mail name, but
FEATURE(nullclient) overrides the masquerade hostname by declaring
MASQUERADE_AS() itself.

It seems better to set MASQUERADE_AS() *after* FEATURE(nullclient), which
causes sendmail to masquerade as sendmailconfig(8) states.

--
input "Null client forward host" nullclient NONE;
 
if [ ! -z "$nullclient" ]; then
    echo "EXPOSED_USER(root uucp)dnl # users exempt from masquerading" >&3;
    echo "LOCAL_USER(root)dnl" >&3;
    echo "MASQUERADE_AS(\`$mailname')dnl" >&3;
    echo "FEATURE(\`allmasquerade')dnl" >&3;
    echo "FEATURE(\`masquerade_envelope')dnl" >&3;
    echo "FEATURE(\`nullclient', $nullclient)dnl" >&3;
    fi;
--

-- Package-specific info:
Ouput of /usr/share/bug/sendmail-base/script:

ls -alR /etc/mail:
/etc/mail:
total 280
drwxr-sr-x   7 smmta smmsp  4096 2010-10-04 17:25 .
drwxr-xr-x 108 root  root  12288 2010-10-04 17:20 ..
-rwxr-xr--   1 root  smmsp 10022 2010-10-04 17:25 Makefile
-rw-------   1 root  root   4261 2010-10-04 17:20 access
-rw-r-----   1 smmta smmsp 12288 2010-10-04 17:20 access.db
-rw-r--r--   1 root  root    281 2008-07-15 22:30 address.resolve
lrwxrwxrwx   1 root  smmsp    10 2009-12-23 14:14 aliases -> ../aliases
-rw-r-----   1 smmta smmsp 12288 2009-12-23 14:14 aliases.db
-rw-r--r--   1 root  smmsp   130 2010-10-04 17:09 authinfo
-rw-r-----   1 smmta smmsp 12288 2010-10-04 17:09 authinfo.db
-rw-r--r--   1 root  smmsp  3246 2010-10-04 17:25 databases
-rw-r--r--   1 root  root   5657 2008-07-15 22:31 helpfile
-rw-r--r--   1 root  smmsp    41 2009-12-23 14:14 local-host-names
drwxr-sr-x   2 smmta smmsp  4096 2009-12-23 14:14 m4
drwxr-xr-x   2 root  root   4096 2010-02-02 18:43 peers
drwxr-xr-x   2 root  smmsp  4096 2008-07-15 22:29 sasl
-rw-r--r--   1 root  smmsp 64957 2010-10-04 17:25 sendmail.cf
-rw-r--r--   1 root  smmsp   442 2010-10-04 17:25 sendmail.cf.errors
-rw-r--r--   1 root  root  12236 2010-10-04 17:20 sendmail.conf
-rw-r--r--   1 root  smmsp  4333 2010-10-04 17:29 sendmail.mc
-rw-r--r--   1 root  smmsp  4329 2010-10-04 17:12 sendmail.mc.old
-rw-r--r--   1 root  smmsp  4333 2010-10-04 17:20 sendmail.mce
-rw-r--r--   1 root  root    149 2008-07-15 22:30 service.switch
-rw-r--r--   1 root  root    180 2008-07-15 22:30 service.switch-nodns
drwxr-sr-x   2 smmta smmsp  4096 2009-12-23 14:14 smrsh
-rw-r--r--   1 root  smmsp 44022 2010-10-04 17:20 submit.cf
-rw-r--r--   1 root  smmsp  2374 2010-10-04 17:20 submit.mc
drwxr-xr-x   2 smmta smmsp  4096 2009-12-23 14:14 tls
-rw-r--r--   1 root  smmsp     0 2009-12-23 14:14 trusted-users

/etc/mail/m4:
total 8
drwxr-sr-x 2 smmta smmsp 4096 2009-12-23 14:14 .
drwxr-sr-x 7 smmta smmsp 4096 2010-10-04 17:25 ..
-rw-r----- 1 root  smmsp    0 2009-12-23 14:14 dialup.m4
-rw-r----- 1 root  smmsp    0 2009-12-23 14:14 provider.m4

/etc/mail/peers:
total 12
drwxr-xr-x 2 root  root  4096 2010-02-02 18:43 .
drwxr-sr-x 7 smmta smmsp 4096 2010-10-04 17:25 ..
-rw-r--r-- 1 root  root   328 2008-07-15 22:30 provider

/etc/mail/sasl:
total 8
drwxr-xr-x 2 root  smmsp 4096 2008-07-15 22:29 .
drwxr-sr-x 7 smmta smmsp 4096 2010-10-04 17:25 ..

/etc/mail/smrsh:
total 8
drwxr-sr-x 2 smmta smmsp 4096 2009-12-23 14:14 .
drwxr-sr-x 7 smmta smmsp 4096 2010-10-04 17:25 ..
lrwxrwxrwx 1 root  smmsp   26 2009-12-23 14:14 mail.local -> 
/usr/lib/sm.bin/mail.local
lrwxrwxrwx 1 root  smmsp   17 2009-12-23 14:14 procmail -> /usr/bin/procmail

/etc/mail/tls:
total 48
drwxr-xr-x 2 smmta smmsp 4096 2009-12-23 14:14 .
drwxr-sr-x 7 smmta smmsp 4096 2010-10-04 17:25 ..
-rw-r--r-- 1 root  root     7 2009-12-23 14:14 no_prompt
-rw------- 1 root  root  1191 2009-12-23 14:14 sendmail-client.cfg
-rw-r--r-- 1 root  smmsp 1310 2009-12-23 14:14 sendmail-client.crt
-rw------- 1 root  root  1054 2009-12-23 14:14 sendmail-client.csr
-rw-r----- 1 root  smmsp 1675 2009-12-23 14:14 sendmail-common.key
-rw-r----- 1 root  smmsp 1582 2009-12-23 14:14 sendmail-common.prm
-rw------- 1 root  root  1191 2009-12-23 14:14 sendmail-server.cfg
-rw-r--r-- 1 root  smmsp 1310 2009-12-23 14:14 sendmail-server.crt
-rw------- 1 root  root  1054 2009-12-23 14:14 sendmail-server.csr
-rwxr--r-- 1 root  root  3283 2010-10-04 17:20 starttls.m4

sendmail.conf:
DAEMON_NETMODE="Static";
DAEMON_NETIF="eth0";
DAEMON_MODE="Daemon";
DAEMON_PARMS="";
DAEMON_HOSTSTATS="No";
DAEMON_MAILSTATS="No";
QUEUE_MODE="${DAEMON_MODE}";
QUEUE_INTERVAL="10m";
QUEUE_PARMS="";
MSP_MODE="Cron";
MSP_INTERVAL="20m";
MSP_PARMS="";
MSP_MAILSTATS="${DAEMON_MAILSTATS}";
MISC_PARMS="";
CRON_MAILTO="root";
CRON_PARMS="";
LOG_CMDS="No";
HANDS_OFF="No";
AGE_DATA="";
DAEMON_RUNASUSER="No";
DAEMON_STATS="${DAEMON_MAILSTATS}";
MSP_STATS="${MSP_MAILSTATS}";


sendmail.mc:
divert(-1)dnl
divert(0)dnl
define(`_USE_ETC_MAIL_')dnl
include(`/usr/share/sendmail/cf/m4/cf.m4')dnl
VERSIONID(`$Id: sendmail.mc, v 8.14.3-5+lenny1 2010-01-29 14:02:50 cowboy Exp 
$')
OSTYPE(`debian')dnl
DOMAIN(`debian-mta')dnl
undefine(`confHOST_STATUS_DIRECTORY')dnl        #DAEMON_HOSTSTATS=
FEATURE(`no_default_msa')dnl
DAEMON_OPTIONS(`Family=inet,  Name=MTA-v4, Port=smtp, Addr=127.0.0.1')dnl
DAEMON_OPTIONS(`Family=inet,  Name=MSP-v4, Port=submission, M=Ea, 
Addr=127.0.0.1')dnl
define(`confPRIVACY_FLAGS',dnl
`needmailhelo,needexpnhelo,needvrfyhelo,restrictqrun,restrictexpand,nobodyreturn,authwarnings')dnl
define(`confCONNECTION_RATE_THROTTLE', `15')dnl
define(`confCONNECTION_RATE_WINDOW_SIZE',`10m')dnl
FEATURE(`use_cw_file')dnl
FEATURE(`access_db', , `skip')dnl
FEATURE(`greet_pause', `1000')dnl 1 seconds
FEATURE(`delay_checks', `friend', `n')dnl
define(`confBAD_RCPT_THROTTLE',`3')dnl
FEATURE(`conncontrol', `nodelay', `terminate')dnl
FEATURE(`ratecontrol', `nodelay', `terminate')dnl
include(`/etc/mail/m4/dialup.m4')dnl
include(`/etc/mail/m4/provider.m4')dnl
MAILER_DEFINITIONS
MAILER(`local')dnl
MAILER(`smtp')dnl
LOCAL_CONFIG
EXPOSED_USER(root uucp)dnl # users exempt from masquerading
LOCAL_USER(root)dnl
FEATURE(`allmasquerade')dnl
MASQUERADE_AS(`coral.lab.isis.example.com')dnl
FEATURE(`masquerade_envelope')dnl
FEATURE(`nullclient', relay.example.com)dnl
LOCAL_CONFIG

submit.mc...
divert(-1)dnl
divert(0)dnl
define(`_USE_ETC_MAIL_')dnl
include(`/usr/share/sendmail/cf/m4/cf.m4')dnl
VERSIONID(`$Id: submit.mc, v 8.14.3-5 2008-07-15 22:30:00 cowboy Exp $')
OSTYPE(`debian')dnl
DOMAIN(`debian-msp')dnl
FEATURE(`msp', `[127.0.0.1]', `25')dnl


-- System Information:
Debian Release: 5.0.6
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages sendmail-base depends on:
ii  adduser                  3.110           add and remove users and groups
ii  m4                       1.4.11-1        a macro processing language
ii  make                     3.81-5          The GNU version of the "make" util
ii  perl                     5.10.0-19lenny2 Larry Wall's Practical Extraction 

sendmail-base recommends no packages.

Versions of packages sendmail-base suggests:
ii  ca-certificates               20080809   Common CA certificates
pn  logcheck                      <none>     (no description available)
ii  logrotate                     3.7.1-5    Log rotation utility
pn  resolvconf                    <none>     (no description available)
pn  sendmail-doc                  <none>     (no description available)

Versions of packages sensible-mda depends on:
ii  libc6                    2.7-18lenny4    GNU C Library: Shared libraries
ii  procmail                 3.22-16         Versatile e-mail processor
ii  sendmail-bin [mail-trans 8.14.3-5+lenny1 powerful, efficient, and scalable 

-- no debconf information



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to