Sends log files by mail with Postfix
Hello all,
I need your lights to see if it is already possible to send mail (without having to mail servers) located in positions, environmental GNU / Linux Fedora to Windows XP Pro, using a small script Bash?
On the linux server, the crontab performs backups of databases and the directory / www. Then balance it all, in a log file.
CODE
2 8 * * * rsync-auz / var/www/ur210intra / backup &> / var/log/backups/ur210intra_matin.log
I would like a mail is sent on a Windows (in the same network) with the contents of the log file.
It would have to mail or posted to 3 positions within the same network as the linux server and the user receives the mail in his mail client LOTUS. Possible or not?
Thank you in advanc
Re: Sends log files by mail with Postfix
Hm, it's pretty difficult not to have a MTA.
In general you can do a simple echo "something" | mail foobar @ tld. Otherwise without MTA, you can use mutt or syslog for more Syslog has a port and a dedicated daemon.
Otherwise as I said you really have to want to install a Linux distribution without MTA.
Re: Sends log files by mail with Postfix
You can configure your MTA to relay mail server to Lotus Notes. There is already an MTA on Fedora 9 (core no longer exists). Default is sendmail, but postfix is easier to configure.
Under postfix, add 1 line in / etc / postfix / main.cf
CODE
Quote:
relayhost = server.notes.domaine.net
Well there may be after qqchose to side notes, and more
Re: Sends log files by mail with Postfix
you can prefer to turn to Sendmail because it is already giving up. Apparently, we must edit / etc / mail / sendmail.mc and uncomment the line 'DAEMON_OPTIONS' to search for network devices, and allow sending mail on the LAN.
Then add a few aliases (/ etc / aliases) of the type:
CODE
root: mon_mail@mon_domaine.com
Then with something like:
CODE
echo "hello world" | mail-s test root
root mails will be sent to the addresses specified .
Re: Sends log files by mail with Postfix
I know if this is true for the sendmail aliases but after amendment requires a script to run mills and take into account the changes. Maybe the same thing for. Mc, that's what makes horrible with sendmail ...
Listening on a port network may not be mandatory, unless other client machines will use this SMTP server to send mail. Mais bon je suis pas sur du tout
Re: Sends log files by mail with Postfix