1

I am using Cygwin in Windows 7. I am trying to make my syslog-ng daemon send a ssh log via email to me when ever someone tries to log into my computer. I tried using the code below (entered into /etc/syslog-ng/syslog-ng.conf but the smtp driver is not recognized. Is there a way to get it to work?

filter f_ssh {
        program("sshd"); };

    destination d_email_notification {
        smtp(
            host("localhost") port(25)
            from("syslog notification" "syslog@localhost")
            reply_to("syslog" "syslog@localhost")
            to("User" "[email protected]")
            subject("[syslog notification]: ssh message")
            body("Syslog received:\n$MSG")
            );
    };

    log {
        source(s_local);
        filter(f_ssh);
        destination(d_email_notification);
    };
1
  • I have fail2ban sending me alerts and it requires postfix or another MTA to send. You might start by installing postfix in cygwin. Commented Dec 22, 2013 at 3:52

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.