🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: demon.tech.unix
Article #232

Re: sendmail & mail forward question

#232
From: Richard Senior
Date: Thu, 13 Jul 2000 00:00
33 lines
1872 bytes
In article <HlqagAAiPPb5EwXG@enigmathica.demon.co.uk>,
	Chris Calvey <nobody@enigmathica.demon.co.uk> writes:

> I've just upgraded from RedHat 5.2 to 6.2 and have noticed
> that all my user .forward files refuse to work. The mail
> sent the these user's is bounced with a message similar to:-

[snip]

> I gather that it must be some security feature of sendmail but
> I've not been able to find out what. Can anyone offer any
> advice?

Later versions of sendmail use the Sendmail Restricted Shell (smrsh) for
internal shell operations and this doesn't allow redirection, as this
little test shows:

root-# /usr/sbin/smrsh -c 'cat /etc/sendmail.cf > ~/temp.txt'
/usr/sbin/smrsh: cannot use > in command

You should be able to solve this by recompiling your sendmail.cf from the
M4 source without FEATURE(`smrsh').

When I did the same upgrade I ran into problems because relaying is denied
by default. This is clearly a good thing and prompted me to set up proper
restrictions but it's something you might like to keep in mind if you have
more problems.

-- 
Regards,

Richard Senior
Mill Dam Consulting Limited
Technical Details
Message-ID: <8kjvh0$33u$1@gate.local>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <HlqagAAiPPb5EwXG@enigmathica.demon.co.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fac57,ea9f85b3362d3f12
X-Google-Attributes: gidfac57,public
From: richard@r-senior.demon.co.uk (Richard Senior)
Subject: Re: sendmail & mail forward question
Date: 2000/07/13
Message-ID: <8kjvh0$33u$1@gate.local>
X-Deja-AN: 645834458
X-NNTP-Posting-Host: r-senior.demon.co.uk:158.152.211.38
References: <HlqagAAiPPb5EwXG@enigmathica.demon.co.uk>
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: abuse@demon.net
X-Trace: news.demon.co.uk 963481520 nnrp-13:23020 NO-IDENT r-senior.demon.co.uk:158.152.211.38
Organization: Mill Dam Consulting Limited 
Mime-Version: 1.0
NNTP-Posting-Date: 13 Jul 2000 08:44:16 GMT
Newsgroups: demon.tech.unix