<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Alert Email Address doesn't allow our domain in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Alert-Email-Address-doesn-t-allow-our-domain/m-p/169106#M2785</link>
    <description>&lt;P&gt;You were correct, the restmap.conf file did have this configuration.  Further for future knowledge to help someone else hopefully, the regex I used was &lt;CODE&gt;(?i)^(?:[^@\s]+@(?:[^@\s.]+\.)+[a-z0-9]{2,})(?:\s*[,;]\s*(?:[^@\s]+@(?:[^@\s]+\.)+[a-z0-9]{2,}))*$&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Feb 2014 19:59:39 GMT</pubDate>
    <dc:creator>p8atsgsasd</dc:creator>
    <dc:date>2014-02-28T19:59:39Z</dc:date>
    <item>
      <title>Alert Email Address doesn't allow our domain</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-Email-Address-doesn-t-allow-our-domain/m-p/169104#M2783</link>
      <description>&lt;P&gt;When attempting to create an alert with an email notification we receive the error &lt;CODE&gt;one of the email address in 'action.email.to' is invalid&lt;/CODE&gt;. It appears this is because of the domain we are using since as an example &lt;CODE&gt;john.smith@example.com&lt;/CODE&gt; works vs. &lt;CODE&gt;john.smith@example.h5&lt;/CODE&gt; does not work.&lt;/P&gt;

&lt;P&gt;There was another question raised similar to this with the answer being to upgrade to version 4.2.3 however we are running version 4.3.  Is there another patch we need to install for this to work or can we edit a file?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2014 19:21:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-Email-Address-doesn-t-allow-our-domain/m-p/169104#M2783</guid>
      <dc:creator>p8atsgsasd</dc:creator>
      <dc:date>2014-02-27T19:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: Alert Email Address doesn't allow our domain</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-Email-Address-doesn-t-allow-our-domain/m-p/169105#M2784</link>
      <description>&lt;P&gt;In Splunk 6 (likely also in earlier versions) the validation expression for email addresses is defined in the &lt;CODE&gt;[validation:savedsearch]&lt;/CODE&gt; stanza of restmap.conf - you can overwrite that as usual in etc/system/local/restmap.conf to also allow your custom domains. Originally Splunk expects the TLD to match &lt;CODE&gt;[a-z]{2,}&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2014 08:26:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-Email-Address-doesn-t-allow-our-domain/m-p/169105#M2784</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-02-28T08:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: Alert Email Address doesn't allow our domain</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-Email-Address-doesn-t-allow-our-domain/m-p/169106#M2785</link>
      <description>&lt;P&gt;You were correct, the restmap.conf file did have this configuration.  Further for future knowledge to help someone else hopefully, the regex I used was &lt;CODE&gt;(?i)^(?:[^@\s]+@(?:[^@\s.]+\.)+[a-z0-9]{2,})(?:\s*[,;]\s*(?:[^@\s]+@(?:[^@\s]+\.)+[a-z0-9]{2,}))*$&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2014 19:59:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-Email-Address-doesn-t-allow-our-domain/m-p/169106#M2785</guid>
      <dc:creator>p8atsgsasd</dc:creator>
      <dc:date>2014-02-28T19:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: Alert Email Address doesn't allow our domain</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-Email-Address-doesn-t-allow-our-domain/m-p/169107#M2786</link>
      <description>&lt;P&gt;I created the following file: $SPLUNK_HOME/etc/system/local/restmap.conf &lt;BR /&gt;
With the contents:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[validation:savedsearch]
action.email.to          = validate( match('action.email.to',  "(?i)^((?:[^@\s]+@(?:[^@\s.]+\.)+[a-z]{2,})|(?:^[A-Z0-9._%+-]+@[A-Z0-9.-]+.[A-Z]{1,4}$)|(\$([\w.*#\- ]+)(?:\{([^}]+)\})?\$))(?:\s*[,;]\s*((?:[^@\s]+@(?:[^@\s.]+\.)+[a-z]{2,})|(\$([\w.*#\- ]+)(?:\{([^}]+)\})?\$)))*$"), "One of the email addresses in 'action.email.to' is invalid")
action.email.cc          = validate( match('action.email.cc',  "(?i)^((?:[^@\s]+@(?:[^@\s.]+\.)+[a-z]{2,})|(?:^[A-Z0-9._%+-]+@[A-Z0-9.-]+.[A-Z]{1,4}$)|(\$([\w.*#\- ]+)(?:\{([^}]+)\})?\$))(?:\s*[,;]\s*((?:[^@\s]+@(?:[^@\s.]+\.)+[a-z]{2,})|(\$([\w.*#\- ]+)(?:\{([^}]+)\})?\$)))*$"), "One of the email addresses in 'action.email.cc' is invalid")
action.email.bcc         = validate( match('action.email.bcc',  "(?i)^((?:[^@\s]+@(?:[^@\s.]+\.)+[a-z]{2,})|(?:^[A-Z0-9._%+-]+@[A-Z0-9.-]+.[A-Z]{1,4}$)|(\$([\w.*#\- ]+)(?:\{([^}]+)\})?\$))(?:\s*[,;]\s*((?:[^@\s]+@(?:[^@\s.]+\.)+[a-z]{2,})|(\$([\w.*#\- ]+)(?:\{([^}]+)\})?\$)))*$"), "One of the email addresses in 'action.email.bcc' is invalid")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This has the addition of this regex: &lt;CODE&gt;^[A-Z0-9._%+-]+@[A-Z0-9.-]+.[A-Z]{1,4}$&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Goto &lt;A href="http://www.regexr.com/"&gt;http://www.regexr.com/&lt;/A&gt; to test what it matches for you.&lt;/P&gt;</description>
      <pubDate>Mon, 19 May 2014 04:42:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-Email-Address-doesn-t-allow-our-domain/m-p/169107#M2786</guid>
      <dc:creator>cam343</dc:creator>
      <dc:date>2014-05-19T04:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Alert Email Address doesn't allow our domain</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-Email-Address-doesn-t-allow-our-domain/m-p/169108#M2787</link>
      <description>&lt;P&gt;Just curious, the other way around, can this stanza be somehow used to ONLY allow to send to mail-adresses on @mydomain.com and @my-domain.com? It now seems that anyone can send output worldwide from the search bar?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2015 11:44:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-Email-Address-doesn-t-allow-our-domain/m-p/169108#M2787</guid>
      <dc:creator>tweaktubbie</dc:creator>
      <dc:date>2015-06-02T11:44:44Z</dc:date>
    </item>
  </channel>
</rss>

