This is the other part.  Again sorry for the confusion!

Maybe I misunderstood the question, but I think he only wanted to get the
daily security output mailed to a local system.  In that case, he wouldn't 
want to put that in his sendmail.cf, as it would send the mail out onto the 
internet.  Unless you trust the security of the mail services involved, 
you are exposing possible security weaknesses (which is what the daily
security mailing is) to the internet.  Using a "smart host" relay on 
machines behind the firewall is probably a good idea.  I have, however, had
problems with some perhaps overly paranoid mailservers rejecting mail when
using sendmail with a smart host.  The original header had the name of my
internal machine, which of course is fully UNqualified, and the mail was 
rejected on that basis.  I had to make modifications to my sendmail.cf, which
brings me to my next point, you probably shouldn't edit sendmail.cf by hand.
Sendmail.cf is a rather large and complicated file, that should be compiled
with m4 from .mc files.  You probably have a sendmail directory in /usr/share
(/usr/share/sendmail perhaps?) that contains the m4 headers and example .mc 
files, and probably a README to explain in detail how to compile a proper
sendmail.cf.  I now have my workstation behind the firewall set up to 
send mail directly to the intended recipient, as well as running as a daemon
so I can get local mail and run fetchmail (my firewall blocks out all incoming 
requests, so I'm not worried about spammers).  It even gets to those paranoid 
mailservers. I'll attach my .mc file. 
 
divert(-1)
#
# Copyright (c) 1998 Sendmail, Inc.  All rights reserved.
# Copyright (c) 1983 Eric P. Allman.  All rights reserved.
# Copyright (c) 1988, 1993
#       The Regents of the University of California.  All rights reserved.
#
# By using this file, you agree to the terms and conditions set
# forth in the LICENSE file which can be found at the top level of
# the sendmail distribution.
#
#

#
#  This is the prototype file for a configuration that supports nothing
#  but basic SMTP connections via TCP.
#
#  This file was modified by jakemsr to masquerade the domain
#  meus0002.clipper.net as clipper.net on 2000-02-05
# 

divert(0)dnl
VERSIONID(`$ funk.mc Sendmail 2000-02-05 jakemsr Exp $')
OSTYPE(openbsd)
define(confDOMAIN_NAME, clipper.net)
MASQUERADE_AS(clipper.net)
MASQUERADE_DOMAIN(meus0002.clipper.net)
FEATURE(allmasquerade)
FEATURE(nouucp, `reject')
MAILER(local)
MAILER(smtp)
DAEMON_OPTIONS(`Family=inet, address=0.0.0.0, Name=MTA')dnl
DAEMON_OPTIONS(`Family=inet6, address=::, Name=MTA6')dnl
dnl
dnl Enforce valid Message-Id to help stop spammers
dnl
LOCAL_RULESETS
HMessage-Id: $>CheckMessageId

SCheckMessageId
R< $+ @ $+ >            $@ OK
R$*                     $#error $: 553 Header Error

Reply via email to