procmail
[Top] [All Lists]

Calling procmail from postfix doesn't work

2006-12-29 04:42:54
Hello,

I have a postfix server handling several virtual domains. For several
reasons, including the need to reuse/migrate some biiiig procmailrc
files built over several years, I want to use procmail as the virtual
transport. A bit of research
(http://www.afp548.com/articles/Panther/procmail.html) showed that
postfix should be configured as follows:

* put virtual_transport = procmail in main.cf
* and, in master.cf:

procmail  unix  -       n       n       -       -       pipe flags=R user=vmail 
argv=/usr/bin/procmail -t -m USER=${user} EXTENSION=${extension} /etc/procmailrc

however, when I try to use this setup, I get:

Dec 28 16:43:10 fm postfix/qmgr[4502]: 769B2C38D: 
to=<marco(_at_)domain1(_dot_)net>, relay=none, delay=1, status=deferred 
(delivery temporarily suspended: unknown mail transport error)
Dec 28 16:49:15 fm postfix/smtpd[4523]: dict_eval: const  error
Dec 28 16:49:18 fm postfix/pipe[4529]: fatal: get_service_attr: unknown 
username: vmail

The user id of the virtual mailboxes in postfix is:

virtual_uid_maps = static:5000
virtual_gid_maps = static:5000

but using "5000" instead of vmail as user doesn't change anything.

Is anybody else using procmail in the same way? If yes, what is the
right way to call it from postfix, and with which parameters / uid?

(I've also asked on the postfix list, but nothing came back yet...)

Thanks,

Marco

____________________________________________________________
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>
  • Calling procmail from postfix doesn't work, M. Fioretti <=