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 -> Filter Error (-92) ?

Reply to this topicStart new topicStart Poll

> Filter Error (-92) ?
akbsol
Posted: Feb 4 2008, 10:18 AM
Quote Post


Newbie
*

Group: Members
Posts: 23
Member No.: 2703
Joined: 10-November 07



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..
PMEmail Poster
Top
akbsol
Posted: Feb 4 2008, 10:57 AM
Quote Post


Newbie
*

Group: Members
Posts: 23
Member No.: 2703
Joined: 10-November 07



It seems ulimit -s 128 before running XMail solves this. Although I don't know why.
PMEmail Poster
Top
hschneider
Posted: Feb 5 2008, 12:48 PM
Quote Post


No - I'm not an answering script ...
Group Icon

Group: Admin
Posts: 6631
Member No.: 195
Joined: 19-June 02



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 ?


--------------------
Bye,
Harald


-- Download XMail Queue Manager 1.46 NOW: XMail Server Tools
-- Cross platform remote queue management!
-- Message analyzing on the fly!
-- Builtin diagnostics knowledge base!
-- Manages multiple mail queues!

Sponsored by
CD-Produktion und DVD-Produktion and Homestaging Saarland - Immobilien schneller verkaufen in der Region Saarland, Rheinland-Pfalz und Luxembourg
PMEmail PosterUsers Website
Top
erich
Posted: Mar 12 2008, 10:18 PM
Quote Post


Member
***

Group: Members
Posts: 59
Member No.: 1093
Joined: 1-May 04



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
PMEmail PosterUsers WebsiteICQ
Top
MaartenJB
Posted: May 23 2008, 09:33 AM
Quote Post


Junior Member
**

Group: Members
Posts: 30
Member No.: 2280
Joined: 5-October 06



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)
PMEmail Poster
Top
hschneider
Posted: May 24 2008, 07:45 AM
Quote Post


No - I'm not an answering script ...
Group Icon

Group: Admin
Posts: 6631
Member No.: 195
Joined: 19-June 02



Print some string to the screen and run XMail in debug mode to see if the script is fired correctly.


--------------------
Bye,
Harald


-- Download XMail Queue Manager 1.46 NOW: XMail Server Tools
-- Cross platform remote queue management!
-- Message analyzing on the fly!
-- Builtin diagnostics knowledge base!
-- Manages multiple mail queues!

Sponsored by
CD-Produktion und DVD-Produktion and Homestaging Saarland - Immobilien schneller verkaufen in der Region Saarland, Rheinland-Pfalz und Luxembourg
PMEmail PosterUsers Website
Top
MaartenJB
Posted: May 27 2008, 11:47 AM
Quote Post


Junior Member
**

Group: Members
Posts: 30
Member No.: 2280
Joined: 5-October 06



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.
PMEmail Poster
Top
hschneider
Posted: May 27 2008, 12:31 PM
Quote Post


No - I'm not an answering script ...
Group Icon

Group: Admin
Posts: 6631
Member No.: 195
Joined: 19-June 02



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


--------------------
Bye,
Harald


-- Download XMail Queue Manager 1.46 NOW: XMail Server Tools
-- Cross platform remote queue management!
-- Message analyzing on the fly!
-- Builtin diagnostics knowledge base!
-- Manages multiple mail queues!

Sponsored by
CD-Produktion und DVD-Produktion and Homestaging Saarland - Immobilien schneller verkaufen in der Region Saarland, Rheinland-Pfalz und Luxembourg
PMEmail PosterUsers Website
Top
MaartenJB
Posted: May 27 2008, 02:09 PM
Quote Post


Junior Member
**

Group: Members
Posts: 30
Member No.: 2280
Joined: 5-October 06



thanks!! it works fine now!
PMEmail Poster
Top
hschneider
Posted: May 27 2008, 07:40 PM
Quote Post


No - I'm not an answering script ...
Group Icon

Group: Admin
Posts: 6631
Member No.: 195
Joined: 19-June 02



Good Boy wink.gif


--------------------
Bye,
Harald


-- Download XMail Queue Manager 1.46 NOW: XMail Server Tools
-- Cross platform remote queue management!
-- Message analyzing on the fly!
-- Builtin diagnostics knowledge base!
-- Manages multiple mail queues!

Sponsored by
CD-Produktion und DVD-Produktion and Homestaging Saarland - Immobilien schneller verkaufen in der Region Saarland, Rheinland-Pfalz und Luxembourg
PMEmail PosterUsers Website
Top
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:
« Next Oldest | Documentation and Knowledge Base | Next Newest »

Reply to this topicStart new topicStart Poll