7 May
2005
7 May
'05
12:24
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.