What I want to do is to get my mail-systems to somehow give me the filename of the attachment(s) included with a mail. Either in the maillog or in a separate logfile for statistical presentation.
At the mailgate Im using postfix+amavis+spamassassin.
If I set a loglevel of 5 in amavis I see the filename in the maillog but there is now heaps of information (debug) i don't need and it's probably not that effective to run in debug-mode.
Mailserver is using sendmail but I would like to get the filename logging done at the mailgw.
Can any of the installed software do this or is there some other tool I can get to work with postfix/amavis?
Tried to get it working with procmail but..man...my girlfriend kills me if I stay up tapping on this keyboard one more night...