XMailforum is a readonly knowledge archive now.

Registering as a new user or answering posts is not possible anymore.

Might the force be with you, to find here what you are looking for.

2019-09-20 - hschneider, Admin

Cookie Disclaimer: This forum uses only essential, anonymous session cookies (xmailforum*), nothing to be scared of.

XMail Forum [Powered by Invision Power Board]
Printable Version of Topic
Click here to view this topic in its original format
XMail Forum > Documentation and Knowledge Base > Filter Error (-92) ?


Posted by: akbsol Feb 4 2008, 10:18 AM
No matter what I do I am getting this filter error. I checked all the permissions and paths. Tried placing the script at different locations. Even a test script:

#!/bin/bash
exit 0


gets executed well from the shell but gives error 92 when tested in XMail's debug mode. Please help..

Posted by: akbsol Feb 4 2008, 10:57 AM
It seems ulimit -s 128 before running XMail solves this. Although I don't know why.

Posted by: hschneider Feb 5 2008, 12:48 PM
Looks like spawning new threads requires that soft limit on your system. Thanks for the hint!

BTW: Think you mean ulimit -S 128, don't you ?

Posted by: erich Mar 12 2008, 10:18 PM
In filters.pre-data.tab
command must be ./var/MailRoot/bin/glst/glst
in one of my servers, other witout .
do not know why..it works.

erich

Posted by: MaartenJB May 23 2008, 09:33 AM
QUOTE (akbsol @ Feb 4 2008, 10:18 AM)
No matter what I do I am getting this filter error. I checked all the permissions and paths. Tried placing the script at different locations. Even a test script:

#!/bin/bash
exit 0


gets executed well from the shell but gives error 92 when tested in XMail's debug mode. Please help..

I'm getting the same error, and tried the ulimit suggestion, but that didn't work.

I've tried it on several linux installations. (Fedora 4/5, CentOS 5.1)

Posted by: hschneider May 24 2008, 07:45 AM
Print some string to the screen and run XMail in debug mode to see if the script is fired correctly.

Posted by: MaartenJB May 27 2008, 11:47 AM
Hi, This is what I have:

test.tab in the filters directory. This file has 777 access rights, this file contains:

CODE
#!/bin/bash
Domain="mydomain.com"

## Don't Edit
#File=$1
#RejFile=$File".rej"
#Authuser=$2
#RemoteAddress=$3
#timestamp=`date +%s`
#date=`date +%Y%m%d000`
#nowtime=`date +%r`

echo aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;
exit 1


the file "filters.out.tab" contains: (real tabs, no spaces)
CODE
"*"<TAB>"*"<TAB>"0.0.0.0/0"<TAB>"0.0.0.0/0"<TAB>"test.tab"      




Result in debug mode:
CODE
SMAIL local SMTP = "mydomain.com" From = <> To = <user@mydomain.com>
SMAIL local SMTP = "mydomain.com" From = <> To = <user@mydomain.com>
execv error: cmd='Domain="mydomain.com"'
execv error: cmd='Domain="mydomain.com"'
Filter error (-92): Sender = "" Recipient = "postmaster@mydomain.com" Filter = "Domain="mydomain.com""
Filter error (-92): Sender = "" Recipient = "postmaster@mydomain.com" Filter = "Domain="mydomain.com""
execv error: cmd='echo aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;'
execv error: cmd='echo aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;'
Filter error (-92): Sender = "" Recipient = "postmaster@mydomain.com" Filter = "echo aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;"
Filter error (-92): Sender = "" Recipient = "postmaster@mydomain.com" Filter = "echo aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;"
execv error: cmd='exit 1'
execv error: cmd='exit 1'
Filter error (-92): Sender = "" Recipient = "postmaster@mydomain.com" Filter = "exit 1"
USMAIL SMTP-Send RLYS = "192.168.1.1:25" SMTP = "mydomain.com" From = "" To = "user@mydomain.com"
Filter error (-92): Sender = "" Recipient = "postmaster@mydomain.com" Filter = "exit 1"
USMAIL SMTP-Send RLYS = "192.168.1.1:25" SMTP = "mydomain.com" From = "" To = "user@mydomain.com"


I don't think the code is being executed. What do I do wrong?
Thanks.

Posted by: hschneider May 27 2008, 12:31 PM
Looks like there is some misunderstanding about filters:

filters.out.tab is setup correctly.

test.tab should contain something like this:
"/var/MailRoot/filters/myfilter.sh"[TAB]"@@FILE“[TAB].....

The script itself goes into filters/myfilter.sh

Posted by: MaartenJB May 27 2008, 02:09 PM
thanks!! it works fine now!

Posted by: hschneider May 27 2008, 07:40 PM
Good Boy wink.gif

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)