[opensuse] MAILADDR in mdadm.conf
I'm monitoring my RAID arrays at regular intervals, and would like mdadm to send me an email if it detects problems. Am I bob@localhost or bob@linux.local? Cron seems to use this second version. Bob -- Registered Linux User #463880 FSFE Member #1300 GPG-FP: A6C1 457C 6DBA B13E 5524 F703 D12A FB79 926B 994E openSUSE 11.2, Kernel 2.6.31.12-0.1-desktop, KDE 4.3.5 Intel Core2 Quad Q9400 2.66GHz, 4GB DDR RAM, nVidia GeForce 9600GT -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 2010-03-05 21:56, Bob Williams wrote:
I'm monitoring my RAID arrays at regular intervals, and would like mdadm to send me an email if it detects problems. Am I bob@localhost or bob@linux.local? Cron seems to use this second version.
Probably both. - -- Cheers / Saludos, Carlos E. R. (from 11.2 x86_64 "Emerald" GM (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iF4EAREIAAYFAkuRn5oACgkQja8UbcUWM1zHNQD9Gf+B4Hum0qviVPXomgvDn8w2 NubnLrqs0kmU+sLAIXsBAIl6Wm5UNpXOU9c3LYaO3P9WkRH2uJ5X22KN/WSJzQ/A =pBaB -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 3/5/2010 12:56 PM, Bob Williams wrote:
I'm monitoring my RAID arrays at regular intervals, and would like mdadm to send me an email if it detects problems. Am I bob@localhost or bob@linux.local? Cron seems to use this second version.
Bob
linux@barrowhillfarm.org.uk works just fine. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Saturday 06 Mar 2010 03:03:17 John Andersen wrote:
On 3/5/2010 12:56 PM, Bob Williams wrote:
I'm monitoring my RAID arrays at regular intervals, and would like mdadm to send me an email if it detects problems. Am I bob@localhost or bob@linux.local? Cron seems to use this second version.
Bob
linux@barrowhillfarm.org.uk works just fine.
I have a mail account set up in Kmail to receive system mail. Would linux@barrowhillfarm.org.uk get delivered there? I suspect it would go into my normal Inbox. Of course, I could then set up a filter to send it to my System mail folder, but I'd like to understand a bit more how system mail works. Thanks, Bob -- Registered Linux User #463880 FSFE Member #1300 GPG-FP: A6C1 457C 6DBA B13E 5524 F703 D12A FB79 926B 994E openSUSE 11.2, Kernel 2.6.31.12-0.1-desktop, KDE 4.3.5 Intel Core2 Quad Q9400 2.66GHz, 4GB DDR RAM, nVidia GeForce 9600GT -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Bob Williams wrote:
On Saturday 06 Mar 2010 03:03:17 John Andersen wrote:
On 3/5/2010 12:56 PM, Bob Williams wrote:
I'm monitoring my RAID arrays at regular intervals, and would like mdadm to send me an email if it detects problems. Am I bob@localhost or bob@linux.local? Cron seems to use this second version.
Bob
linux@barrowhillfarm.org.uk works just fine.
I have a mail account set up in Kmail to receive system mail. Would linux@barrowhillfarm.org.uk get delivered there?
Assuming "system mail" = mail to "root@localhost", the answer is no.
I suspect it would go into my normal Inbox.
Unless you've configured your local mail server to receive mail for "barrowhillfarm.org.uk", I suspect it would get sent external to demon.net. /Per -- Per Jessen, Zürich (1.7°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Bob Williams wrote:
I'm monitoring my RAID arrays at regular intervals, and would like mdadm to send me an email if it detects problems. Am I bob@localhost or bob@linux.local? Cron seems to use this second version.
<yourusername>@localhost should work in the default setup. Presumably bob@localhost. /Per -- Per Jessen, Zürich (1.7°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Saturday 06 Mar 2010 07:44:17 Per Jessen wrote:
Bob Williams wrote:
I'm monitoring my RAID arrays at regular intervals, and would like mdadm to send me an email if it detects problems. Am I bob@localhost or bob@linux.local? Cron seems to use this second version.
<yourusername>@localhost should work in the default setup. Presumably bob@localhost.
/Per
Thanks. That tallies with Carlos' advice. I run rsnapshot (which uses rsync under the bonnet), and when it sends me error messages they are addressed to bob@linux.local. The machine's hostname is barrowhillfarm. My initial guess would have been bob@localhost for internal mail, as you suggest. Bob -- Registered Linux User #463880 FSFE Member #1300 GPG-FP: A6C1 457C 6DBA B13E 5524 F703 D12A FB79 926B 994E openSUSE 11.2, Kernel 2.6.31.12-0.1-desktop, KDE 4.3.5 Intel Core2 Quad Q9400 2.66GHz, 4GB DDR RAM, nVidia GeForce 9600GT -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Bob Williams wrote:
On Saturday 06 Mar 2010 07:44:17 Per Jessen wrote:
Bob Williams wrote:
I'm monitoring my RAID arrays at regular intervals, and would like mdadm to send me an email if it detects problems. Am I bob@localhost or bob@linux.local? Cron seems to use this second version.
<yourusername>@localhost should work in the default setup. Presumably bob@localhost.
/Per
Thanks. That tallies with Carlos' advice. I run rsnapshot (which uses rsync under the bonnet), and when it sends me error messages they are addressed to bob@linux.local. The machine's hostname is barrowhillfarm. My initial guess would have been bob@localhost for internal mail, as you suggest.
If your local domain is configured as "linux.local", I would expect "bob@barrowhillfarm.linux.local" to work too. If your root mail is copied to your user, you could even just leave MAILADDR as "root@localhost". /Per -- Per Jessen, Zürich (1.7°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Saturday 06 Mar 2010 08:05:34 Per Jessen wrote:
Bob Williams wrote:
On Saturday 06 Mar 2010 07:44:17 Per Jessen wrote:
Bob Williams wrote:
I'm monitoring my RAID arrays at regular intervals, and would like mdadm to send me an email if it detects problems. Am I bob@localhost or bob@linux.local? Cron seems to use this second version.
<yourusername>@localhost should work in the default setup. Presumably bob@localhost.
/Per
Thanks. That tallies with Carlos' advice. I run rsnapshot (which uses rsync under the bonnet), and when it sends me error messages they are addressed to bob@linux.local. The machine's hostname is barrowhillfarm. My initial guess would have been bob@localhost for internal mail, as you suggest.
If your local domain is configured as "linux.local", I would expect "bob@barrowhillfarm.linux.local" to work too. If your root mail is copied to your user, you could even just leave MAILADDR as "root@localhost".
/Per
Ah. I always choose for root mail to get delivered to my local user, so perhaps your last suggestion is the easiest and obvious choice. No need to worry about who I am ;) Thanks Bob -- Registered Linux User #463880 FSFE Member #1300 GPG-FP: A6C1 457C 6DBA B13E 5524 F703 D12A FB79 926B 994E openSUSE 11.2, Kernel 2.6.31.12-0.1-desktop, KDE 4.3.5 Intel Core2 Quad Q9400 2.66GHz, 4GB DDR RAM, nVidia GeForce 9600GT -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Saturday, 2010-03-06 at 07:56 -0000, Bob Williams wrote:
On Saturday 06 Mar 2010 07:44:17 Per Jessen wrote:
<yourusername>@localhost should work in the default setup. Presumably bob@localhost.
Thanks. That tallies with Carlos' advice. I run rsnapshot (which uses rsync under the bonnet), and when it sends me error messages they are addressed to bob@linux.local. The machine's hostname is barrowhillfarm. My initial guess would have been bob@localhost for internal mail, as you suggest.
Longer answer than my previous one. "root@localhost" is usually the best bet. Then youruser@localhost, which the previous one links to. Then the same to @linux.local, because that's typically the default machine name - but then, localhost is a safer bet because it will always be localhost regardless of its actual name. Easier to put on config files. Lot of choices. It is possible to use an external, real name, but that needs postfix to be configured to send email to the outside "real" world, which normally can't do because the servers out there will reject invented names and such (for your server). And it doesn't make much sense anyway, as it will loop back to the same machine when you fetch mail. It makes sense when you are supervising a machine you are not normally sitting at, though. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkuSIRMACgkQtTMYHG2NR9UjZACgh7GUF3ziV0/LSc1yAWYNi3tR xbIAnA+kMGvxU+J37cmEm6Q6SZqh5TtS =074x -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Saturday 06 Mar 2010 09:31:55 Carlos E. R. wrote:
Longer answer than my previous one.
"root@localhost" is usually the best bet.
Many thanks. I've settled for root@localhost, as suggested. Bob -- Registered Linux User #463880 FSFE Member #1300 GPG-FP: A6C1 457C 6DBA B13E 5524 F703 D12A FB79 926B 994E openSUSE 11.2, Kernel 2.6.31.12-0.1-desktop, KDE 4.3.5 Intel Core2 Quad Q9400 2.66GHz, 4GB DDR RAM, nVidia GeForce 9600GT -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (4)
-
Bob Williams
-
Carlos E. R.
-
John Andersen
-
Per Jessen