System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Email log file to my exchange ID

Frank_108
Occasional Contributor

Email log file to my exchange ID

Dear all,

I want to script the system monitoring tasks, and redirect the output to a file, which should be mailed to my exchange mail ID. I want to automate this activity.

Please let me know how to automate file to be mailed to my mail ID.

Thanks in advance

satish
1 REPLY
Pieter 't Hart
Honored Contributor

Re: Email log file to my exchange ID

configure sendmail to use the exchange server as smtp mail-relay .
within exchange server allow this sendmail- host for smtp-relaying.

then from your script
mailx -s "subjecttext" emailadress < filetosend