![]() |
Postfix Quota Notification Email Script
Hi,
I've followed the guide for "Virtual Users And Domains With Postfix, Courier And MySQL". In one of the page, there was something about setting up a notification guide using a file called quota_notify, which runs in crontab. This is the content Quote:
Quote:
Anyone can help me with this. Thanks. |
|
Quote:
Quote:
Anyway, I sorted this out. Look for these Quote:
Quote:
Hope that will be of some help to anyone else. PS : Maybe the author of the guide can update and put a note in that guide. Thanks again. |
mail quota alert postfix
Hi when I try to put this script in crontab and then exceute cron tab it says an error in the first 4 lines that
use strict; use command not found my $POSTFIX_CF = "/etc/postfix/main.cf" my command not found my $MAILPROG = "/usr/sbin/sendmail -t" my command not found my $WARNPERCENT = 80 my command not found my @POSTMASTERS = 'quota@premediaglobal.com' my command not found can anybody help me out of this. so that I can put this on my crontab for monitoring the quota alert... thanks and regards vigrem rajesh. M |
Does your script begin with
Code:
#!/usr/bin/perl -w |
postfix quota notification email script
Yes my script starts as u mentioned..
when I try to execute the script from shell simply like #./mail_quota_alert.pl it execute normally and no error it shows mails are triggered. but when I try to put the same script in cron job it shows the above following error. regards vigrem |
What exactly did you put in your cron job?
|
postfix quota notification email
this is the entry I put in cron tab
* */0 * * * /bin/sh /root/mail_quota_alert.pl this is the entry I made...I made it make a mail trigger every day midnight.. check this and let me know..if am wrong.. thanks & regards vigrem rajesh |
* */0 * * *
doesn't look ok. Please take a look at http://www.howtoforge.com/a-short-in...n-to-cron-jobs |
mail quota alert postfix
As you guided I have changed the cron tab..But when mail is triggered there only the layout is shown, no information regarding quota of the user is displayed.
just refer below how the mail is received. DAILY QUOTA REPORT: ---------------------------------------------- | % USAGE | ACCOUNT NAME | ---------------------------------------------- I want to check the script while the output is given..no username or used quota percentage is displayed. thanks and regards vigrem rajesh. |
| All times are GMT +2. The time now is 19:32. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.