Re: Fwd: multiple email addresses

Hugo van der Kooij <[email protected]>
Newsgroups gmane.comp.log.logwatch.devel
Message-ID <[email protected]>
On Sat, 12 May 2007, Mike Tremaine wrote:

> Kirk Bauer wrote:
>> Any takers?  I never do anything fancy with the emailing myself.
>>
>> ---------- Forwarded message ----------
>> From: Gabor Adam TOTH <[email protected]>
>> Date: Sun, 13 May 2007 02:01:48 +0200
>> Subject: multiple email addresses
>> To: [email protected]
>>
>> I have to send reports to different email addresses for each host so I
>> made this small patch.
>> It uses MailTo_host config options to set To: headers and falls back to
>> MailTo if no such option found. Multiple email addresses can be
>> seperated by spaces.
>>
>> It also fixes a bug, multiple MIME headers were written to emails if
>> MultiEmail was set.
>>
>> Usage:
>> logwatch.conf:
>>
>> SplitHosts = Yes
>> MultiEmail = Yes
>> MailTo = [email protected]
>> MailTo_host1 = [email protected]
>> MailTo_host2 = [email protected] [email protected]
>
> I've always just pointed it at an alias in /etc/aliases . Usually I use
> something like logreports. However I don't see why a comma separated
> list would not work?
>
> Has anyone tried
>
> MailTo = "[email protected], [email protected]"

I think Gabor points out that the patch allows you to use a central syslog 
server and send reports to an address based on the hostname in the 
logging.

Hugo.

-- 
 	[email protected]	http://hugo.vanderkooij.org/
 	    This message is using 100% recycled electrons.

 	Some men see computers as they are and say "Windows"
 	I use computers with Linux and say "Why Windows?"
 		(Thanks JFK, for the insight.)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.