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?
Thanks in advance
LeoRivas
"Theo v. Werkhoven"
On Sun, 19 Sep 2004 16:56:19 -0700 Scott Leighton
wrote: On Sunday 19 September 2004 4:41 pm, Martin Farmilo wrote:
On Sunday 19 Sep 2004 13:12, Patrick Shanahan wrote:
No, incorrect. You *need* an MTA, SuSE defaults to postfix, or you would not receive system messages, reports, etc. KMail is incapable of handling this.
Hmm - this just caught my eye. I've been running Suse for around 6 months now, and had wondered about this issue. Am I supposed to be receiving emails from the system ? If
Some messages for 'root' are useful te receive, like those from YOU and some CRONTAB messages (failure to update virus-sig files, logrotate etc.).
so, is there something special (perhaps in kmail) I need to do to receive them ? Postfix is running on the system, but I've done nothing myself to manually configure it, and indeed can't find anything in the help / admin guide about it. I'd thought about disabling postfix, since it doesn't appear to be serving any useful purpose here, as I fetch / send all my mail direct via my ISPs servers.
Alias root to your email account at your ISP and set your ISP's mail server as the relay_host and you should get any local mail in your normal mailbox.
Hmm.. why not just set it up inside KMail to receive messages from the localhost? That way you wouldn't even to send it outside your pc/network and reveal things that are happening inside your pc.
Kmail can be configured to read from a mailspool afaik, so that should be sufficient to get the local mail. 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. + (See attached file: att1j8pq.dat)
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. +
The Monday 2004-09-20 at 12:37 -0400, LRivas@oxiquim.cl wrote:
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?
A mail program calling the sendmail binary (which is provided by postfix) should work. I don't know if it will work, but you can try. However, delivery to the outside by this method is "risky". If the first attempt fails, it will be queued, but as the daemon is not running, it will never try again. -- Cheers, Carlos Robinson
participants (3)
-
Carlos E. R.
-
LRivas@oxiquim.cl
-
Theo v. Werkhoven