-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Maild does no longer work after upgrade to 3.4.0 #1781
Comments
Extend the check for cases where mail->smtpserver[0] != '/'. If forking a program to send email instead of sending it directly, don't expect there to be a network socket. Don't try to use that socket. Just use the program.
Please test pull request #1783 |
Working again with this fix. Thanks a lot. One more question. ps shows two main ossec-maild processes and a third one (ossec-maild ) when sending emails. Is that intentional or shouldn't there be just one main process and the defunct one only when sending emails?
Thanks a lot for the fast help. |
There is the main process, and the process that initiates network connections. |
o.k., thanks. For me the commit could be merged, the issue closed and a 3.4.1 release would be very nice. Thanks. |
I just installed on my systems from the current git source including the fixing commit and it works. Thanks. So the 3.4.1 release is not necessary for me. But I guess the email notification is important and more people will have the problem with the 3.4.0 release. Thanks again for the fast help and for the fast and working fix. |
Merged into 3.5.0 release |
Hey,
first of all thanks for this project and for all the hard work put into this.
After upgrading to Gossec hids (local install) 3.4.0 on archlinux (all other packages up-to-date) with a manual installation mails are no longer sent.
I did not change anything at the systemd service or any other file or config.
I use msmtp for sending the mails from the root account and tested its functionality. msmtp is working fine.
This is my global section from the config file.
Producing an event that leads to sending an e-mail results in
When changing the smtp_server line to
<smtp_server>/usr/bin/msmtp --from="ossec_
hostname" -t mymail@mail.com</smtp_server>
the error output changes to
It has always worked with the exact same settings before and a downgrade to 3.3 solves the issue. Thanks for any help and looking into this in advance.
Kind regards,
Tom
The text was updated successfully, but these errors were encountered: