I'd like to know how to change the name in the "From" header for emails sent by OSSEC. I couldn't find any information about that.

Alerts I receive from my server are quite well organized. And OSSEC and is the only one I was not able to customize yet.


ok then this could be compiled in sources:

os_maild/sendcustomemail.c:#define FROM    "From: OSSEC HIDS <%s>\r\n"
os_maild/sendmail.c:#define FROM    "From: OSSEC HIDS <%s>\r\n"

use your custom name, and then run ./install.sh again, and answer yes -> update.

  • You're right but sorry, I forgot to mention I'd like to change the name in the from header (edited the question above), not the email address. – Sinklar Apr 12 '15 at 12:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.