Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Dec 1996 10:53:12 +0100 (GMT-1)
From:      af@biomath.jussieu.fr (FAUCONNET Alain)
To:        eblood@cs.unr.edu (Eric Blood)
Cc:        questions@freebsd.org
Subject:   Re: Sendmail question
Message-ID:  <199612170953.KAA09875@garfield.biomath.jussieu.fr>
In-Reply-To: <199612170949.BAA16522@godzilla.cs.unr.edu> from Eric Blood at "Dec 17, 96 01:49:58 am"

next in thread | previous in thread | raw e-mail | index | archive | help
Eric Blood wrote / a ecrit:
> 
> Two things about sendmail have come up...
> 
> The first has to do with changing the sendmail.cf file and changing it
> to write the senders address from whoever@localhost.domain.name to
> whoever@domain.name.  I've flipped through the big sendmail book, but
> haven't found an answer.

Tweaking sendmail.cf manually really is black  art.  Hiding  the  host
name in the From: header requires adding a rewrite rule in the ruleset
whose number is specified in  the  S=  argument  of  the  smtp  mailer
definition (usually). There are just too many different  situations  to
give you a rule that will work for your case. Here, we use sendmail.cf
automatically  generated  by  a site-wide script. I hand-modified ours
quite a bit though so I have some understanding of how it works...

I  would advise to get hold of the latest sendmail source distribution
(version 8.8.4 as of 10 minutes ago, might have changed ;-) and take a
close  look  at  the  "cf"  subdirectory.  Through the use of a couple
parameters  file, you can generate sendmail.cf files with the features
and  configuration  you  want.  Carefully  read   the   README   file,
particularily everything revolving around the "masquerade" feature.

Quoting the README: ``The domain file can also be  used  to  define  a
domain  name, if needed (using "DD<domain>") and set certain site-wide
features. If all hosts at your site masquerade behind one email  name,
you  could  also use MASQUERADE_AS here.''

> Also, when sendmail is run with the "-f" option, I get a message in
> /var/log/messages:
>Dec  16  23:39:48  wooster  sendmail[357]:  NOQUEUE: SYSERR(eblood):
>queuename:   Cannot   create  "qfXAA00357"  in  "/var/spool/mqueue"
>(euid=1000): Permission denied

>A quick fix was to allow  everyone
>write permission in the mqueue directory. What is the real fix?

(sorry for the reformating... my editor macros went nuts)

The man page says ``-f can only be used by ``trusted'' users (normally
root, daemon, and network) or if the person you are trying  to  become
is the same as the person you are.''

This basically means that for a plain user, -f  turns  off  sendmail's
setuid "power" and then it can't write to the spool anymore.

I wonder why emacs would need that. RMAIL doesn't seem to as far as  I
can tell from our Emacs setup here.

Check  your  Emacs  mail  facility  parameters, there must be a way to
discourage it from using -f. 

_Alain_

-- 
Alain FAUCONNET    Ingenieur systeme - System Manager     AP-HP/SIM
Public Health                91 bld de l'Hopital 75013 PARIS FRANCE
Medical Computing Research Labs         Mail: af@biomath.jussieu.fr
Tel: (+33) (0)1-40-77-96-19             Fax: (+33) (0)1-45-86-80-68
    I've RTFMed. It says: "Refer to your system administrator"
            But... I *am* the system administrator :-]



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199612170953.KAA09875>