Hi Erric,
here's my Policy Layout
# attr NAME=Attachment Test
if pmx_number_of_attachments :over 0 {
# attr NAME=Attachment Test 2
if pmx_attachment_size :over 2 {
pmx_mark "fn" "%%ATTACHMENT_NAMES%%";
}
pmx_attachment_log;
}
After that it's the regular white- and blacklists
And if the messages survives all that, it's accepted and delivered.
Sample Logline for a message with two attachments
first being an MP3, second being a PDF
2010-02-01T22:21:27 q=4B6745D0_7086_240280_1 f=<whatever@test.somewhere> t=<pmx@test.somewhere> Size=4649189 nixspam=false pmx_reason=?q?Opt_Out at=1,2667396,application/pdf at=1,4648561,multipart/mixed at=1,1980524,audio/mpeg at=1,2,text/plain b=ok s=Attachment_log_sample h=SXL_IP_DYNAMIC h=BODY_SIZE_10000_PLUS h=FORGED_MUA_OUTLOOK h=PDF_ATTACHED h=PDF_ATTACHED_2 h=PDF_ENCRYPT h=PDF_ENCRYPT_HASH h=RDNS_DYNAMIC h=RDNS_SUSP h=RDNS_SUSP_SPECIFIC h=TO_NO_NAME h=__CT h=__CTYPE_HAS_BOUNDARY h=__CTYPE_MULTIPART h=__CTYPE_MULTIPART_MIXED h=__HAS_MSGID h=__HAS_X_MAILER h=__MIME_VERSION h=__OUTLOOK_MUA h=__OUTLOOK_MUA_1 h=__RDNS_DYNAMIC_1 h=__SANE_MSGID h=__TO_MALFORMED_2 h=__USER_AGENT_MS_GENERIC h=__ix.dnsbl.manitu.net_ERROR fn=?q?Boomdeyada.mp3,_BC245XLTom=5FVA.pdf pmx_action=?q?keep,Opt_Out,-,pmx@test.somewhere,pmx@test.somewherevs p=0.269 fur=8.8.8.8 r=test.somewhere tm=7.31 a=a/eom
Hope that helps
Hey Erric,
This is tough to troubleshoot given the information provided as may be a few issues:
1) There could be an issue with where it is within the policy. It sounds like it is in the right place, however, it wouldn't hurt to have support look at your policy.
2) There could be issues with the reporting mechanisms in PMX on your installation.
3) It could be the interface you are looking at (18080 vs. 28443/groups interface).
It would be best to open a ticket with a support request from the manager as all these bits of information are sent and a better technical valuation can be made of your problem without the guess work.
In terms of the policy, try placing it as the second or third line in your policy just to make sure it is working:
require "PureMessage";
pmx_test_mark;
pmx_attachment_log;
Cheers,
MarkJD