Results 1 to 6 of 6

Thread: Sends log files by mail with Postfix

  1. #1
    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

  2. #2
    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.

  3. #3
    Join Date
    Oct 2005
    Posts
    2,358

    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
    relayhost = server.notes.domaine.net
    Well there may be after qqchose to side notes, and more

  4. #4
    Join Date
    May 2008
    Posts
    2,134

    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 .

  5. #5
    Join Date
    Oct 2005
    Posts
    2,358

    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

  6. #6
    Join Date
    Dec 2008
    Posts
    322

    Re: Sends log files by mail with Postfix


Similar Threads

  1. Which you recommend between sendmail, postfix and qmail
    By Indivar in forum Technology & Internet
    Replies: 5
    Last Post: 21-11-2010, 12:01 AM
  2. Replies: 2
    Last Post: 10-06-2010, 08:21 PM
  3. How to Move spam mail to Plesk 9 with Postfix
    By Salome in forum Technology & Internet
    Replies: 2
    Last Post: 08-06-2009, 09:25 AM
  4. How to handle bounced postfix message
    By Yakov in forum Software Development
    Replies: 3
    Last Post: 18-05-2009, 06:56 PM
  5. Mail box that sends spam, viruses svchost.exe?
    By Lantus in forum Networking & Security
    Replies: 3
    Last Post: 18-12-2008, 06:14 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,955,139.99427 seconds with 16 queries