Global email configuration is necessary to use the granular email options.
All global options must be configured in the /var/ossec/etc/ossec.conf and used within the <ossec_config> tag.
XML excerpt to show location:
<ossec_config>
<email_alerts>
<!--
Email_alerts options here
-->
</email_alerts>
</ossec_config>
<global>
<email_notification>yes</email_notification>
<email_to>admin@example.com</email_to>
<smtp_server>127.0.0.1</smtp_server>
<email_from>ossecm@example.com</email_from>
</global>
<global>
<email_notification>yes</email_notification>
<email_to>admin@example.com</email_to>
<smtp_server>127.0.0.1</smtp_server>
<email_from>ossecm@example.com</email_from>
<email_maxperhour>100</email_maxperhour>
</global>
<email_alerts>
<email_to>other_admin@example.com</email_to>
<level>12</level>
</email_alerts>
<email_alerts>
<email_to>syscheck-admin@example.com</email_to>
<group>syscheck</group>
</email_alerts>
<email_alerts>
<email_to>bond@example.com</email_to>
<event_location>agent007</event_location>
<level>15</level>
<do_not_delay />
<do_not_group />
</email_alerts>