Yes! The key is MAIL_ROOT system variabel. It MUST be in the system to make filters work properly. This variable is not defined by default (at least after rpm package = install)
It looks like XMail can't find '../filters' directory without this = variable. Unfortunately this is not _directly_ mentioned in XMail documentation in 'MESSAGE FILTERS' section. So MAIL_ROOT must be set. Thanks, Mikhail -----Opprinnelig melding----- Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] = P=E5 vegne av Davide Libenzi Sendt: 22. september 2003 19:06 Til: [EMAIL PROTECTED] Emne: [xmail] Re: filters.xx.tab On Mon, 22 Sep 2003, Michail Tchoudinov wrote: > I have wrote the simple script in php (yes php can be executed from a = =3D > command > line like perl, like shell like any others).=3DA8 > This script connects XMail and Norman Virus Control. > Script was saved in ../MailRoot/filters > > I have edited filters.in.tab and filters.out.tab > Like this: > "*"<TAB>"*"<TAB>"0.0.0.0/0"<TAB>"0.0.0.0/0"<TAB>"av-filter.tab" > > And created av-filter.tab contains > "/usr/bin/php -q /var/MailRoot/filters/script.php"<TAB>"@@FILE" > > script works fine when started manually. > But it does not seems to be started through "av-filter.tab" > > Even if I write in "av-filter.tab" something like > "ls /var > /tmp/listlog" > This does not work! I get nothing in /tmp (besides should this simple = =3D > work?) > > How to check where I'm wrong? > May be "filters.xx.tab" files are wrong, may be "av-filter.tab" is not > correct. > Is there any logging possibilities about external script starting in = =3D > XMail? Get 1.17 and run XMail in debug mode (after having stopped the service) = : # export MAIL_ROOT=3D/var/MailRoot # /var/MailRoot/bin/XMail -Md ... Then try to send a message. - Davide - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED] - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED]
