Thanks Biju !

See http://untroubled.org/qmail-notify/ Install for CentOS 4.x -I think that goes for CentOS 5.x .
cd  /path/download/
wget http://untroubled.org/qmail-notify/qmail-notify-0.93-1.src.rpm
rpmbuild --rebuild --with cnt40 qmail-notify-0.93-1.src.rpm
rpm -Uvh /usr/src/redhat/RPMS/i386/qmail-notify-0.93-1.i386.rpm

qmail-notify-debuginfo-0.93-1.i386.rpm => Debug information for package qmail-notify
........................
/etc/cron.hourly/qmail-notify
/usr/bin/qmail-notify
/var/run/qmail-notify.time
/usr/share/doc/qmail-notify-0.93
...............................

Original  /etc/cron.hourly/qmail-notify :
----------------
#!/bin/sh
exec qmail-notify -r
-------------------

qmail-notify -h
usage: qmail-notify [flags]
 -b          Copy N bytes from the original message into the notice.
             (Defaults to entire message)
 -d          Show debugging messages
 -f          Load the bounce response message from a file
 -m          Encode the original message as a MIME attachment
 -N          Don't send messages, just print them out
-r Only respond to senders with a domain listed in qmail's rcpthosts -t Send notifications for messages that are at least N seconds old
             (Defaults to 4 hours)
 -x          Send a copy of the notification to the given recipient
 -h, --help  Display this help and exit

change /etc/cron.hourly/qmail-notify EX: exec qmail-notify -r -t 3600 -f /path/message.txt -x 'e-mail address' message.txt => bounce response message with your configuration (language , company name, etc.) !!! The file must contain three instances of %s. !!!
..................
qmail-notify -d

qmail-notify: me='mail.domain.com'
qmail-notify: queuelifetime=28800
qmail-notify: extra_rcpt='(null)' => -x Send a copy of the notification to the given recipient ( Defaults '0' )
qmail-notify: now=1225077754
qmail-notify: lastrun=1225076655
qmail-notify: opt_age=14400 => -t Send notifications for messages that are at least N seconds old ( Defaults to 4 hours )


 Regards,

Constantin IOAJA

---------------------------------------------------------------------
    QmailToaster hosted by: VR Hosted <http://www.vr.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to