i am using qmail with procmail and vpopmail

i change the following line in .qmail-default or one virtual server

|/usr/local/vpopmail/bin/vdelivermail '' bounce-no-mailbox

with this one

|preline /usr/local/bin/procmail -p -m /etc/procmailrc

on my /etc/procmailrc i have:

--
INCLUDERC=/usr/local/squirrelmail/plugins/block_sender/sqblock.rc

:0w
:
|/usr/local/vpopmail/bin/vdelivermail '' bounce-no-mailbox

--

the sqblock.rc is a set of rules (a plugin for squirrelmail webmail) that
work fine.

the problem is that i dont get bounced messages

i have notice that if i add the line: EXITCODE=100

so my code in /etc/procmailrc looks like:
--
INCLUDERC=/usr/local/squirrelmail/plugins/block_sender/sqblock.rc

:0w
:
|/usr/local/vpopmail/bin/vdelivermail '' bounce-no-mailbox

EXITCODE=100
--
i get bounce to work but it bounces some vars of the profmail log,
something like :

---
Hi. This is the qmail-send program at ns3.unixmexico.net.
I'm afraid I wasn't able to deliver your message to the following
addresses. This is a permanent error; I've given up. Sorry it didn't work
out.

<[EMAIL PROTECTED]>:
procmail: [61493] Wed Dec  4 13:36:07 2002
procmail: Assigning "LOGABSTRACT=yes"
procmail: Assigning "LOGFILE=/var/log/procmail.log"
procmail: Opening "/var/log/procmail.log"

--

any ideas on how to fix or cusomaise the bounce message ?
how can i change this:

procmail: [61493] Wed Dec  4 13:36:07 2002
procmail: Assigning "LOGABSTRACT=yes"
procmail: Assigning "LOGFILE=/var/log/procmail.log"
procmail: Opening "/var/log/procmail.log"

for something like: "sorry no mailbox with that user name" for example.



regards


Reply via email to