Results 1 to 12 of 12

Thread: HOWTO: install syslog-ng

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #6
    Join Date
    Aug 2007
    Location
    Austria
    Posts
    52
    Quote Originally Posted by Maccro View Post
    Ok, so as an alternative to viewing the logs in the web interface I've been trying to set up a way to email alerts and daily syslogs. I can see where to set up at least the alerts w/in syslog-ng but I have no idea how to make the mail part happen. I understand I'll need to connect out to a remote SMTP server (my ISP has one and I know the hostname and authentication pieces), but I'm not sure how to go about making that work. I've installed sendmail and played around with it a bit, but really am too green to figure out how to use it to connect out to a remote SMTP server. Can someone point me in the right direction? I'll be happy to write a HOW-TO once I can get this all figured out.

    Thanks!
    i've installed successfully and use the package esmtp
    it is not an email (or smtp) server but it is a smtp relay client.
    with esmtp you can send mails using your already existing email account with any provider which allows smtp

    you can install it with "ipkg install esmtp"


    then you need to edit the file /opt/etc/esmtprc with your account infos
    # /opt/etc/esmtprc
    #

    identity = username@email.org
    hostname = smtphost.email.org:25
    username = "username"
    password = "password"

    after that you can use it like sendmail

    example: sending a mail to user@mail.com, note the two "\n\n" before the Message text !!

    echo -e "From: me\nTo: user@mail.com\nSubject: test\n\nMessage: hello world" | sendmail user@mail.com
    Last edited by tiwag; 23-09-2007 at 07:55.
    tiwag

Similar Threads

  1. HOWTO install debian on 128 mb usb stick
    By iiivx in forum WL-500gP Tutorials
    Replies: 49
    Last Post: 11-09-2010, 07:26
  2. Русские имена торрентов
    By Mirage-net in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 110
    Last Post: 18-06-2010, 14:16
  3. И снова про мультикаст...
    By Sabur in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 477
    Last Post: 17-05-2010, 05:57
  4. HowTo install a lightweight blog server
    By Tamadite in forum WL-500g/WL-500gx Tutorials
    Replies: 0
    Last Post: 03-12-2006, 01:46
  5. HowTo install OpenVPN server with multiple clients
    By JR-__- in forum WL-500g/WL-500gx Tutorials
    Replies: 0
    Last Post: 08-06-2006, 16:10

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •