Just use <smtp_server>127.0.0.1</smtp_server> and set up your postifix to deal with the incoming mails accordingly.

On 12/4/2015 10:32 AM, Bruno Rodrigues wrote:
How can I do this?

I already have postfix working with mailgun, but OSSEC emails won't work.



On Sunday, November 8, 2015 at 11:51:45 AM UTC-2, Eero Volotinen wrote:

    You should use local postfix to relay mails.

    Eero

    7.11.2015 10.55 ip. <[email protected] <javascript:>> kirjoitti:

        Hi all,

        I recently installed OSSEC 2.8.1 on a Debian machine, and I
        really don't understand how this email setup works. My config
        file looks like this:

        <global>
          <email_notification>yes</email_notification>
          <email_to>[email protected] <javascript:></email_to>
          <smtp_server>alt2.gmail-smtp-in.l.google.com
        <http://alt2.gmail-smtp-in.l.google.com></smtp_server>
          <email_from>[email protected] <javascript:></email_from>
        </global>

        I got the impression that this is all you have to do to get it
        to work. But I get the following errors in the log:
        WARN: End of DATA not accepted by server
        ERROR: Error Sending email to [gmail server ip] (smtp server)

        When I look this up, no one has a clear response. For some
        people, this works! For others, they had no choice but to make
        their own smtp server. I'm concerned about all the possible
        security risks that come with making my own smtp server, so I
        was hoping this would handle it for me. Is this possible? Do I
        need to put in a key somewhere? Or is something like ssmtp or
        postfix the only way to go?

        Thanks!
--
        ---
        You received this message because you are subscribed to the
        Google Groups "ossec-list" group.
        To unsubscribe from this group and stop receiving emails from
        it, send an email to [email protected]
        <javascript:>.
        For more options, visit https://groups.google.com/d/optout
        <https://groups.google.com/d/optout>.

--

---
You received this message because you are subscribed to the Google Groups "ossec-list" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.

--

--- You received this message because you are subscribed to the Google Groups "ossec-list" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to