Re: [Exim] procmail hint

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Peter Radcliffe
Data:  
Para: exim users
Asunto: Re: [Exim] procmail hint
Philip Hazel <ph10@???> probably said:
> Though I am not a procmail user, I seem to recall that this may have
> something to do with the users that procmail trusts. I suspect you are
> running it unprivileged, and so is isn't believing the "From " line it
> gets in the message. The example in the manual does have


That would be my assumption also.

> user = exim
>
> and that probably refers to the case when procmail has been compiled to
> trust the exim user. However, there is obviously no harm in including
> return_path_add.


You either have to trust the exim user or run procmail as the person
you are delivering to.

> Any other procmail users like to comment?


I don't like having suid things around when they don't need to be.
exim's suid is enough to handle delivering to a non-suid procmail.

I use;

# delivery by procmail, local users with .procmailrc files only
procmail_pipe:
driver = pipe
delivery_date_add = true
envelope_to_add = true
return_path_add = true
path = "PROCMAILDIR:/usr/local/bin:/usr/bin"
command = "procmail -a ${substr_1:${local_part_suffix}} -d ${local_part}"
from_hack
user = ${local_part}


# Use procmail only if a ~/.procmailrc file exists, and procmail exists.
procmail:
  driver = localuser
  transport = procmail_pipe
  require_files = "${local_part}:${home}/.procmailrc:+PROCMAILDIR/procmail\
                    :!${home}/.forward"
  suffix = DSUFFIX*
  suffix_optional


P.

-- 
pir               pir@???      pir@???      pir@???