Hello,
The following shown on maillog after change maildirfilterconfig to the follow:
[root@mail01]# cat .qmail-hello
|/usr/local/bin/maildrop /home/vpopmail/domains/euro-tech.com/hello/Maildir
[root@mail01]# cat hello/.mailfilter
#MFMAILDROP=2
#
# DO NOT EDIT THIS FILE. This is an automatically generated filter.
FROM='hel...@euro-tech.com'
##Op:startswith
##Header:
##Value:test
##Folder:.test
##From:
##PlainString
##Body
##Name:test
if ((/^test/:b))
{
to "./Maildir /.test/."
}
== maillog quote ==
Dec 26 12:33:39 mail01 qmail: 1009341219.347506 status: local 0/10 remote 0/20
Dec 26 12:33:39 mail01 qmail: 1009341219.347525 end msg 605647
Dec 26 12:37:51 mail01 qmail: 1009341471.346083 starting delivery 259: msg
60564
4 to local euro...@euro-tech.com
Dec 26 12:37:51 mail01 qmail: 1009341471.346200 status: local 1/10 remote 0/20
Dec 26 12:37:51 mail01 maildrop[3261]: Cannot have world/group permissions on
th
e filter file - for your own good.
Dec 26 12:37:51 mail01 qmail: 1009341471.358582 delivery 259: deferral:
/usr/loc
al/bin/maildrop:_Cannot_have_world/group_permissions_on_the_filter_file_-_for_yo
ur_own_good./
Dec 26 12:37:51 mail01 qmail: 1009341471.358656 status: local 0/10 remote 0/20
==
Mail still not deliver .... very strange.
Any ideas ?
Thank you for your help.
Regards,
Hilary
Sam Varshavchik wrote:
kfluk writes:
Hello.
I implemented QMail + Vpopmail + mysql + sqwebmail as mail system.
I just added Maildrop for Mail Filtering.
But it seems not work well.
I added the following to maildirfilterconfig
# cat /usr/local/share/sqwebmail/maildirfilterconfig
MAILDIRFILTER=../.mailfilter
MAILDIR=./Maildir
And change .qmail-default to the following.
| /usr/local/bin/maildrop -v5
But it seems not deliver the email to client.
maildrop does not have direct support for vpopmail.
You can get this to work by using absolute pathnames for all the relevant
files, and by installing a custom maildirfilterconfig in each mail account.
See the maildrop man page for information on ways to run maildrop. See
sqwebmail's INSTALL file for description of the parameters in
maildirfilterconfig.