firstly, i apologise if this is in the wrong place, i would appreciate it if a moderator can move it to a more appropriate location.
I read the man pages for/usr/bin/mail and /usr/bin/mailx and but they didn't really help. I read somewhere in them that I need to create a .mailrc file in my home directory which I did as below:-
i then tried to send a test email using the command:-
mailx -s "test" -r "firstname.lastname@example.org" recipient.address@targ****etdomain.com -a myaccount
upon pressing enter, i could type things (i presume the email body?) and pressing control-d returned "EOT" and back to the command prompt.
The recipient however, did not get an email.
Naturally, I need to configure something somewhere so that nagios will send an email notificiation out to the contacts etc.
I am on a LAN, the mailserver (exchange) is at 192.168.100.2 (it supports pop3/smtp), I guess i need to edit the .mailrc fie some more but i have never used it before so I'm stuck hehe.