problems sending mail

Support/Development for OSSEC
catchyoverhang
New Forum User
New Forum User
Posts: 1
Joined: Wed Jan 29, 2025 5:57 pm

problems sending mail

Unread post by catchyoverhang »

Hello, i have been ising ossec 3.7 for about a year now on a debian bookworm machine. I used to get alerts via email but now i dont. My ossec lpgs show the following:

Code: Select all

2025/01/29 11:55:43 rootcheck: INFO: Ending rootcheck scan.
2025/01/29 13:14:00 getaddrinfo: System error
2025/01/29 13:14:00 ossec-maild(1223): ERROR: Error Sending email to mta5.am0.yahoodns.net (smtp server)
2025/01/29 15:14:43 getaddrinfo: System error
2025/01/29 15:14:43 ossec-maild(1223): ERROR: Error Sending email to mta5.am0.yahoodns.net (smtp server)
My ossec.conf contains:

Code: Select all

<global>
   <email_notification>yes</email_notification>
    <email_to>user@yahoo.com</email_to>
    <smtp_server>mta5.am0.yahoodns.net</smtp_server>
    <email_from>ossec@mydomain.com</email_from>       
</global>
I am able to use:

Code: Select all

swaks --to user@yahoo.com --from ossec@mydomain.com
swaks --to user@yahoo.com --from ossec@mydomain.com --server 127.0.0.1 # I have a locally running exim server
swaks --to user@yahoo.com --from ossec@mydomain.com --server mta5.am0.yahoodns.net
All the swaks commands successfully send an email. Anybody have any ideas why this stopped working?

Thanks
Post Reply