On Friday 25 August 2006 12:20, Gennady G. Marchenko wrote with regard to - 
RE: Big request for some assistance :
> Hello Scott!
>
> My English isn't well, but I want to answer.
>
>
> I don't understand, why do you use the maildrop?

I use maildrop to spam filter SOME users' mail  - not all mail is spam 
filtered - to do this I have to enable the deliveryProgramPath attribute in 
the user's ldap entry to say: maildrop mail_SPAM_filter1 

Then that particular user's mail is spamchecked.

>
>
> 1. qmail-ldap automatically report about over-quota to any user. (you don't
> need maildrop for this)

Yes, I know that works. It is only for mail delivery is done with maildrop 
that it does not work. correctly. I can use deliver quota, but the mails are 
not bounced, but are put back into the local-queue.

> 2. I think that you use spamassassin for scan your mail for spam?
> Spamc by default don't scan email over 250kb

Yes that is correct.

>
>
> And you can use qmail-scanner for checking your mail :)

qmail-scanner is slow. I use qscanq to scanq all mails for viruses, but not 
system wide spam scanning.

>
> I don't have any problem :) to use your tasks without maildrop.

If you scan for spam site wide, then it would be fine, but I have 1.1million 
users and to scan all that mail would be just too resource intensive at this 
moment. I allow individual users to enable/disable spam filtering with 
spamassassin and cater for the gradual growth.

>
> Best Wishes, Gennady.
>
> -----Original Message-----
> From: Scott Ryan [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 25, 2006 1:12 PM
> To: [email protected]
> Subject: Big request for some assistance
>
> Hi people, I have to ask a huge favour to help me resolve a very strange
> issue
> that I have.
>
> I know this is not specifically related to qmail-ldap, but I am hoping that
> some people on the list can give me some help on some of the qmail-ldap
> internals.
> I use maildrop with a filter script executed by the deliveryProgramPath
> attribute.
>
> My filter script does this:
> check that the user is not over quota
> if not over quota, filter messages < 250k through spamc if over 250k,
> deliver
> to inbox.
> if spam, deliver into spam folder else deliver into inbox.
>
> This all works except the over quota part. I use 'bouncesaying' to bounce
> the
> messages that are overquota (determined by an external perl script that
> returns 1/0 if over quota or not).
> If the messages are less than 50k, they are bounced correctly with the
> error
>
> configured by the bouncesaying argument . If they are over 50k, they are
> not
>
> bounced, instead, the message is deferred and returned to the local queue.
> My C is not that sharp that I understand what is happening within the
> bouncesaying code, but for some reason, maildrop seems to think that
> bouncesaying is failing and then returns an error code to qmail-local so
> that
> the mail is deferred.
>
> I have attached my filter script in it's entirety so that people can look
> have
> a look to see if there is a better way of doing what I am trying to do. I
> have also attached some logs to show that some messages are deferred, while
> other messages (under 50k) are bounced.
> I have santized some of the log files to cover up mail addresses etc...
>
> Successful bounce:
> @4000000044eebbb203cc9e3c delivery 1064860: failure:
> _MAILDIRQUOTA:_165000000S,500002C/__QMAILDELIVERYPROGRAM:_maildrop_/var/qma
>i
> l/mail/maildrop_SPAM_filter1/__QMAILMODE:_nolocal/__QMAILDOTMODE:_both/__ex
>e
> cuting_'qmail-local_--_USER_/var/qmail/mail/new/m/u/MAILDIR/_USER___USER_SE
>N
> DER_./'_under_uid=120,_gid=120/_Sorry_USER_is_over_their_allocated_QuotaSiz
>e _or_QuotaCount/
>
> Deferred Message:
> @4000000044eebc0d3136ceec delivery 1064916: deferral:
> _MAILDIRQUOTA:_165000000S,500002C/__QMAILDELIVERYPROGRAM:_maildrop_/var/qma
>i
> l/mail/maildrop_SPAM_filter1/__QMAILMODE:_nolocal/__QMAILDOTMODE:_both/__ex
>e
> cuting_'qmail-local_--_USER_/var/qmail/mail/new/m/u/MAILDIR/_USER___USER_SE
>N
> DER_./'_under_uid=120,_gid=120/_Sorry_USER_is_over_their_allocated_QuotaSiz
>e
> _or_QuotaCount/maildrop:_error_writing_to_mailbox./maildrop:_Unable_to_deli
>v er_to_mailbox./
>
>
> I would really appreciate any help that anyone has to offer, even if it is
> just the understanding of the internals of bouncesaying

-- 
Regards,

Scott Ryan
Telkom Internet

Reply via email to