On 11/4/2013 9:47 PM, inteq wrote:
> Decided to tar my log and send it.
> Tested with the yesterday log containing malware links and it works.(so far)
> 
> Thank you for your input
> 
> My approach:
> 
> #!/bin/bash
> # Use apt-get install sendemail (this is NOT sendmail) if you do not have it
> /usr/sbin/pflogsumm -d today --problems_first --smtpd-stats
> /var/log/mail.log > log.txt 2>&1
> tar czf postfix.tar.gz log.txt
> sendemail -f sender[at]domain[dot]com -t recipient[at]domain[dot]com -m
> "Check the attached file" -u "Postfix report for $(hostname) on $(date)" -a
> postfix.tar.gz

You're making this so much harder than it needs to be. Just bypass
clamav.

You're on the right track with the sendemail program. Use the -s
server:port option to send the mail to a port that doesn't have
clamav enabled, typically something like

sendemail ... -s 127.0.0.1:10025 ...




  -- Noel Jones

Reply via email to