Phuc,
Could you more specifically explain how it is not working? What steps did you take to configure it?
Thanks,
Wes
I use Security Onion for my project, it's firt time I use it. But I would like to configure Email Alert, I used to cofigure by use link https://github.com/Security-Onion-Solutions/security-onion/wiki/Email but it not working.
Thank you for helping.
--
Follow Security Onion on Twitter!
https://twitter.com/securityonion
---
You received this message because you are subscribed to the Google Groups "security-onion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to security-onion+unsubscribe@googlegroups.com.
To post to this group, send email to security-onion@googlegroups.com.
Visit this group at https://groups.google.com/group/security-onion.
For more options, visit https://groups.google.com/d/optout.
Did you follow the steps here as well?
Thanks,
Wes
Yes, you can try it if you would rather it configure everything for you. It will download/install mailutils and postfix if they are not already installed.
Thanks,
Wes
Can I use "sudo so-email" for Automatic setup, I am try to use manual but it not working
What do you mean by "it is not working". What kind of error message do you receive?
Thanks,
Wes
I try with "sudo so-email" but it is still not working
Phuc,
You can get an idea of how so-email configures sguild.email here:
https://github.com/Security-Onion-Solutions/securityonion-setup/blob/master/bin/so-email#L358-L365
As you can see, if using the method configured with Postifx/Mailutils as in so-email, you will need to set the SMTP server to "localhost", and the "to" address to "root@localhost". This will allow Sguil to forward alert emails to root's inbox -- from there, Postfix will relay the mail to the SMTP server.
Another note about using an external SMTP server -- if Gmail requires authentication, Im assuming authentication would need to be configured for Postfix, similar to here:
https://www.linode.com/docs/email/postfix/postfix-smtp-debian7
You can see how the notification address (in your cae, "phuc@....") and Postfix are configured with so-email here:
https://github.com/Security-Onion-Solutions/securityonion-setup/blob/master/bin/so-email#L324-L329
The "relayhost" variable in Postfix's main.cf should be the destination SMTP server (in your case, external SMTP server).
You'll need to modify /etc/aliases with your destination email address for root's mail and run newliases if it isn't already configured.
Hope this helps.
Thanks,
Wes
I can't say I use the Sguil reporting a lot, so I will have to take a look at this. Are you able to generate some Sguil events using tcpreplay and receive emails for those?
Ex. (On the sensor/standalone) sudo tcpreplay -ieth1 -M10 /opt/samples/*
(Replace eth1 with your sniffing interface)
Thanks,
Wes