Re: [EXIM] Passing local suffix to procmail?

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Peter Radcliffe
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [EXIM] Passing local suffix to procmail?
Lars Kellogg-Stedman <lars@???> probably said:
>   procmail_pipe:
>     driver = pipe
>     envelope_to_add
>     command = /usr/bin/procmail -p -t -a ${substr_1:${local_part_suffix}} \
>               -d ${local_part}


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

>


DSUFFIX = -

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}

procmail:
  driver = localuser
  transport = procmail_pipe
  require_files = "${local_part}:${home}/.procmailrc:+PROCMAILDIR/procmail\
                    :!${home}/.forward"
  suffix = DSUFFIX*
  suffix_optional


> The problem: mail address to lars.foo@??? gets delivered to me,
> so exim *is* recognizing the suffix, but the call to procmail looks like
> this:
>
> /usr/bin/procmail -p -t -a -d lars


Odd. The only real difference between my config and yours is the quotes
around the command string and a few other options (and I run procmail as
the user to prevent another command running as root/exim/whatever).

I am using 2.12, though, havn't had time to upgrade to 3.* yet.

P.

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



--
*** Exim information can be found at http://www.exim.org/ ***