It seems the default behavior of the AIX print queue is to report queue errors to the user that submitted the print job. We have several hundred queues used by unattended scripts and cron jobs running under system accounts that are not intended to recieve mail.
What I would like to do, and have tried unsuccessfully to do, is to stop these error reports from being directed to the users that submit jobs, and instead direct them to another address. This is what I have tried, with no effect:
chque -q'queue_name' -a"recovery_type = sendmail "'firstname.lastname@example.org'
This added the expected configuration to /etc/qconfig. I restarted lpd, but error messages are still being sent to users. Furthermore, error messages are not delivered to email@example.com.
This is on AIX 5.3. A typical error that I'd like to redirect:
Message from queueing system: Queue hs-3841:@print went down, job is still queued: Backend: /usr/lib/lpd/rembak -S print.example.com -P hs-3841 -N \ /usr/lib/lpd/aixshort /var/spool/lpd/dfA731sub.sub.example.com.1280424810.1028194 Backend Exit Value: EXITFATAL (0100) Job Submit Time: Mar 21 03:33:30 2011, Current Time: Mar 21 12:00:51 2011 Use local problem reporting procedures.
I know I can adjust rembak to try to avoid errors due intermittent remote queue downtime, but how can I configure lpd in such a way as to direct queue errors to an address other than the user's?