My worry at the moment is I’m not monitoring the array very often. If something dies, I’d like to know.
I have a homebrew NAS at home which is Fedora based, that has a Raid 5 md disk array.
The easiest solution is to configure the MTA on the box and forward the root mails somewhere where I can read them.
I installed postfix on the Fedora 11 box with a simple yum command
yum install postfix
There after I configured the /etc/postfix/main.cf. I changed these lines….
myhostname = internode.on.net
inet_interfaces = localhost
relayhost = mail.internode.on.net
The internode mailserver does a lookup of you domain before accepting you email, rightfully so.
As I’m not hosting a mailserver, I’m just using it to send a mail out, I set the mailserver hostname to internode.on.net. This simply means that when the internode server checks the domain, it will resolve.
As I don’t want anyone trying to relay through the server, I’ll set it to only accept connections from localhost. The box sits behind my ADSL router, so it’s protected by NAT from internet based attacks, but if one of my Windows PCs gets infected, it’s possible this box could get used to send spam. There is also the possibility that someone hacks the wireless network and uses the unsuspecting mailserver.
Finally, as I don’t want postfix to try and send the email directly to the receipent mailserver (which in my case is google), I set the internod mailserver as my relayhost.
To test this I created a simple text file which I’ll use to send a test email from the command line.
To: you@yourmail.com
Subject: Hello Test
From: internode.on.net
Hello Test
Now run this command:
sendmail.postfix -t < mail.txt
If you check your /var/log/maillog you should see something like:
Nov 7 18:29:27 postfix/cleanup[5961]: 0B6EA2200F: message-id=<20091107075927.0B6EA2200F@internode.on.net>
Nov 7 18:29:27 postfix/qmgr[5894]: 0B6EA2200F: from=<root@internode.on.net>, size=315, nrcpt=1 (queue active)
Nov 7 18:29:27 postfix/smtp[5964]: 0B6EA2200F: to=<.com>, relay=mail.internode.on.net[203.16.214.182]:25, delay=0.98, delays=0.11/0.01/0.69/0.18, dsn=2.0.0, status=sent (250 ok: Message 466760145 accepted)
Nov 7 18:29:27 postfix/qmgr[5894]: 0B6EA2200F: removed
« What happened to the theme? SLES 10 compatible nrpe init.d script »
