<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.7601.17744"></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Segoe UI">
<DIV>I attempted this rule but while it passes the regex test, it doesn't every show up on the spamassasin list as matching.</DIV>
<DIV>&nbsp;</DIV>
<DIV># Rule to find Whitelist Blackberry mail<BR>header&nbsp;&nbsp;&nbsp; FROM_BLACKBERRY&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; From =~ /\.*\.us\.blackberry\.com/<BR>score&nbsp;&nbsp;&nbsp;&nbsp; FROM_BLACKBERRY&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -10<BR>describe&nbsp; FROM_BLACKBERRY&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; email From blackberry user<BR></DIV>
<DIV>Gary<BR><BR>&gt;&gt;&gt; Scott Silva &lt;ssilva@sgvwater.com&gt; 1/4/2013 11:10 AM &gt;&gt;&gt;<BR>on 1/4/2013 6:49 AM Gary Faith spake the following:<BR>&gt; I am attempting to whitelist e-mail from blackberry servers but not having any<BR>&gt; success.&nbsp; Since I read that MailScanner bases the whtelist on the envelope,<BR>&gt; here is the envelope (I changed the e-mail address):<BR>&gt; <BR>&gt; EHLO smtp02.bis6.us.blackberry.com<BR>&gt; MAIL FROM:&lt;SRS0=+AiNi2=K5=mydomain.net=user@srs.bis6.us.blackberry.com<BR>&gt; &lt;mailto:SRS0=+AiNi2=K5=mydomain.net=user@srs.bis6.us.blackberry.com&gt;&gt; SIZE=876<BR>&gt; RCPT TO:user@mydomain.net &lt;mailto:TO:user@mydomain.net&gt;( mailto:user@mydomain.net)<BR>&gt; Return-Path: &lt; g&gt;<BR>&gt; Received: from smtp07.bis6.us.blackberry.com (smtp07.bis6.us.blackberry.com<BR>&gt; [74.82.85.7])<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; by mscan.asdmonline.net (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id<BR>&gt; r04EPuc6025687<BR>&gt; <BR>&gt; I have tried whitelisting via Mailwatch:<BR>&gt; <BR>&gt; @srs.bis6.us.blackberry.com&nbsp;&nbsp;&nbsp;&nbsp; default<BR>&gt; *@*.*.us.blackberry.com &lt;mailto:*@*.*.us.blackberry.com&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; default<BR>&gt; 74.82.85.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; default<BR>&gt; <BR>&gt; with no success.&nbsp; I even tried to whitelist in the MailScanner rule file<BR>&gt; (spam.whitelist.rules):<BR>&gt; <BR>&gt; mscan:/etc/MailScanner/rules # cat spam.whitelist.rules<BR>&gt; # If you are basing a blacklist on this then you can refer to<BR>&gt; # a null (empty) sender address with "/^$/" as the address to match.<BR>&gt; #<BR>&gt; # This is where you can build a Spam WhiteList<BR>&gt; # Addresses matching in here, with the value<BR>&gt; # "yes" will never be marked as spam.<BR>&gt; #From:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 152.78.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; yes<BR>&gt; #From:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 130.246.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; yes<BR>&gt; #From:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; host:soton.ac.uk yes # Note this is slower than using the IP<BR>&gt; From:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 74.82.85.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; yes<BR>&gt; FromOrTo:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; default&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; no<BR>&gt; <BR>&gt; and the message keep getting scanned and blocked:<BR>&gt; <BR>&gt; <BR>&gt; Score Matching Rule Description<BR>&gt; -0.50 BAYES_00 Bayesian spam probability is 0 to 1%<BR>&gt; 2.00 DCC_CHECK Listed in DCC (http://rhyolite.com/anti-spam/dcc/)<BR>&gt; 2.00 DIGEST_MULTIPLE Message hits more than one network digest check<BR>&gt; 2.50 PYZOR_CHECK Listed in Pyzor (http://pyzor.sf.net/)<BR>&gt; 1.53 RATWARE_EFROM Bulk email fingerprint (envfrom) found<BR>&gt; -0.00 SPF_PASS SPF: sender matches SPF record<BR>&gt; <BR>&gt;&nbsp; <BR>&gt;&nbsp; <BR>&gt; I am running MailScanner version 4.83.4 on SLES 10 64-bit.&nbsp; I don't know where<BR>&gt; to go from here.<BR>&gt;&nbsp; <BR>&gt; Gary<BR>&gt; <BR>&gt; <BR>You can try something like this in spam.assassin.prefs.com;<BR><BR>header&nbsp;&nbsp;&nbsp; FROM_BLACKBERRYFrom =~ /\@blackberry\./<BR>describe&nbsp; FROM_BLACKBERRYemail From blackberry user<BR>score&nbsp; FROM_BLACKBERRY-20<BR><BR><BR>adjust the score accordingly. You might have to play with the regex a little<BR>til it works for you.<BR><BR><BR><BR><BR></DIV></BODY></HTML>