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
ossec-maild Issue with V2.9.0 #1122
Comments
On Fri, 12 May 2017, JohnMelody wrote:
After a yum upgrade from 2.8.3 to 2.9.0 on Centos 6 - the email alerts
do not work
The mail configuration uses "localhost" as the smtp server (postfix) and
it was working perfectly prior to the upgrade, I get the following
error:
2017/05/12 16:29:42 ossec-maild(1223): ERROR: Error Sending email to
localhost (smtp server)
The problem seems to be in the ossec-maild executable. I replaced the
V2.9.0 with the old V2.8.3 executable and everything works as before. So
I have a V2.9.0 installation with the maild at V2.8.3
Has anyone else had a problem with this? Is there further configuration
required for maild on V2.9.0 or is there something else we need to
configure on the smtp server?
Does localhost exist in /etc/hosts or /var/ossec/etc/hosts? Otherwise,
try changing localhost to ::1 or 127.0.0.1 in ossec.conf
Antonio Querubin
e-mail: tony@lavanauts.org
xmpp: antonioquerubin@gmail.com
|
Same problem here. localhost exists in /etc/hosts and postfix can send mails. |
Same problem here. Seems that sender and recipient address from config is not considered any more. |
After upgrading to 2.9.1 it couldn't send email to localhost. After changing |
I tried added "127.0.0.1 localhost" to /var/ossec/etc/hosts but that didn't work. jknockaert's advice worked for me. (Thanks!) |
After updating to 2.9.2 with "127.0.0.1" mail alerts are working fine. |
Thanks Antonio, changing "localhost" by "127.0.0.1" fixed the problem. I also rechecked and localhost is defined in my /etc/hosts file as: So, I don't really now why ossec doesn't accept "localhost". Anyway, it is fixed with: "127.0.0.1" By the way: I don't have the file: "/var/ossec/etc/hosts". I only have: "/etc/hosts" Best regards |
Did you copy the changes into /var/ossec/etc/hosts? maild runs chrooted to /var/ossec |
Dear Dan Ok, that make sense. I copied the host file into /var/ossec/etc/hosts and now it works. Thanks |
Updating to |
which file you have replaced ??? @JohnMelody |
@Jamalc0m Probably |
Another way to address this problem without having to copy /etc/hosts to /var/ossec/etc is to add a period after 'localhost' in ossec.conf.
|
After a yum upgrade from 2.8.3 to 2.9.0 on Centos 6 - the email alerts do not work
The mail configuration uses "localhost" as the smtp server (postfix) and it was working perfectly prior to the upgrade, I get the following error:
2017/05/12 16:29:42 ossec-maild(1223): ERROR: Error Sending email to localhost (smtp server)
The problem seems to be in the ossec-maild executable. I replaced the V2.9.0 with the old V2.8.3 executable and everything works as before. So I have a V2.9.0 installation with the maild at V2.8.3
Has anyone else had a problem with this? Is there further configuration required for maild on V2.9.0 or is there something else we need to configure on the smtp server?
John.
The text was updated successfully, but these errors were encountered: