Am 02.08.2017 um 12:59 schrieb Wietse Venema: > Why mess with NDRs, when you could reduce the intensity of the flow > to the mbox servers? >
As usual thanks to Wietse for putting me in the right direction. :-) It was not the amount of msg but the message size itself which was problematic. My sieve script calls external commands (my scripts) to parse out urls from content and ips from received headers for such messages. After looking at the queue I saw that messages which stuck were always bigger than 2mb So looking deeper at my scripts I found that they were veeeeery slow in reading the message from stdin. After optimizing the read from stdin and some other little changes even huge messages are now processed in quite short time. My scripts now use only the first 1024 lines from message content to look for urls instead the whole content. And in sieve script I added a size limit that messages over 2mb are not even passed to my scripts Again thanks for your help Wietse Cheers tobi