Or you could change this file: https://github.com/ossec/ossec-hids/blob/master/src/os_maild/sendmail.c on each server and add something to SUBJECT so you can filter that out on gmail.
I always have to change this file as my local mailserver is very strict about the HELOMSG and I have to change it to the servername. Regards Christian Am 14.03.2014 13:09, schrieb dan (ddp): > On Thu, Mar 13, 2014 at 3:01 AM, Gaurav Rajput <gx1...@gmail.com> wrote: >> Hi, >> >> I have 3 different infrastructures (Development, Production and Testing), >> running the same configuration (with same ip-address and subnet) and nodes. >> I have 3 ossec-servers running. Each ossec-server is sending the mails to a >> central gmail account. >> >> All I want is, to categorize the mails from each infrastructure. In other >> words I want to tag the emails with Dev, Prod or Test. Is there any way to >> do this, as I searched a lot in the configuration file ??? >> > > I think your best bet is to have them sent from different email addresses. > >> 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 ossec-list+unsubscr...@googlegroups.com. >> 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 ossec-list+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.