Mon, 20 Sep 2004, by LRivas@oxiquim.cl:
Id like to ask something similar:
I dont want to be running postfix all the time, but id like to use some cron jobs to send mail messages to somewhere else (for example a crontab for /usr/local/bin/rootkit | mail mymail@anorherdomain.com -s "Chkrootkit check" ) is there some command to postfix just send this then die?
Crontab calls /usr/lib/sendmail, which is the Postfix drop-in for the 'real' sendmail binary (if Postfix is installed instead of sendmail). You shouldn't have to do anything special to make it 'work', other then to make sure you have an alias in /etc/aliases for root like: root: joeuser The mail will end up in /var/spool/mail/<joeuser> where any mail client that knows how to read spool files can be used. Theo -- Theo v. Werkhoven Registered Linux user# 99872 http://counter.li.org ICBM 52 13 27N , 4 29 45E. + ICQ: 277217131 SUSE 9.1 + Jabber: gurp@nedlinux.nl Kernel 2.6.5 + MSN: twe-msn@ferrets4me.xs4all.nl See headers for PGP/GPG info. +