Go Back   TechArena Community > Technology > Technology & Internet
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 25-02-2009
Member
 
Join Date: Jan 2009
Posts: 36
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
Reply With Quote
  #2  
Old 25-02-2009
Member
 
Join Date: Dec 2008
Posts: 196
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.
Reply With Quote
  #3  
Old 25-02-2009
Member
 
Join Date: Oct 2005
Posts: 2,357
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
Reply With Quote
  #4  
Old 25-02-2009
Member
 
Join Date: May 2008
Posts: 2,131
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 .
Reply With Quote
  #5  
Old 25-02-2009
Member
 
Join Date: Oct 2005
Posts: 2,357
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
Reply With Quote
  #6  
Old 25-02-2009
Member
 
Join Date: Dec 2008
Posts: 322
Re: Sends log files by mail with Postfix

try here for more help
http://www.postfix.org/BASIC_CONFIGURATION_README.html
Reply With Quote
Reply

  TechArena Community > Technology > Technology & Internet
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Sends log files by mail with Postfix"
Thread Thread Starter Forum Replies Last Post
Which you recommend between sendmail, postfix and qmail Indivar Technology & Internet 5 21-11-2010 12:01 AM
importing outlook pst-files and Mozilla Thunderbird-files into Windows Mail IJAYA Windows Vista Mail 2 10-06-2010 08:21 PM
How to Move spam mail to Plesk 9 with Postfix Salome Technology & Internet 2 08-06-2009 09:25 AM
How to handle bounced postfix message Yakov Software Development 3 18-05-2009 06:56 PM
Mail box that sends spam, viruses svchost.exe? Lantus Networking & Security 3 18-12-2008 06:14 PM


All times are GMT +5.5. The time now is 02:21 AM.