<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.sophos.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Email whitelisting expression</title><link>https://community.sophos.com/puremessage/f/discussions/92809/email-whitelisting-expression</link><description>Hi, 
 
 I need to whitelist an email id ( envelope-from ) which is something like btv1==330be1b068d==username@website.com . Each time, the random id in the envelope from changes ( for ex: btv1==110be1b068d==username@website.com ). So how to whiitelist</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Email whitelisting expression</title><link>https://community.sophos.com/thread/338776?ContentTypeID=1</link><pubDate>Fri, 30 Jun 2017 04:16:06 GMT</pubDate><guid isPermaLink="false">4be5eb7d-caa4-4ff5-8e60-8f9463545a35:ead2eddf-05f9-4825-b3a0-d56af6e2f260</guid><dc:creator>BurnZero</dc:creator><description>&lt;p&gt;Thanks a lot. That works :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Email whitelisting expression</title><link>https://community.sophos.com/thread/338664?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2017 10:38:03 GMT</pubDate><guid isPermaLink="false">4be5eb7d-caa4-4ff5-8e60-8f9463545a35:c7a02f40-899f-44c8-967d-424f10ab5ae3</guid><dc:creator>Jens P&amp;#246;nninghaus</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;a little late but since it&amp;#39;s unanswered ...&lt;/p&gt;
&lt;p&gt;Assuming you are on Puremessage f. Unix, you are probably looking at &amp;#39;whitelisted-senders&amp;#39; which in turn has a match type &amp;#39;email (see etc/lists.conf).&lt;/p&gt;
&lt;p&gt;man PureMessage::List should give some guidance to allowed wildcards and type dependent match exceptions. A first starter (just made up, please check for alternate facts and mileage thoroughly) might look like:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;pmx-list add whitelisted-senders &amp;#39;btvl==*==username@example.com&amp;#39;&lt;br /&gt;1 row affected&lt;/p&gt;
&lt;p&gt;pmx-list test whitelisted-senders &amp;#39;tvl==123123123d==username@example.com&amp;#39;&lt;br /&gt;tvl==123123123d==username@example.com did not match (since initial &amp;#39;b&amp;#39; is missing)&lt;/p&gt;
&lt;p&gt;pmx-list test whitelisted-senders &amp;#39;btvl==123123123d==username@example.com&amp;#39;&lt;br /&gt;btvl==123123123d==username@example.com matched&lt;/p&gt;
&lt;p&gt;pmx-list test whitelisted-senders &amp;#39;btvl==123123123d==username@example.com==username@example.com&amp;#39;&lt;br /&gt;btvl==123123123d==username@example.com==username@example.com did not match&lt;/p&gt;
&lt;p&gt;&amp;#39;*&amp;#39; wont match on &amp;#39;@&amp;#39; or &amp;#39;.&amp;#39; and thus wont &amp;#39;consume&amp;#39; &amp;#39;123123123d==username@example.com&amp;#39;&lt;/p&gt;
&lt;p&gt;Hope, this provides a starting point.&lt;/p&gt;
&lt;p&gt;Jens&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>