Hello, I have modify this script "postfix_report.sh" like this according to my installation (look below) and after one week I haven't receive any email in my mailbox. I think there is something wrong. Can you please help me ==== The script ===== #!/bin/sh PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin gunzip /var/log/mail.log.0.gz pflogsumm /var/log/mail.log.0 | formail -c -I"Subject: Mail Statistics" -I"From: pflogsumm@localhost" -I"To: [email protected]" -I"Received: from www.dpi-arobasetelecom.ci ([192.168.2.1])" | sendmail [email protected] gzip /var/log/mail.log.0 exit 0 my domain is : dpi-arobasetelecom.ci and I want to receive the email directly in my mailbox ==== My aliases files ===== # /etc/aliases mailer-daemon: postmaster postmaster: root nobody: root hostmaster: root usenet: root news: root webmaster: root www: root ftp: root abuse: root noc: root security: root root: admins admins: [email protected] clamav: root amavis: root Thanks more for your help !!!!!
Does it work when you run the postfix_report.sh script manually? What are the outputs of Code: which pflogsumm and Code: which sendmail ?
Hi Falko, The output are below marina:~# which pflogsumm /usr/sbin/pflogsumm marina:~# which sendmail /usr/sbin/sendmail marina:~# marina:/usr/local/sbin# ls -l total 12 -rw-r--r-- 1 root staff 380 2007-10-23 09:40 postfix_report.sh -rwxr-xr-x 1 root staff 4626 2007-10-22 10:51 quota_notify marina:/usr/local/sbin# After changing the rights as like below marina:/usr/local/sbin# chmod a+x postfix_report.sh marina:/usr/local/sbin# ./postfix_report.sh marina:/usr/local/sbin# and executing the script manually, it sends me the statistics. Thanks more