Re: [courier-users] Timeouts while filtering

This is a discussion on Re: [courier-users] Timeouts while filtering within the Courier-Imap forums, part of the Mail Servers and Related category; Sam Varshavchik wrote: > Papo Napolitano writes: > >> I'm observing a rather extrange behaviour (or maybe a ...


Go Back   Usenet Forums > Mail Servers and Related > Courier-Imap

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-18-2006
Papo Napolitano
 
Posts: n/a
Default Re: [courier-users] Timeouts while filtering

Sam Varshavchik wrote:
> Papo Napolitano writes:
>
>> I'm observing a rather extrange behaviour (or maybe a configuration
>> error) in the latest courier (0.52.2) build.
>>
>> I'm filtering using maildrop and a custom perl filter which right now
>> it's taking a lot more than 5 minutes (the default watchdog), so I put
>> "30m" in my localtimeout file as man courier says:
>>
>>
>> localtimeout
>> This file specifies the watchdog timer for local mail
>> deliveries. If a local mail delivery attempt does not complete in the
>> proscribed time interval, the delivering process ID is killed. The time
>> interval in localtimeout is specified in the same way as queuetime (see
>> queuetime for more information).
>>
>>
>> Well, this isn't happening, as I see this on the logs:
>>
>>
>> Jan 17 13:14:41 localhost courierd: started,
>> id=006B85BB.43CC1C7B.00007CCA, from=<test@dosalcubo.com>, module=local,
>> host=test@dosalcubo.com!!8!12!/home/mail/dosalcubo.com/test!!,
>> addr=<test@dosalcubo.com>
>> Jan 17 13:19:41 localhost courierlocal: id=006B85BB.43CC1C7B.00007CCA,
>> from=<test@dosalcubo.com>, addr=<test@dosalcubo.com>: maildrop: Timeout
>> quota exceeded.

>
>
> localtimeout is Courier's local mail delivery timeout.
>
> You are running maildrop as part of local mail delivery, and maildrop
> has its own 5 minute, fixed timeout.
>
> Mail should not take more than five minutes to get delivered. If it's
> taking longer than that, something is broken.
>
> The number of local mail delivery slots is limited. A broken local mail
> delivery script will quickly use up all available delivery slots and
> block delivery of mail to other mailboxes. This is unacceptable.
>
> You're trying to fix the symptom, instead of the underlying disease.
> Fix the disease instead.
>


Indeed!

A closer look at the filter revealed that the as_string method of
Mail::Internet was taking ages.
I changed the script a little and the problem is fixed, delivery is
working again.
Damn perl modules.

Thanks.-


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=...486&dat=121642
_______________________________________________
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/.../courier-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:16 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0