1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Greylisting fails sometimes

Discussion in 'Plesk 9.x for Linux Issues, Fixes, How-To' started by Flachzange, Jul 1, 2009.

  1. Flachzange

    Flachzange Basic Pleskian

    26
     
    Joined:
    Jul 1, 2009
    Messages:
    71
    Likes Received:
    0
    Hi together,

    I enabled greylisting a couple of days ago on my 9.2.1 Plesk. It works very nice in 90% of the time, but sometime mails are not becoming greylisted. They do not appear in the database nor are the respective mailservers on the whitelist. So I had a look into my mail.info log and found the following:

    Code:
    Jul  1 09:39:42 xx greylisting filter[1634]: Starting greylisting filter... 
    Jul  1 09:39:42 xx before-queue[1628]: fork_execv_fd: The child process with pid 1634 killed by signal 6 
    Jul  1 09:39:42 xx before-queue[1628]: call_handlers: Error during call '/opt/psa/handlers/info/05-grey-6It4LH/executable' handler
    Jul  1 09:39:42 xx before-queue[1628]: LOG Internal error in handler '05-grey-6It4LH'. Skip handler.
    
    This happens all times when an email was obviously not greylisted.

    Does anybody has a hint on what to do. I found something in a related thread about the mchk utility.

    Kind regards
    Christoph
     
    Last edited: Jul 3, 2009
  2. Flachzange

    Flachzange Basic Pleskian

    26
     
    Joined:
    Jul 1, 2009
    Messages:
    71
    Likes Received:
    0
    I just found this in the syslog. It seems to be a problem within the greylisting filter:

    Jul 3 12:36:19 xx greylisting filter[19587]: Starting greylisting filter...
    Jul 3 12:36:19 xx before-queue[19576]: handlers_stderr: executable: bw_lists.c:88: gl_mailname_status: Assertion `from != ((void *)0) && *from != '\0'' failed.
    Jul 3 12:36:19 xx before-queue[19576]: fork_execv_fd: The child process with pid 19587 killed by signal 6
    Jul 3 12:36:19 xx before-queue[19576]: call_handlers: Error during call '/opt/psa/handlers/info/05-grey-6It4LH/executable' handler


    Any suggestions
     
    Last edited: Jul 3, 2009
  3. infogalera

    infogalera Guest

    0
     
    Me too:


    Jul 3 13:54:30 host greylisting filter[25829]: Starting greylisting filter...
    Jul 3 13:54:30 host qmail-queue-handlers[25827]: from=
    Jul 3 13:54:30 host qmail-queue-handlers[25827]: to=user@domain.com
    Jul 3 13:54:30 host qmail-queue-handlers[25827]: hook_dir = '/usr/local/psa/handlers/before-queue'
    Jul 3 13:54:30 host qmail-queue-handlers[25827]: recipient[3] = 'user@domain.com'
    Jul 3 13:54:30 host qmail-queue-handlers[25827]: handlers dir = '/usr/local/psa/handlers/before-queue/recipient/user@domain.com'
    Jul 3 13:54:30 host qmail-queue-handlers[25827]: call_handlers: call executable = '/usr/local/psa/handlers/info/20-drweb-JJ37UG/executable'
    Jul 3 13:54:30 host qmail-queue-handlers[25827]: handlers_stderr: PASS
    Jul 3 13:54:30 host qmail-queue-handlers[25827]: call_handlers: PASS during call '/usr/local/psa/handlers/info/20-drweb-JJ37UG/executable' handler
    Jul 3 13:54:30 host qmail-queue-handlers[25827]: call_handlers: call executable = '/usr/local/psa/handlers/info/05-grey-sXgnQ9/executable'
    Jul 3 13:54:30 host qmail-queue-handlers[25827]: handlers_stderr: executable: bw_lists.c:88: gl_mailname_status: Assertion `from != ((void *)0) && *from != '\0'' failed.
    Jul 3 13:54:30 host qmail-queue-handlers[25827]: fork_execv_fd: The child process with pid 25829 killed by signal 6
    Jul 3 13:54:30 host qmail-queue-handlers[25827]: call_handlers: Error during call '/usr/local/psa/handlers/info/05-grey-sXgnQ9/executable' handler
    Jul 3 13:54:30 host qmail-queue-handlers[25827]: LOG Internal error in handler '05-grey-sXgnQ9'. Skip handler.
    Jul 3 13:54:30 host qmail-queue-handlers[25827]: call_handlers: call executable = '/usr/local/psa/handlers/info/10-spf-hvYGMk/executable'
    Jul 3 13:54:30 host qmail-queue-handlers[25827]: handlers_stderr: PASS
    Jul 3 13:54:30 host qmail-queue-handlers[25827]: call_handlers: PASS during call '/usr/local/psa/handlers/info/10-spf-hvYGMk/executable' handler
    Jul 3 13:54:30 host qmail-queue-handlers[25827]: starter: submitter[25831] exited normally



    And... Why does it check the virus before the greylisting?

    Regards.
     
  4. Flachzange

    Flachzange Basic Pleskian

    26
     
    Joined:
    Jul 1, 2009
    Messages:
    71
    Likes Received:
    0
    at least I am not alone...I read your other thread....we both have empty blacklists, could this be the problem?

    we use differnt mailers(qmail and postfix) and the other configurations seem also different.

    thats definitely weird..

    Edit: In my case the virus scanner handler (kaspersky) is called afterwards
     
    Last edited: Jul 3, 2009
  5. infogalera

    infogalera Guest

    0
     
    My black list is not empty bu I have populated with top spammers list from senderbase:


    Black domains patterns list:
    *adsl-dynamic-pool-xxx.fpt.vn*
    *adsl.tpnet.pl*
    *business.telecomitalia.it*
    *dyn.user.ono.com
    *ppp*.revip2.asianet.co.th
    *res.rr.com*
    *retail.telecomitalia.it*
    *static.user.ono.com
    *ttnet.net.tr*
    *virtua.com.br*

    And it works.

    But still other trust sender like "spooler.via_______.es" falls in the blacklist pattern. I had to manually add to my White domains patterns list.
     
  6. Flachzange

    Flachzange Basic Pleskian

    26
     
    Joined:
    Jul 1, 2009
    Messages:
    71
    Likes Received:
    0
    Assertion `from != ((void *)0) && *from != '\0'' failed

    I got a nice hint in a German forum about this. Doesn't this actually mean that an empty "from" field bypasses the greylisting component as the assertion fails?!?!?

    Maybe some developers from Parallels could have a look at this and provide a patch for this issue (in case there is a problem).

    Thank you
    Christoph
     
  7. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,547
    Likes Received:
    1,241
    Location:
    Novosibirsk, Russia
    I have discussed with developers regarding this problem. They have performed some tests some time ago and deeply investigated this problem. Binary patch has been created and tested. They have informed that patch in testing stage now and patch for different OSes will be published as KB article when testing and compiling will be finished. I have no any ETA, but I hope it will be soon.
     
  8. Brujo

    Brujo Regular Pleskian

    28
    57%
    Joined:
    Mar 4, 2006
    Messages:
    278
    Likes Received:
    2
    Location:
    Germany
    Hi,
    it seems I have a similar issue on my server and it seems to be related to the SKIP handler

    any hint what to do?

    Brujo
     
  9. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,547
    Likes Received:
    1,241
    Location:
    Novosibirsk, Russia
  10. Brujo

    Brujo Regular Pleskian

    28
    57%
    Joined:
    Mar 4, 2006
    Messages:
    278
    Likes Received:
    2
    Location:
    Germany
    @Igorg

    I followed your suggestion with the KB but unfortunately it seems not to fix this

    Brujo
     
  11. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,547
    Likes Received:
    1,241
    Location:
    Novosibirsk, Russia
    Brujo,

    If I correctly understood you have 9.2.1 Plesk version?
    If you have not latest Plesk version I strongly recommend update it.
     
  12. Flachzange

    Flachzange Basic Pleskian

    26
     
    Joined:
    Jul 1, 2009
    Messages:
    71
    Likes Received:
    0
    Hi IgorG,

    I just read the hotfix description, but it seems that it addresses an completely other problem. I am not an expert with the internals of plesk's greylisting, but the problem described in my first post seems not to have anything to do with memory allocation. But I will give it a try and report any results later.

    Regards,
    Christoph
     
  13. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,547
    Likes Received:
    1,241
    Location:
    Novosibirsk, Russia
    Christoth,

    Right, initial problem is actual for 9.2.1 version. I have discussed with developers and they have suggested upgrade Plesk to 9.2.3 version for fixing this issue.
     
  14. Flachzange

    Flachzange Basic Pleskian

    26
     
    Joined:
    Jul 1, 2009
    Messages:
    71
    Likes Received:
    0
    ok, thanks for the quick answer. I am currently using 9.2.2, which still has this problem, but I will try to upgrade to 9.2.3 soon and will report then.
     
  15. Brujo

    Brujo Regular Pleskian

    28
    57%
    Joined:
    Mar 4, 2006
    Messages:
    278
    Likes Received:
    2
    Location:
    Germany
    sorry I am already on 9.2.3

    Brujo
     
  16. ananda

    ananda Guest

    0
     
    Greylisting problem still in 9.3

    I have this problem and I'm running Plesk 9.3.
    I have no memory allocation errors in the log, so I don't think the hotfix fixes this case. Also, it's not clear if the hotfix can also be applied to Plesk 9.3.

    Any solutions?
    Linda
     
  17. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,547
    Likes Received:
    1,241
    Location:
    Novosibirsk, Russia
    Did you tried it? http://kb.odin.com/en/6875
     
  18. ananda

    ananda Guest

    0
     
    OK now

    Dear IgorG,
    Thanks for your quick reply.

    I didn't try the HotFix because although we were getting errors like this:
    LOG Internal error in handler '05-grey-VwEO9x'. Skip handler.

    We were never getting memory allocation errors, so the HotFix didn't seem to apply to our case.

    Also, we're running Plesk 9.3 and I was nervous about applying a patch for 9.2.x.

    Our problems started with Plesk going down because we exceeded our disk quota. We were trying to prevent this from happening again by limiting emails, but emails became strangely broken. We updated hoping it would solve the problems, but things just got worse.

    Anyway, emails are OK now after we reinstalled qmail and we don't have the greylisting errors now either.

    Thanks for your help and the help of this forum. We fixed some of the qmail configuration problems we were having with the information here.

    Linda
     
  19. Flachzange

    Flachzange Basic Pleskian

    26
     
    Joined:
    Jul 1, 2009
    Messages:
    71
    Likes Received:
    0
    OK. It is time to dig out my old thread as the spammers are becomming annoying again.

    In the meantime I have updated from Plesk 9.3 to Plesk 9.5 and the above mentioned problem came back again. I am not sure if the problem was gone before, but the spammers massively make use of this problem. I difference to my previous post, the qhandler doesn't report error. The greylisting handler simply skips this message. See the log for details:

     
  20. Deathle55D

    Deathle55D New Pleskian

    6
     
    Joined:
    Feb 7, 2014
    Messages:
    3
    Likes Received:
    0
    Hi everyone,

    It appears the issue exists in the PP 11.5.30:

    -------------------------------------------------------------------------------
    Jun 13 16:07:58 smtp greylisting filter[61169]: Starting greylisting filter...
    Jun 13 16:07:58 smtp greylisting filter[61169]: Bounce message. SKIP
    Jun 13 16:07:58 smtp qmail-queue-handlers[61167]: handlers_stderr: SKIP
    Jun 13 16:07:58 smtp qmail-queue-handlers[61167]: SKIP during call 'grey' handler
    Jun 13 16:07:58 smtp qmail-queue-handlers[61167]: handlers_stderr: SKIP
    Jun 13 16:07:58 smtp qmail-queue-handlers[61167]: SKIP during call 'check-quota' handler
    Jun 13 16:07:58 smtp qmail-queue-handlers[61167]: starter: submitter[61172] exited normally
    Jun 13 16:07:58 smtp qmail-queue-handlers[61174]: Handlers Filter before-queue for qmail started ...
    Jun 13 16:07:58 smtp qmail-local-handlers[61175]: Handlers Filter before-local for qmail started ...
    Jun 13 16:07:58 smtp qmail-local-handlers[61175]: from=
    Jun 13 16:07:58 smtp qmail-queue-handlers[61174]: from=
    Jun 13 16:07:58 smtp qmail-local-handlers[61175]: to=mydomain.com-renew@mydomain.com
    Jun 13 16:07:58 smtp qmail-queue-handlers[61174]: to=renew@mydomain.com
    Jun 13 16:07:58 smtp qmail-local-handlers[61175]: mailbox: /var/qmail/mailnames/mydomain.com
    Jun 13 16:07:58 smtp qmail-local-handlers[61175]: Unable to get sender domain by sender mailname
    Jun 13 16:07:58 smtp qmail-queue-handlers[61174]: Unable to get sender domain by sender mailname
    -------------------------------------------------------------------------------

    Does anybody resolve the issue? Please let me know.

    Thank you!
     
Loading...