Hi all,Can you please tell me if I can use OSSEC v2.9 with MSMTP mailer? I tried to use it like this in ossec.conf file but doesn't work:
and this is an example of how I use msmtp to send mail:
echo "To:desti...@gmail.com
Cc:
Bcc:
Subject:TEST MAIL
Content-Type: text/html;
<html>
<head>
<title>TITLE</title>
<BR>this is a test mail</BR>
</head>
What do I do wrong? Please help me to get this work, I really want to have OSSEC working with this. Thank you!
Vlad
On Thu, Jun 23, 2016 at 10:56 AM, Vlad Ghita <vlad....@gmail.com> wrote:
> Actually I've looked in the sources and noticed that '/' char is mandatory,
> so I've put the full path, like this:
>
> <smtp_server>/usr/local/bin/msmtp -v --timeout 20 -f "exped...@gmail.com"
> -t</smtp_server>
>
> Still, no email sent. Also, the strange fact si I have no error message from
Are there any logs from msmtp?
> OSSEC. Is this feature fully supported?
>
Define "fully supported."
>
> On Thursday, June 23, 2016 at 3:21:10 PM UTC+3, Vlad Ghita wrote:
>>
>> Hi all,
>>
>> Can you please tell me if I can use OSSEC v2.9 with MSMTP mailer? I tried
>> to use it like this in ossec.conf file but doesn't work:
>>
>> <smtp_server> msmtp -v --timeout 20 -f "exped...@gmail.com"
>> -t</smtp_server>
>>
>> and this is an example of how I use msmtp to send mail:
>>
>> echo "To:dest...@gmail.com
and this is an example of how I use msmtp to send mail:Hi all,Can you please tell me if I can use OSSEC v2.9 with MSMTP mailer? I tried to use it like this in ossec.conf file but doesn't work:
<smtp_server> msmtp -v --timeout 20 -f "tvlc.r...@gmail.com" -t</smtp_server>
echo "To:vlad...@gmail.com
Cc:
Bcc:
Subject:TEST MAIL
Content-Type: text/html;
<html>
<head>
<title>TITLE</title>
<BR>this is a test mail</BR>
</head>
</html>" | msmtp -v --timeout 10 -f "ma...@example.com" -t "vlad....@gmail.com"
What do I do wrong? Please help me to get this work, I really want to have OSSEC working with this. Thank you!
Vlad