The filter can be anywhere. Make sure you call it from the global.cfg and yes inside the filter would be:
ALLRECIPS END NOTCONTAINS example.com HEADERS WHITELIST PCRE (?im:From:.+@whateverdomain1.com) HEADERS WHITELIST PCRE (?im:From:.+@whateverdomain2.com) HEADERS WHITELIST PCRE (?im:From:.+@whateverdomain3.com) From: community@mailsbestfriend.com [mailto:community@mailsbestfriend.com] On Behalf Of Carl Wagar Sent: Monday, April 4, 2016 10:52 AM To: community@mailsbestfriend.com Subject: [MBF] Re: FROM per-domain Using iMail and this person is using POP and SMTP. OK, so I could make a FILTER-WHITELIST-FROM-THISDOMAIN.txt file (can it be in a folder he can FTP to? or does it have to be in C:\imail\declude\filters ? It could have this in it: ALLRECIPS END NOTCONTAINS example.com followed by a bunch of HEADERS WHITELIST PCRE (?im:From:.+@whateverdomain.com) ?? J. Carl Wagar EntreNet Communications Inc http://www.entrenet.com http://www.thehostingservice.com 24 Swain Ave, Ottawa, ON, K1G 4T1, Canada Email: mailto:jcwa...@entrenet.com, skype: jcwagar Tel: +1 613-737-7327, Fax: +1 613-737-5801 Cel: +1 613-818-8898 From: mailto:community@mailsbestfriend.com [mailto:community@mailsbestfriend.com] On Behalf Of David Barker | Mail's Best Friend | 1-866-919-2075 Sent: Monday, April 4, 2016 11:27 AM To: mailto:community@mailsbestfriend.com Subject: [MBF] Re: FROM per-domain Hi Carl, The users address book can be used as a whitelist. In addition if you are using SmarterMail the Trusted Sender list can be used as a whitelist. To answer your question: 1. Yes this is correct. 2. It must be made clear it is not Declude that does not properly identify the sender. Declude uses the sender that is in the envelope of the message, this helps prevents spoofing of the message. The header can contain any sender this is why it is done. The reason I mention this is the client must understand by doing it this way they are bypassing a safety mechanism. You can create a filter as you have described, but you cannot only run a filter for a per domain or user. All filters run in Declude. However, you can restrict it so it only triggers for a specific domain (example.com) using the following line in the filter which will achieve the same result: ALLRECIPS END NOTCONTAINS example.com David Barker P: +1 866.919.2075 E: mailto:david.bar...@mailsbestfriend.com https://www.facebook.com/mailsbestfriend https://twitter.com/MailsBestFrien d https://www.linkedin.com/in/9785186461 http://www.mailsbestfriend.com/ From: mailto:community@mailsbestfriend.com [mailto:community@mailsbestfriend.com] On Behalf Of Carl Wagar Sent: Monday, April 4, 2016 10:18 AM To: mailto:community@mailsbestfriend.com Subject: [MBF] FROM per-domain I have a customer who I had to give his own per-domain whitelist and I think it works. 1. May I assume if he has his own domain/com/$default$.junmail file that uses WHITELISTFILE to refer to the location where he can FTP upload whitelist.txt then this should work? 2. As per normal, many senders say they are FROM somewhere but Declude sender says they are really something else @eigbox or whatever. You gave me a filter FILTER-WHITELIST-FROM that lets me do the following for select addresses: HEADERS WHITELIST PCRE (?im:From:.+@whateverdomain.com) Would I be able to set this up so that the customer can create a file like this for his senders who Declude does not properly identify as the sender? in other words, can his $default$.junkmail file load a filter like this? Or could I make a filter that loads from his directory? Thanks. Carl J. Carl Wagar EntreNet Communications Inc http://www.entrenet.com http://www.thehostingservice.com 24 Swain Ave, Ottawa, ON, K1G 4T1, Canada Email: mailto:jcwa...@entrenet.com, skype: jcwagar Tel: +1 613-737-7327, Fax: +1 613-737-5801 Cel: +1 613-818-8898 ############################################################# This message is sent to you because you are subscribed to the mailing list <community@mailsbestfriend.com>. To unsubscribe, E-mail to: <community-...@mailsbestfriend.com> To switch to the DIGEST mode, E-mail to <community-dig...@mailsbestfriend.com> To switch to the INDEX mode, E-mail to <community-in...@mailsbestfriend.com> Send administrative queries to <community-requ...@mailsbestfriend.com>