Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Rejecting local mails with missing/empty subject?

10 views
Skip to first unread message

Mogens Kjaer

unread,
Mar 13, 2009, 8:05:35 AM3/13/09
to
Is there a simple way of adding lines to the sendmail.mc
file so that local users are not permitted to send mails
with an empty subject line?

I'm running sendmail 8.13.8 on a RHEL 5.3 machine.

Mogens

--
Mogens Kjaer, Carlsberg A/S, Computer Department
Gamle Carlsberg Vej 10, DK-2500 Valby, Denmark
Phone: +45 33 27 53 25, Mobile: +45 22 12 53 25
Email: m...@crc.dk Homepage: http://www.crc.dk

D. Stussy

unread,
Mar 13, 2009, 3:38:35 PM3/13/09
to
"Mogens Kjaer" <m...@crc.dk> wrote in message news:49BA4C0F...@crc.dk...

> Is there a simple way of adding lines to the sendmail.mc
> file so that local users are not permitted to send mails
> with an empty subject line?
>
> I'm running sendmail 8.13.8 on a RHEL 5.3 machine.

Simple is a relative term.

If you define a rule to check the subject header, then it is NOT called for
an empty or omitted subject. However, one may set a variable when the
subject is present, then check for [the absence of] that variable in the
"check_eoh" or "check_eom" rulesets. Don't forget to reset the variable
somewhere (e.g. "Local_check_mail") in case multiple messages are sent in
one SMTP session.


0 new messages