How to always log attachment name?

Andrew Clayton andrew.clayton at
Wed Apr 22 18:26:01 CEST 2015


Using amavisd-new 2.8.0 on CentOS 6.x

I'd like to always log the attachment name (if there is one) whether
it's blocked or not.

I created a really simple custom template in amavisd.conf for testing

    $log_templ = <<'EOD';
    Attachment (%F)

For a banned attachment I get the following logged

    (05889-01) Attachment (application/octet-stream,.asc,test.exe.scr)

However for a clean one I just get

    (05890-01) Attachment ()

I've been trawling through the amavisd Perl script but am having
trouble locating where the decision to provide the attachment details or
not is made.

Any pointers would be appreciated.


More information about the amavis-users mailing list