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

exim and procmail?

0 views
Skip to first unread message

David S. Jackson

unread,
Nov 18, 1999, 3:00:00 AM11/18/99
to
I have been getting an error procmail which has been bouncing my mails
to debian-user. Basically, the procmail log messages get echoed back
to the debian list server. I edited a line in /etc/exim.conf:

userforward:
driver = forwardfile
no_verify
check_ancestor
file = .forward
###modemask = 002
filter
...


After commenting modemask the error seems to go away. I only have one
user on the system right now (me).

My question is why should I have been getting this error in the first
place?

>A message that you sent could not be delivered to all of its
>recipients. The
>following address(es) failed:
>
> d...@dsj.net:
> generated | /usr/bin/procmail -p
>
>The following text was generated during the delivery attempt:
>
>------ | /usr/bin/procmail -p ------
>
>procmail: [30016] Wed Nov 17 17:23:03 1999
>procmail: Assigning "PATH=/bin:/usr/bin:/usr/sbin"
>procmail: Assigning "MAILDIR=/home/dsj/mail"
>procmail: Assigning "PMDIR=/home/dsj/procmail"
>procmail: Assigning "LOGFILE=/home/dsj/procmail/log"
>procmail: Opening "/home/dsj/procmail/log"
>
>------ This is a copy of the message, including all the headers.
>------


Any help gladly appreciated!

TIA

--
David S. Jackson http://www.dsj.net
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
"Zen is not some kind of excitement, but concentration on our
usual everyday routine." --Shunryu Suzuki


--
Unsubscribe? mail -s unsubscribe debian-us...@lists.debian.org < /dev/null

rick

unread,
Nov 18, 1999, 3:00:00 AM11/18/99
to
In article <1999111721...@sylvester.dsj.net> you wrote:
> I have been getting an error procmail which has been bouncing my mails
> to debian-user. Basically, the procmail log messages get echoed back
> to the debian list server. I edited a line in /etc/exim.conf:
>
> userforward:
> driver = forwardfile
> no_verify
> check_ancestor
> file = .forward
> ###modemask = 002
> filter
> ...
>
>
> After commenting modemask the error seems to go away. I only have one
> user on the system right now (me).
>
> My question is why should I have been getting this error in the first
> place?

Something to check.
My /usr/bin/procmail permission got changed from
-rwsr-sr-x after a recent upgrade and my maillog
would indicate that it was sending bounce messages
back out.

J C Lawrence

unread,
Nov 18, 1999, 3:00:00 AM11/18/99
to
On Wed, 17 Nov 1999 21:52:03 -0500
David S Jackson <d...@dsj.net> wrote:

> I have been getting an error procmail which has been bouncing my
> mails to debian-user. Basically, the procmail log messages get
> echoed back to the debian list server. I edited a line in
> /etc/exim.conf:

A more elegant way of running procmail under Exim as an LDA is to
install the following transport and director in /etc/exim.conf:

The director:

procmail_pipe:
driver = pipe
command = "/usr/bin/procmail"
user = ${local_part}
delivery_date_add
envelope_to_add
return_path_add
from_hack

The transport:

procmail:
driver = localuser
require_files = ${local_part}:${home}/.procmailrc
transport = procmail_pipe

--
J C Lawrence Internet: cl...@kanga.nu
----------(*) Internet: co...@kanga.nu
...Honorary Member of Clan McFud -- Teamer's Avenging Monolith...

Ralf G. R. Bergs

unread,
Nov 22, 1999, 3:00:00 AM11/22/99
to
On Wed, 17 Nov 1999 21:52:03 -0500, David S. Jackson wrote:

>I have been getting an error procmail which has been bouncing my mails
>to debian-user.

You should probably not invoke procmail via .forward, but directly as a local
transport.

Grep for procmail in /usr/doc/exim/spec.txt.gz and modify exim.conf
accordingly. This is how I do it and I don't have any probs with my setup.


--
Sign the EU petition against SPAM: L I N U X .~.
http://www.politik-digital.de/spam/ The Choice /V\
of a GNU /( )\
Generation ^^-^^

Pollywog

unread,
Nov 22, 1999, 3:00:00 AM11/22/99
to

On 18-Nov-1999 J C Lawrence wrote:
> A more elegant way of running procmail under Exim as an LDA is to
> install the following transport and director in /etc/exim.conf:
>
> The director:
>
> procmail_pipe:
> driver = pipe
> command = "/usr/bin/procmail"
> user = ${local_part}
> delivery_date_add
> envelope_to_add
> return_path_add
> from_hack
>
> The transport:
>
> procmail:
> driver = localuser
> require_files = ${local_part}:${home}/.procmailrc
> transport = procmail_pipe

I tried this, but I get:
Starting MTA: 1999-11-22 21:41:17 Exim configuration error
transport procmail: cannot find transport driver "localuser" in line 362


--
Andrew

Mark Wagnon

unread,
Nov 23, 1999, 3:00:00 AM11/23/99
to
On 11/22/99 09:44PM, Pollywog wrote:
>
> I tried this, but I get:
> Starting MTA: 1999-11-22 21:41:17 Exim configuration error
> transport procmail: cannot find transport driver "localuser" in line 362

Jumping in on this thread late, and I have absolutely no clue what you guys
are talking about, but...

Is the localuser part supposed to be the username of someone who has a local
account?

--
__ _
Mark Wagnon ( Debian GNU/ -o) / / (_)__ __ ____ __
Chula Vista, CA ) /\\/ /__/ / _ \/ // /\ \/ /
mwag...@home.com ( _\_v____/_/_//_/\_,_/ /_/\_\

Pollywog

unread,
Nov 23, 1999, 3:00:00 AM11/23/99
to

On 23-Nov-1999 Mark Wagnon wrote:
> On 11/22/99 09:44PM, Pollywog wrote:
>>
>> I tried this, but I get:
>> Starting MTA: 1999-11-22 21:41:17 Exim configuration error
>> transport procmail: cannot find transport driver "localuser" in line 362
>
> Jumping in on this thread late, and I have absolutely no clue what you guys
> are talking about, but...
>
> Is the localuser part supposed to be the username of someone who has a local
> account?

No, it is a transport driver (for Exim).

--
Andrew

cl...@kanga.nu

unread,
Nov 23, 1999, 3:00:00 AM11/23/99
to
On Mon, 22 Nov 1999 21:44:37 -0000 (UTC)
Pollywog <poll...@shadypond.com> wrote:

> I tried this, but I get: Starting MTA: 1999-11-22 21:41:17 Exim
> configuration error transport procmail: cannot find transport
> driver "localuser" in line 362

You should have a director stanza (after the procmail director I
quoted) in your exim.conf that reads something like:

localuser:
driver = localuser
transport = local_delivery

Where the local_delivery transport looks something like:

local_delivery:
driver = appendfile
group = mail
mode = 0660
mode_fail_narrower = false
file = /var/spool/mail/${local_part}
delivery_date_add
envelope_to_add
return_path_add

(The above is not the default stanza -- I've added several bits to it)

--
J C Lawrence Home: cl...@kanga.nu
----------(*) Other: co...@kanga.nu
--=| A man is as sane as he is dangerous to his environment |=--

cl...@kanga.nu

unread,
Nov 23, 1999, 3:00:00 AM11/23/99
to
On Tue, 23 Nov 1999 04:20:31 -0000 (UTC)
Pollywog <poll...@shadypond.com> wrote:

> I have all of this, so it seems I just need to move the procmail
> director upward.

Yes, it must be above the localuser.

0 new messages