[2691] in SIPB_Linux_Development

home help back first fref pref prev next nref lref last post

sendmail problems

daemon@ATHENA.MIT.EDU (Christopher A Mceniry)
Thu Feb 25 20:28:53 1999

To: linux-dev@MIT.EDU
Cc: cmceniry@MIT.EDU
Date: Thu, 25 Feb 1999 20:29:39 EST
From: Christopher A Mceniry <cmceniry@MIT.EDU>

After bringing my aliases files from my 4.2 installation to the 5.2
installation, I ran into a couple of problems with sendmail.  Mainly,
the prog delivery agent was set up differently in two ways: aliases to
|prog needs to be |prog@localhost in 5.2(|prog actually gets sent to
|prog@mit.edu - I'm not sure why it slips by); 5.2 uses just sh, not
smrsh.

After playing around with it for a little while, I made the following
mods to sendmail.cf.  This was done from an installation done on 2/20
so it was using (what I think is) the most recent sendmail package.
What it does(or what it is supposed to do):

1.) Receives mail to foo@machine.mit.edu iff foo is in /etc/aliases or
    /etc/localusers.  All other mail to foo@machine.mit.edu is bounced
    as "Local user does not exist".

2.) Allows for |prog to be an alias instead of |prog@localhost(was
    like this in 4.2).

3.) Mprog uses the smrsh, instead of sh.

4.) Adds the privacy options(my own preference, just got caught in the
    diff).

********************** sendmail.cf.patch ****************************
97a98,99
> # disable EXPN command
> O PrivacyOptions="noexpn,novrfy,authwarnings"
193a196,197
> # Error out on anyone who is not in localusers or aliases
> R$~E<@$j>$*		$#error $@ 5.1.1 $: Local user does not exist
247a252,253
> # Catch delivery via programs before send them off to athena
> R|$+			$@ $#local $: |$1		prog mda
262c268,271
< Mprog,	P=/bin/sh,		F=lsDFMeu,	S=10, R=20, A=sh -c $u
---
> Mprog,          P=/usr/sbin/smrsh, F=lsDFMoqeu9|, S=10/30, R=20/40, D=$z:/,
>                 T=X-Unix,
>                 A=sh -c $u
> #Mprog,	P=/bin/sh,		F=lsDFMeu,	S=10, R=20, A=sh -c $u
********************** sendmail.cf.patch ****************************

Comments,questions?
--chris



home help back first fref pref prev next nref lref last post