Skip to main content

cpanel_exim_system_filter_custom and email que

Comments

5 comments

  • cPanelMichael
    I've noticed since doing so the queue seems to always have delivery emails hung for a while.

    Hello, Could you provide some more information about what's happening to the emails? For instance, does the initial delivery attempt fail? If so, do you notice any specific output for these messages in /var/log/exim_mainlog? Thank you.
    0
  • asmithjr
    Michael, I'm not sure if this is what you mean. This example I see still in queue and here is a line from the exim_mainlog
    2017-09-12 13:06:47 1drodz-0007SP-0a <= printer_ink_options-joanne=groundfloorvideo.com@affordableaccuratetranslations.com H=affordableaccuratetranslations.com (mail.affordableaccuratetranslations.com) [23.247.14.116]:52665 P=esmtp S=23764 id=0.0.0.12.1D32BE9131444E6.449453@mail.affordableaccuratetranslations.com T="Order printer ink online." for joanne@groundfloorvideo.com[\code] when I hit the deliver button (I'm using Configserv Mail Que manager) it shows me
    LOG: MAIN cwd=/usr/local/cpanel/whostmgr/docroot 4 args: exim -v -M 1drodz-0007SP-0a delivering 1drodz-0007SP-0a LOG: MAIN => /dev/null R=central_filter T=**bypassed** LOG: MAIN Completed
    and is cleared from the queue this is what is in the /var/log/filter.log
    2017-09-12 13:06:47 "Printer Ink Options" ***SPAM*** Order printer ink online. (subject contains SPAM)
    0
  • cPanelMichael
    Hello, You may want to consider breaking down those filter rules into smaller individual filters to see if that improves the performance. Here's a quote from our filter documentation: We strongly recommend that you use multiple, simple filters instead of a single large filter. Exim, the server's mail transfer agent, handles many small rules more efficiently than a single large rule.
    Thank you.
    0
  • asmithjr
    Do you mean like this?
    if ("$h_to:,$h_from" matches " .+@.+\.bid") then logwrite "$tod_log $h_from $h_to (matches ends with bid)" seen finish endif if ("$h_to:,$h_from" matches " .+@.+\.date") then logwrite "$tod_log $h_from $h_to (matches ends with bid)" seen finish endif if ("$h_to:,$h_from" matches " .+@.+\.life") then logwrite "$tod_log $h_from $h_to (matches ends with bid)" seen finish endif
    0
  • cPanelMichael
    Hello, Yes, that's correct. Thank you.
    0

Please sign in to leave a comment.