Rodrigo Vaz <[EMAIL PROTECTED]> writes: > I'm using tmda with vpopmail + qmail + qmail-scanner and i'm getting > some blank messages without from and to headers my tmda DELIVERY var is > setting to "| /var/vpopmail/bin/vchkpw '' bounce-no-mailbox" . > > My mail structure is : > > qmail > | > Vpopmail > | > .qmail-default pointing to procmail to filter some attach files > (| /var/qmail/bin/preline /usr/local/bin/procmail -m > /usr/local/etc/procmailrc | /var/qmail/bin/preline > /usr/local/bin/tmda-filter -c .tmda/config) > | > | > procmailrc : > (some attach filter and DEFAULT="|" that call | again to execute tmda > )
Wow. There's so much unusual and non-standard here that I'm not sure where to begin! First, I hope your delivery program is 'vdelivermail' and not 'vchkpw'. Even then, I'm not sure it will work. Moving on, I'll assume that procmail is actually sending mail to stdout when you use the -m switch. I've never used it this way. The 'preline' program adds the Delivered-To: and Return-Path: fields to the header. I'm pretty certain procmail doesn't strip them, so it looks like you're adding them twice (you call preline twice). Since this is .qmail-default, it looks like every user in your virtual domain has exactly the same configuration, specified in .tmda/config. Is that what you want? Why not just call tmda-filter at the end of your procmailrc? Don't use the -m switch. You *will* have to use the -p switch and you will have to specify the /usr/local/etc/procmailrc file. If you used $HOME/.procmailrc ($HOME in vpopmail is the domain directory, not the individual users' directories), you wouldn't need to specify any *rc files on the command line. vpopmail has to be compiled to understand qmail extension addresses (the --enable-qmail-ext=y parameter must be given to configure). Finally, what does your procmailrc do? If it delivers any mail without using the 'c' flag on the recipe, procmail quits, which means that an only the output of preline gets piped to tmda-filter. I have no idea what tmda-filter does with a message consisting only of a Return-Path line and a Delivered-To line. Anyhow, I hope that gives you a start. More information on calling tmda-filter from procmail can be found in point three in the Exim and Postfix section of this page: http://tmda.net/config-server.html#exim-postfix Tim _____________________________________________ tmda-users mailing list ([EMAIL PROTECTED]) http://tmda.net/lists/listinfo/tmda-users
