procmail
[Top] [All Lists]

Re: Comments on this way to use procmail with virtual domains

2007-06-02 18:00:40
On Sat, Jun 02, 2007 at 06:33:24PM -0600, LuKreme wrote:
procmail  unix  -       n       n       -       -       pipe
   -o flags=R user=vpopmail argv=/usr/local/bin/procmail -t -m USER=$ 
{recipient} EXTENSION=${extension} /usr/local/etc/procmailrc.common

The trick was using ${recipient} instead of ${user} for me since mail  
is stored in /usr/local/virtual/user(_at_)thedoamin(_dot_)tld

[. . . .]

It all seems to work for now, except that current sending to user 
+list(_at_)thedomain(_dot_)tld causes both MAILDIR and DEFAULT to be set to 
'.',  
so still some work on that score.

That's what happens if they are null on procmail start.

my choices seem to be user (user) mailbox (user+extension) or  
recipient (user+extension(_at_)thedomain(_dot_)tld)

Try using the 'p' option when you start procmail.

       -p   Preserve any old environment.  Normally procmail clears the  envi-
            ronment upon startup, except for the value of TZ.  However, in any
            case: any default values will override any preexisting environment
            variables, i.e., procmail will not pay any attention to any prede-
            fined environment variables, it will happily overwrite  them  with
            its  own  defaults.   For  the  list of environment variables that
            procmail will preset see the procmailrc(5) man page.  If  both  -p
            and  -m  are  specified,  the list of preset environment variables
            shrinks to just: LOGNAME, HOME, SHELL, ORGMAIL and MAILDIR.

Dallman
____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>