![]() |
MS-DEFCON 2:
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it.
|
-
Spam filter for Outlook 2016 on Exchange Server
Home › Forums › AskWoody support › Microsoft Office by version › Office 2016 for PC › Spam filter for Outlook 2016 on Exchange Server
Tagged: PowerShell, spam
- This topic has 22 replies, 5 voices, and was last updated 1 year, 3 months ago.
Viewing 11 reply threads-
AuthorPosts
-
-
October 2, 2019 at 12:08 am #1970926
CWBillow
AskWoody LoungerI had Ben using Outlook with IMAP. But, at Microsoft’s suggestion, I have moved to MS Office Professional on an Exchange server.
The problem here is the amount of spam I receive: 25,000(!!) In less than two weeks!
My prior spam solution was SpamBully, but SB doesn’t play well with Exchange. It can take up to 5 minutes for my Outlook to load.
Here’s my question:
Would it be possible to build PowerShell commands that could/would add either the whole e-mail address or just the domain to the Outlook safe sender list? That command could then be attached to an Outlook button.
In SpamBully, I could choose the “This is spam” button or “This is safe” button, which would add the particular e-mail sender to the appropriate list. By holding down the Control key, I could make that distinction for the domain in question and not just the specific sender.
If a command string (in PowerShell?) could do this, then that could be attached to a button and make the whole process of altering the white or black list addresses a single click.
Do I think it possible? Certainly. But unfortunately I am no PowerShell aficionado to see how it would pan out.
Any ideas, suggestions, or offerings of assistance would be greatly appreciated.
Chuck Billow
-
October 2, 2019 at 1:44 am #1970970
Paul T
AskWoody MVPI wouldn’t run my own Exchange server unless it was in an organisation large enough to afford an email gateway in front of the server.
My paid for email service is very good at reducing spam – I get almost none – and I still get all my normal correspondence. They support POP and IMAP, have an app for the phone and even host my domain mail.
cheers, Paul
p.s. Fastmail
-
October 2, 2019 at 1:53 pm #1971563
CWBillow
AskWoody LoungerPaul, I didn’t and don’t want to run my own Exchange server either. That “came along for the ride” when I switched to Office 365 (Business). I’m hoping that I don’t have to manage the server once setup is complete. I was hoping to try this for a month or so but all they have is annual plans, so…
I do though like the idea of having everything “under one roof.” Just this last transition to/from Bluehost made me even more convinced of the advantage of that.
I left 1and1 because I was not getting the results I wanted, especially in support. I went to BlueHost, an exchange mail system, and was on the phone near-daily, so, I came “back” to Microsoft. Now of course I am (financially) tied in for a year — to another Exchange setup.
But then aside from the investment, for an added $5 I could run Fastmail through my current Office setup. I would seem to be duplicating somewhat, since Fastmail is calendar contacts, and e-mail, but then my Office also has Excel, Access, etc., so then… ?
Chuck Billow
-
-
October 2, 2019 at 8:21 am #1971217
joep517
AskWoody MVP-
October 2, 2019 at 1:13 pm #1971485
CWBillow
AskWoody LoungerJoe, yes this is, I believe, Office 365 (Business). I want to say that, yes, I have access to Exchange admin settings, but first off, I don’t want to screw around with something I know nothing about that could set me back at square one. Secondly, since today’s junk mail senders are quite good at their craft, I fear I would be back and forth between the Exchange and my Outlook constantly for some time trying to get the filters/rules correct. After a week of not having Outlook functional, when I connected last night I received 27,000 — yes, thousand — emails. Most, of course, are junk, but that’s a *fair* amount of filtering.
Also, under the best of circumstances, wouldn’t I need to be all the time hopping between Outlook and Exchange?
Chuck Billow
-
October 2, 2019 at 2:35 pm #1971594
mn–
AskWoody Lounger, yes, I have access to Exchange admin settings, but first off, I don’t want to screw around with something I know nothing about that could set me back at square one. Secondly, since today’s junk mail senders are quite good at their craft, I fear I would be back and forth between the Exchange and my Outlook constantly for some time trying to get the filters/rules correct.
Oh it’ll never end, at the current rate.
At those volumes I’d look for an additional antispam service, to set up in the mail flow path. The base Exchange Online only has fairly simple antispam features, though it has gotten better… still no local admin access to Bayesian corpuses, the condition clauses are clunky, and scoring is only very rudimentary compared to, say, SpamAssassin.
I’ve had to chain multiple rules together via temporary header fields to accomplish some fairly simple things.
Would it be possible to build PowerShell commands that could/would add either the whole e-mail address or just the domain to the Outlook safe sender list?
Well yes. From https://docs.microsoft.com/en-us/powershell/module/exchange/antispam-antimalware/Set-MailboxJunkEmailConfiguration?view=exchange-ps :
————————– Example 2 ————————–
Set-MailboxJunkEmailConfiguration “Michele Martin” -TrustedSendersAndDomains @{Add=”contoso.com”,”fabrikam.com”} -BlockedSendersAndDomains @{Add=”jane@fourthcoffee.com”}
This example makes the following configuration changes to the safelist collection for the user named Michele Martin:
Adds contoso.com and fabrikam.com to the Safe Senders list without affecting other existing entries.
Adds jane@fourthcoffee.com to the Blocked senders list without affecting other existing entries.
That’s one user’s lists, and then you can do things with Set-HostedContentFilterPolicy to affect the entire organization. (Of course assuming that you have the Exchange Online PS module loaded, and have an authenticated session open with sufficient privileges…)
-
-
October 2, 2019 at 2:08 pm #1971574
-
-
October 3, 2019 at 3:00 am #1972785
-
October 6, 2019 at 7:43 pm #1975985
-
October 6, 2019 at 8:11 pm #1976012
joep517
AskWoody MVPIt appears you have Office 365 Business Premium. You need to setup Exchange Online Protection. Check out some of the results of Configure Exchange Online Protection.
--Joe
-
October 6, 2019 at 11:55 pm #1976120
CWBillow
AskWoody LoungerWhen I was talking to Microsoft last nite, they were adamant that:
1) Microsoft Office 2016 Business Pro could/would solve my e-mail issues;
2) Microsoft Office 2016 Business Pro was designed to run on an Exchange server (theirs) and that IMAP wouldn’t do well.
Well, after installing Exchange, yes, it downloaded my e-mail, but it dramatically increased the time required for my spam software to interact (3-5 seconds per message), which, in my situation can translate into 15 to 20 minutes just to download the e-mail, not to mention that starting up Outlook 2016 in that config takes as much as five minutes, where IMAP takes 6-7 seconds.
He then gave me the PowerShell commands to disable the built in Exchange filtering:
Set-ExecutionPolicy RemoteSigned
$credential = Get-Credential
Install-Module MSOnline
$exchangeSession = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri “https://outlook.office365.com/powershell-liveid/” -Credential $credential -Authentication “Basic” -AllowRedirection
Import-PSSession $exchangeSession -DisableNameChecking
Set-MailboxJunkEmailConfiguration -Identity cwxxx@xxx.com -Enabled $falseCan anyone attest to refute these claims and PowerShell code?
[Moderator edit: removed email address for security]
Chuck Billow
-
October 7, 2019 at 12:59 am #1976160
mn–
AskWoody LoungerWhen I was talking to Microsoft last nite, they were adamant that:
1) Microsoft Office 2016 Business Pro could/would solve my e-mail issues;
2) Microsoft Office 2016 Business Pro was designed to run on an Exchange server (theirs) and that IMAP wouldn’t do well.
Well…
Not sure which product “Office 2016 Business Pro” actually is, but it certainly isn’t one of the “normal” package versions.
I’m not quite clear on what you have for the server solution either. Is it your own Exchange server, or the usual Microsoft cloud Exchange as in Exchange Online / Office 365?
Well, after installing Exchange, yes, it downloaded my e-mail, but it dramatically increased the time required for my spam software to interact (3-5 seconds per message), which, in my situation can translate into 15 to 20 minutes just to download the e-mail, not to mention that starting up Outlook 2016 in that config takes as much as five minutes, where IMAP takes 6-7 seconds.
It’s just a fact of life that Outlook with Exchange Online is anything but fast. The long distance to cloud, compared to pretty much any LAN-local installation ever, makes this unavoidable… and Exchange isn’t usually the thing to use if “fast” is a priority, anyway.
Outlook user interface can be reasonably snappy once it has most of the mail downloaded into local cache, but that part can take time.
And if you do have a local installation of Exchange… what kind of server hardware is it on?
He then gave me the PowerShell commands to disable the built in Exchange filtering:
Yes, on a quick look the set of PowerShell commands does look like it’d install a module, then open a session to the cloud server, and then disable the Exchange Online spamfilter.
Not sure why you’d want to do that except if it gets things badly wrong – it’s supposed to run on the cloud server before mails get to your box, so not in the execution path any more when Outlook fetches mail from the box, and expected to reduce the amount to be downloaded.
Same with server-side processing rules, they’re supposed to run on the Exchange server, long before you even start Outlook…
-
October 7, 2019 at 7:37 am #1976238
joep517
AskWoody MVPWhat aren’t you telling us? What anti-spam software are you using?
Remember, when you changed from IMAP to Exchange all your email was going to be downloaded again if you selected a local cache option. How much got downloaded depends on your settings of how much to cache locally.
Who were you talking to at Microsoft? Why did they recommend disabling the Exchange spam filter?
In Outlook go to File | Office Account and tell us what is said there about Outlook. Please tell the type, such as Office 365 Pro Plus, and the version. See the attachment
--Joe
Attachments:
You must be logged in to access attached files.
-
-
October 7, 2019 at 8:09 pm #1976702
CWBillow
AskWoody Lounger@Joe;
Here’s the long story:
I was running Home Premium without (major) issues. Then I ran into a problem, and Microsoft told me I should upgrade to Office Professional.
But, I was told, Office Professional prefers Exchange.
Five – seven days of calls and my Outlook still isn’t really working properly. Part of the issue is per day)because, due to the massive amounts of e-mail I receive ( 5-700 per day) I use a spam filtering app called Spam Bully — great add-on, but it does NOT like Exchange.
So now, after two months of back and forth, I have my Home Premium account — which just yesterday MS agreed to stop and refund — and my Office Professional account — still active.
I just called Microsoft because I wasn’t seeing any e-mail in the PRO account prior to 8/28, and, come to find out, mail prior to 8/28 is sitting off in my Home Premium account .
Can I export my Home Premium e-mail, and import it to my Office pro account?
And, since I don’t have both set up in Outlook, how might I do that?
Secondly:
Microsoft support says that Office 365 Business Pro is built around Exchange. That may or may not be, but can I not still run IMAP mailboxes “without” incident?
I ask this because SpamBully, my preferred filtering add-on, does not like Exchange at all. It can take almost 6 minutes for Outlook 2016 Exchange to start up, where Outlook 2016 with IMAP loads in8-9 seconds.
So…?
Chuck Billow
-
October 8, 2019 at 1:08 am #1976823
mn–
AskWoody LoungerWell er… yes, of course Microsoft will tell you that their mail client application really prefers their mail server. They’ve consistently marketed Outlook and Exchange together since… hm, 1997?
At no point has Exchange been the kind of server I’d suggest for high-throughput usage. It’s sold on advanced features and convenience, not speed and volume.
Microsoft support says that Office 365 Business Pro is built around Exchange. That may or may not be, but can I not still run IMAP mailboxes “without” incident?
Exchange server does indeed offer IMAP access to mailboxes as an alternative protocol. UNLESS that part is turned off by server administrator, which it can be.
That makes Outlook lose a lot of the “advanced” features the combination normally offers, though. Like the interface to mail sorting and filtering on the server.
And the mailboxes are the same regardless of the protocol used to access them – MAPI, EWS, ActiveSync, IMAP, even POP… (MAPI is the “Outlook native” protocol.)
Can I export my Home Premium e-mail, and import it to my Office pro account?
And, since I don’t have both set up in Outlook, how might I do that?
Well what do you have them in, then?
Usually the easiest way for single users is to set them up in the same client application and just move stuff over. Can also save things in files, take backups of those, and then upload to another mailbox – which can be done from another application instance if they can use the same file format for local copies.
I ask this because SpamBully, my preferred filtering add-on, does not like Exchange at all. It can take almost 6 minutes for Outlook 2016 Exchange to start up, where Outlook 2016 with IMAP loads in8-9 seconds.
Oh and I’d note that, according to https://spambully.com/sb4help/indexa93b.html :
System Requirements:
Operating System: Windows 98/ME/2000/XP/2003
Email Client: Outlook 2000/2002/XP/2003 or Outlook Express 5, 5.5 or 6… it has no expectation of working with 2016 or 2019 Outlook. Could be they just haven’t updated the documentation but still, I’d ask them.
-
-
October 7, 2019 at 11:12 pm #1976811
joep517
AskWoody MVPThere is no Home Premium SKU of Office. Were you running Office 365 Personal or Office 365 Home or some other non-subscription SKU?
What does your version of Outlook say when you look at the Office Account information?
You really need to try to use the correct terminology. It would save a lot of back and forth.
Is your old Home account still accessible? Are you using the same email address?
--Joe
-
October 8, 2019 at 3:12 pm #1977203
CWBillow
AskWoody LoungerJoe, I cannot speak to SKU’s, but the program that ran my install was
Setup.X86.en-US_O365HomePremRetail_211f1f87-be71-42d2-9eb4-38f8afa43473_TX_PR_
So, I dunno…
<hr />
That was the x86, my bad…
the x64 command is
Setup.X64.en-US_O365HomePremRetail_0bb30d02-e71b-4421-a20a-28c757a99890_TX_PR_
Chuck Billow
-
October 8, 2019 at 3:46 pm #1977219
anonymous
GuestChuck, can you say why you are giving the filename of the installer?
Joe asked you to refer to the Office Account information within the application’s File menu. Please see his illustrated request in comment #post-1976238 above.
The installer filename reflects your system requirements, not the installed application in use. Joe showed you where to find the information he requested.
-
October 8, 2019 at 4:32 pm #1977251
mn–
AskWoody LoungerThat was the x86, my bad…
the x64 command is
… right, this might be a bother to fix.
First, SpamBully seems to be (or at least include as a significant part) an add-on for Outlook, so regardless of the respective age of the parts they need to match on the architecture. So if they don’t match – such as if your SpamBully package is x86 and Outlook is x64 …
Then, some add-ons for Office 2016 (let alone older) just no longer work correctly with the latest Office 365 application packages even if the x86/x64 part matches. This can only be fixed by the add-on vendor. If this is the case and there is no such fix for the add-on, you may need to downgrade the Office applications to an older version.
With one specific add-on (for Excel), had to get a MSI-packaged and volume-licensed Office 2016 ProPlus x86, none of the 365 or Click-to-Run packages would work… sheesh, that was expensive.
And that’s not getting into what’s going on at the server side.
-
-
October 8, 2019 at 3:25 pm #1977220
-
October 8, 2019 at 4:54 pm #1977254
CWBillow
AskWoody Lounger@anonymous: I cannot very well look at File info on an Outlook that is no longer installed. The version is abundantly clear in the filename.
Joe, I was running Home Premium, and am now running Office 365 Business.
As to the possible conflict between Office x64 and SpamBully (x86), the issue never came up until I moved from Home Premium x64 to Office Professional x64. After the “upgrade”, starting Outlook went from 6-9 seconds to five minutes. I’ll know this afternoon if, running Office Pro x64 with an IMAP profile instead of the Exchange
One MS support person had me set up an IMAP account AND an Exchange account in order to see that there were no differences in the download of the two. Both were identical.
I am in the process of syncing the mailboxes now (Office Pro x64 install) and will then see about Spam Bully, and I’ll let you know.
Chuck Billow
-
October 8, 2019 at 5:20 pm #1977258
-
October 9, 2019 at 12:47 am #1977511
mn–
AskWoody LoungerAs to the possible conflict between Office x64 and SpamBully (x86), the issue never came up until I moved from Home Premium x64 to Office Professional x64.
Oh, it’s possible that SpamBully does include both x86 and x64 versions of the dll – some other products do. It’s just, that’s fairly high up on the checklist because it’s a typical problem. And since I don’t have it myself, I can’t check that.
It’s supposed to have controls visible in the ribbon if it’s loaded successfully, right?
For those that are only conditionally visible, this can be checked through File -> Options -> Add-ins …The version is abundantly clear in the filename.
I was running Home Premium, and am now running Office 365 Business.Actually the installer filenames can change without notice and Microsoft seems to use same initial installers for several products. It may install different features based on what product SKU you have.
-
-
-
AuthorPosts
Viewing 11 reply threads -
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments. Click here for details and to sign up.
Search The Lounge
Recent Replies
desertdad on Windows 10 Latest Patch: KB 4598242
2 minutes agocyberSAR on Hasta la vista, TeamViewer Free
23 minutes agoanonymous on Google threatens to remove search engine from Australia
26 minutes agoBob99 on KB4023057 while on Win10-2004
1 hour, 16 minutes agoBob99 on Seriously, MBAM?
1 hour, 35 minutes agoBob99 on Seriously, MBAM?
1 hour, 38 minutes agoBob99 on Susan recommending version 2004
1 hour, 45 minutes agoOscarCP on Google threatens to remove search engine from Australia
1 hour, 50 minutes agoSusan Bradley on This should be the best patching experience
2 hours, 11 minutes agoanonymous on This should be the best patching experience
2 hours, 12 minutes agoOscarCP on Giving you the choice
2 hours, 54 minutes agorick41 on Giving you the choice
2 hours, 55 minutes agocyberSAR on Seriously, MBAM?
3 hours, 4 minutes agoOscarCP on Giving you the choice
3 hours, 7 minutes agoSusan Bradley on Lost Post
3 hours, 13 minutes agoSusan Bradley on Giving you the choice
3 hours, 14 minutes agogsel on imovie problems in osx 10.6.8
3 hours, 16 minutes agorick41 on Giving you the choice
3 hours, 20 minutes agoanonymous on MS-DEFCON 2 – Get ready for January updates
3 hours, 33 minutes agoFrances McKenna on Time to adapt while acknowledging the past
3 hours, 35 minutes agoSusan Bradley on Giving you the choice
3 hours, 36 minutes agoCybertooth on Giving you the choice
3 hours, 48 minutes agoCADesertRat on MS Shared Experience warning
4 hours, 34 minutes agolikescats on Files don’t copy from Win7 HDD to Win10 computer
4 hours, 56 minutes agoBundaburra on Google threatens to remove search engine from Australia
5 hours, 6 minutes agoSteveTree on This should be the best patching experience
5 hours, 18 minutes agomn-- on Files don’t copy from Win7 HDD to Win10 computer
5 hours, 19 minutes agoLicAC on Windows Defender – yes or no?
5 hours, 42 minutes agoBen Myers on SSD vs. SATA Drives
6 hours, 27 minutes agoKirsty on Google threatens to remove search engine from Australia
8 hours, 16 minutes ago
Recent Topics
-
Windows 10 version changes
1 hour, 2 minutes ago
-
Lost Post
3 hours, 13 minutes ago
-
Hasta la vista, TeamViewer Free
23 minutes ago
-
Files don’t copy from Win7 HDD to Win10 computer
4 hours, 56 minutes ago
-
Does the HP Spectre Notebook (2016 model) have a removable wireless LAN Card?
18 hours, 24 minutes ago
-
Windows 10 2004 and Intel Ethernet Problem Solving
6 hours, 29 minutes ago
-
KB4023057 while on Win10-2004
1 hour, 16 minutes ago
-
MS Shared Experience warning
4 hours, 34 minutes ago
-
Google threatens to remove search engine from Australia
26 minutes ago
-
macOS Catalina running on iPad Pro 2020
8 hours, 29 minutes ago
-
How to check if someone else accessed your Google account
19 hours, 50 minutes ago
-
This should be the best patching experience
2 hours, 11 minutes ago
-
Windows 10 Insider build 19042.782 (20H2) released to Beta & Release Preview
1 day, 1 hour ago
-
Browser Settings Block Linux Mint Downloads
1 day, 1 hour ago
-
Windows 10 Insider Preview build 20296 released to DEV Channel
1 day, 8 hours ago
-
Google Analytics Notice
1 day, 9 hours ago
-
Beeper combines 15 chatting apps
1 day, 4 hours ago
-
File Explorer cannot see external 2Tb drive in full
1 day, 12 hours ago
-
Office 2010 updates.
12 hours, 7 minutes ago
-
What is ‘Meet Now’
1 day, 12 hours ago
-
Linux is now completely usable on the Mac mini M1
2 days, 8 hours ago
-
User Feed Synchronization – Disable/Delete Task?
1 day, 9 hours ago
-
AV Alert from JetAudio Plus
2 days, 10 hours ago
-
System Restore Stopped Working
1 day, 8 hours ago
-
Malwarebytes was targeted by SolarWinds hackers too
2 days, 20 hours ago
-
So I opened up an HP and where’s the hard drive?
20 hours, 30 minutes ago
-
Which version of MS Office should we buy and where can we get it?
1 day, 23 hours ago
-
Fiber optic not available; options please
2 days, 4 hours ago
-
Best W10-Pro updater program ?
2 days, 20 hours ago
-
Accessing Old Laptop HD
1 day, 5 hours ago
Search for Topics
Recent blog posts
- This should be the best patching experience
- So I opened up an HP and where’s the hard drive?
- What Linux is and why it has persisted
- Find the cable modem that’s just right for your ISP
- Four GB of RAM vanishes … but then reappears
- Wow! Even more Office updates!
- Giving you the choice
- Tasks for the weekend – January 16, 2021
Key Links
Copyright © 2004 – 2021 AskWoody Tech LLC. All rights reserved.