Mailinglist Archive: opensuse (3349 mails)

< Previous Next >
Re: [SLE] Logrotate: sending rotated logs to multiple email addresses and how to change subject and from field ?
  • From: Anders Johansson <andjoh@xxxxxxxxxx>
  • Date: Sat, 7 May 2005 14:24:52 +0200
  • Message-id: <200505071424.52494.andjoh@xxxxxxxxxx>
On Saturday 07 May 2005 10:40, Robert Rozman wrote:
> Hi,
> I'm using logrotate to rotate my logs. But would like to send rotated logs
> to multiple email addresses and also customize subject and from fields in
> email...
> I haven't found any info on that on Internet - has anyone working example
> of such customizations and sending to multiple email addresses ? Any advice
> or pointer to proper docs - man logrotate doesn't mention this ?
> Thanks in advance,

You could just create an alias in /etc/aliases pointing to the addresses you
want to send to, and then set that alias as the mail address in logrotate.

The subject is hard coded though. But it's fairly simple to change the source
to allow a subject to be set.

< Previous Next >
Follow Ups