Junk mail filtering only working on internal mail (and only some of them)
Good morning
I'm trying to get Junk Mail filtering working properly on my server (currently running 10.5.6). All mail that comes from externally doesn't seem to pass through the spam filter at all. It gets scanned for viruses (in the email header i get "X-Virus-Scanned: amavisd-new at example.co.uk" but no sign of any spam filtering.
I have previously configured the filtering using the instructions here http://www.netmojo.ca/blog/2009/04/13/spam-proofing-leopard-server/ but i had been searching through the support here and had started following the instructions in the OS X mail manual, creating a junkmail user and forwarding email to it. Whilst doing this i noticed that some emails had started to be tagged as junk using the settings i had set in server admin. These have something like the following in the email header:
X-Virus-Scanned: amavisd-new at example.co.uk
X-Spam-Flag: YES
X-Spam-Score: 3.479
X-Spam-Level: *
X-Spam-Status: Yes, score=3.479 tagged_above=2 required=2
tests=[ALL_TRUSTED=-1.44, AWL=0.286, HTML_MESSAGE=0.001,
RAZOR2CF_RANGE_51100=0.5, RAZOR2CF_RANGE_E8_51100=1.5,
RAZOR2_CHECK=0.5, URIBLOBSURBL=2.132]
However those emails not tagged as spam do not have any such lines. I would have expected to see X-Spam-Flag: NO and the spam score and such. Are these lines hidden if a mail does not trigger the threshold?
I've had this aparently learning for about a week now and even with the setting set on 1 it's still yet to catch a single piece of junk mail entering into the server.
I do have emails to quite a few different domains directed to this server so i added the lines suggested here http://discussions.apple.com/thread.jspa?messageID=7034527� to /etc/amavisd.conf but to no avail.
Any suggestions? Any parts of any log files that may be of use? I've been looking at the junk mail log in debug mode in SA and also in terminal but there's so many lines per mail it's difficult to see what's going on. I can't see anything different from one mail to the next...
Thanks
I would have expected to see X-Spam-Flag: NO and the spam score and such. Are these lines hidden if a mail does not trigger the threshold.
You need to edit /etc/amavisd.conf and set:
$satag_leveldeflt = -999;
This will make sure all mails get the headers inserted.
Also make sure that "@bypassspam_checksmaps = (1); " is commented out.
That said, the Bayesian filter will need to be fed at least 200 HAM and 200 SPAM messages before it kicks in.
Each time you modify settings in amavisd.conf, you need to restart amavisd by issuing:
sudo /bin/launchctl unload /System/Library/LaunchDaemons/org.amavis.amavisd.plist
sudo /bin/launchctl load /System/Library/LaunchDaemons/org.amavis.amavisd.plist
HTH,
Alex
P.S. When you make changes in Postfix' configuration files, simply issue "sudo postfix reload" to make the m stick. No need to stop Postfix (BTW: That article you linked to is full of inaccuracies).
Similar Messages
-
Mail is not working properly (cannot replay), and skype cannot be answered
Did the verification, repair and installation disk of Mac. Why mail is not working properly (cannot replay), and skype cannot be answered?
I most often do not restart my new MBPro .... 10.9.5 ..... but happened to a day or so ago, and it immediately began to block / problem with email .... I waited to see if it sorted out, but no .....
I get he server “p06-imap.mail.me.com” cannot be contacted on port 993 ..... then deselected SSL and that did not help, so went back and selected it again .... and again not working .....
I can see my stuff "online" but I do not want to do it that way EVER .....
your "deselect mail" in ICloud preferences .... did nothing good for me .... any other thoughts Linc ?? in fact, some hundreds of in and sent emails did not show up .... I'm hoping they are going to when this gets fixed .... but hey, ..... right now I'm NOT in business ....
thanks -
The "always match my default message font" option in the Signature preferences from Mac Mail does not work if e-mail is received in other Mail Software. How can I make it work?
I found this plugin which solved pretty much all of my mail font rendering problems. It is designed for Lion, so don't know whether it will work but thought I would offer it up.
http://noware-it.zxq.net/ -
Mask clipping only works with absolute widths and heights
Hi all for some reason this works:
<s:BorderContainer height="404" width="504" borderColor="0x000000" borderWeight="2" backgroundColor="0x000000" filters="{[dsf]}" cornerRadius="10">
<s:Group id="mask">
<s:Rect width="500" height="400" radiusX="10" radiusY="10">
<s:fill>
<s:SolidColor/>
</s:fill>
</s:Rect>
</s:Group>
<s:BitmapImage width="100%" height="100%" source="/assets/images/logo.jpg" maskType="alpha" mask="{mask}"/>
</s:BorderContainer>
But if i change the clipping rect to:
<s:Rect left="0" right="0" top="0" bottom="0" radiusX="10" radiusY="10">
OR
<s:Rect width="100%" height="100%" radiusX="10" radiusY="10">
It does not work as a mask and only displays the background color of the BorderContainer.
I'm using flash builder 4.5
Any reason for this inconsistency?Say thanks to Shongrunden and use binding for this: <s:Rect width="{bc.width}" height="{bc.height}" radiusX="10" radiusY="10">
where bc is your BorderContainer's id. -
I had over 200 e-mails. I went to my webmail and deleted most of them. However, my iPhone still shows 200 e-mails. How can I force my iPhone to update from the e-mail server? Or will I have to delete each e-mail from my iPhone as well? Thanks.
You may have to try deleting all the music from your phone (by going to Settings>General>Usage>Music, swipping All Music and tapping Delete), then sync it all back on with iTunes in order to fix this.
-
ISight only works when it's the ONLY firewire device?
I have connected the iSight to both the firewire 400 and firewire 800 ports. It only works when it is the only device connected to the port.
If I connect it to a hard drive, it works if and only if the hard drive is off. When I turn the drive on, the iSight ceases functioning. When I connect it to a hub, it works if and only if there are no other devices connected to the hub that are on.
Is there a trick to getting the iSight working with other devices?Some devices are tricky for me, too. Possible hardware or software conflicts
-
Does airplay mirror only work with the ipad2 and not ipad1
does airplay mirror only work with the ipad2 and not ipad1
But can it still stream video wirelessly?
For example, with the Digital AV Adapter I can watch video on my TV, but obviously it's wired.
I'd like a wireless option. -
Why do some of my apps only work ón my iphone and not ón my iPad ?
Why do some of my apps only work ón my iphone and not ón my iPad ?
That should work on the iPad. Basic app troubleshooting from Apples support site. Items 1, 2 & 3 should not apply to your situation, but I posted the link at the end if you want to read them.
4. Restart the application
If the issue affects only a single app, try closing just that app:
Press the Home button to return to the Home screen.
Double-tap the Home button to display recent apps.
Tap and hold the affected app until the red minus appears.
Tap the red minus to quit the app.
Press the Home button, then restart the app.
5. Restart your device
Hold the Sleep/Wake button until "slide to power off" appears. Slide to power off your device. When it is off, press the Sleep/Wake button to turn it back on.
6. Reinstall the affected application
Remove the application from your device and reinstall it.
Touch and hold any application icon on the Home Screen until the icons start to wiggle.
Tap the "x" in the corner of the application you want to delete.
Tap Delete to remove the application and all of its data from your device.
Press the Home button.
Go to the App Store.
Search for the application and then download it again.
Note: If it is a paid app, ensure you are using the iTunes account you purchased the app with originally. If it is not, you will be charged for the app again. For more information regarding downloading previously purchased items, see this article.
7. If the issue is still unresolved
If you continue to experience the issue, contact the developer of the application for further assistance.
http://support.apple.com/kb/TS1702 -
Junk Mail only works after I disable and reenable Junk Mail Filtering
Since installing Tiger, junk mail filtering does not work automatically. It neither marks incoming messages as junk nor moves them to the Junk folder.
I am able to get it to work by selecting Preferences > Junk Mail and then unchecking "Enable junk mail filtering" and then checking it. Mail then asks to "Move Junk Messages" and when I respond "Yes" it marks the appropriate messages as Junk and moves them to the Junk folder.
Unfortunately, it only works for the messages already received. New mail that is "junk" is not marked as such and appears in my inbox and I have to repeat the manual process to get it removed.
Any suggestions for a more permanent solution?
17 iMac Mac OS X (10.4)Will it also forget the "learned" junk mail? (That took years to learn.)
No.
The MessageRules.plist file stores all Mail.app rules including the default Junk Mail rules.
All Junk Mail "learned" settings are stored in the LSMMap2 file also located at the first level within the Mail folder.
Since the LSMMap2 file can become corrupt as with any other file, this file should be included with a regular backup of the Mail folder and the Mail.app preference file at Home > Library Preferences > com.apple.mail.plist.
All Mail.app account information is stored in the Mail.app preference file.
If you experience any problems with the Junk Mail filter, your options are using the Junk Mail reset feature which resets all "learned" settings or replace the existing LSMMap2 file with a copy of a working backup copy with the Mail.app quit before doing so.
If the Mail.app preference file becomes corrupt (which I've never experienced but others have), when targeting the preference file requires re-entering all email account information. If you have a working backup copy of the com.apple.mail.plist file, you can replace the existing with the Mail.app quit before doing so without having to re-enter all email account information again.
You need to replace an existing backup copy of the Mail.app preference file only after making any changes to account information or when adding or deleting an account in Mail.
You may already have a backup strategy but if not, it is very important since it isn't a matter of if but when your hard drive has a partial or complete failure. I learned my lesson the hard way about 5 years ago. Without warning, I experienced a complete hard drive failure. I didn't maintain a backup at the time and none of the existing data was recoverable. -
Is there Junk mail filtering in the ipod Touch MAIL app
I love the junk mail filtering in my computer's version of MAIL. Does the ipod touch do this as well?
No it does not have junk mail filtering.
-
HT201320 Setting up mail only works the first time and then fails...
Hello,
I own a new iPad 4.
Setting up my own mail accounts works great for the first time (I see new mails and I can sent mails), but the second time I open the Mail-App it complains about my mail settings.
Mails are provided from my own domain. Using other mail clients I don't have issues.
Setting is based on IMAP ssl/port 993 and ssl/578. iPad runs on IOS6.1.
Do you have an idea why?
CarsteniOS: Unable to send or receive email
http://support.apple.com/kb/TS3899
Can’t Send Emails on iPad – Troubleshooting Steps
http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
Setting up and troubleshooting Mail
http://www.apple.com/support/ipad/assistant/mail/
iPad Mail
http://www.apple.com/support/ipad/mail/
Try this first - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
Or this - Delete the account in Mail and then set it up again. Settings->Mail, Contacts, Calendars -> Accounts Tap on the Account, then on the red button that says Remove Account.
Cheers, Tom -
Default Mail app not working with yahoo mail. Won't update.
Default Maill app not working with Yahoo Mail.
It stopped working the other day. I tried everything but it wouldn't update new mail. The yahoo account itself is fine because I can see new mail on Yahoo or a yahoo app.
I tried deleting the account and putting it back on, but now it has 0 mail in any part of it. Nothing has synced.
What do I do?
iPad 2 latest OS.A lot of people have been unable to access Yahoo e-mail on their iPhones or iPads. My wife’s iPad was not downloading Yahoo mail, although her iPhone was. Both used IOS 8.2. We tried deleting the account several times and troubleshooting all of the other settings. The problem appears to have been that allowing the IOS to automatically create the account on the iPad resulted in the wrong settings for the incoming server. The following procedure, pieced together from two websites, fixed the problem for us. So far, so good.
https://portal.smartertools.com/kb/a2659/configure-imap-for-iphone-or-ipad.aspx
https://help.yahoo.com/kb/mobile-mail/imap-server-settings-sln4075.html
On the iPhone, tap Settings.
Tap Mail, Contacts, Calendars.
Tap your Yahoo account, then delete it.
Tap Add Account.
Tap Other.
Tap Add Mail Account.
Complete the Name, Address (email address), Password and Description fields.
Click Next.
Ensure IMAP is selected.
Enter the following incoming mail server information:
Incoming Mail (IMAP) Server - Requires SSL
Server: imap.mail.yahoo.com
Port: 993
Requires SSL: Yes
Hostname is mail.yahoo.com.
Username is your full email address
Password is the same password used to access webmail.
Enter the following outgoing mail server information:
Outgoing Mail (SMTP) Server - Requires SSL
Server: smtp.mail.yahoo.com
Port: 465 or 587
Requires SSL: Yes
Requires authentication: Yes
Username is your full email address
Password is the same password used to access webmail. It may have been entered for you.
Tap Next.
The iPhone will establish an SSL connection to your IMAP and SMTP servers.
That’s all! -
Since installing Mavericks on my iMac my outgoing talktalk mail has stopped working. Incoming talktalk mail works fine as does iCloud outgoing and incoming. I have checked settings and these all appear ok. My MacbookAir without Mavericks continues to work fine with the same talktalk router etc used with the iMac.
Has anybody else had this ?
ThanksMail/Window/Connection Doctor - if a server is red, select it and look at the Show Details box.
Troubleshooting sending and receiving email messages
Troubleshooting sending email messages -
Hi,
I would like to know why the mails are not working after this update. Neither exchange mails nor the gmail app mails are working, they just keep repeating network error.I had this problem this week after installing Mountain Lion on my MacBook Pro, and was able to solve it using a hint from the Apple Toolbox site:
Force quit Mail. Go to the home screen, then double-press the Home button to bring up the multitasking pane. Find the Mail app, then hold its icon until it begins to wiggle, then tap the small red circle in the upper-left corner of the icon to quit it. Relaunch Mail, and the messages should be gone.
iPhone 4, iOS 5.0.1 -
HELP
Ok first my Mail APP after 4 years stopped syncing with GMAIL and two days later ICLOUD. I deleted all accounts and readd them and nothing happens. How do I uninstall the mail app and reinstall it. Or does anyone know of a better Mail App to use.
Using Maverick and Mail 7.1After some searching I have found a solution. I had to delete the contents of the following folder:
~/Library/Mail/myemailaccount/.OfflineCache/
Note: replace "myemailaccount" with the appropriate folder on your computer that represents your e-mail account. Once I deleted the contents of this folder (there were 2 files), and restarted Mail, there were no problems.
Hope this helps a few people in the future!
Maybe you are looking for
-
Sorry Thunderbird had a problem and crashed. Over and over. Help! Please.
Here is the crash report. If anyone can make sense of it could you please help me get going again. Or can I repair the installation somehow without losing anything? AvailablePageFile: 6152683520 AvailablePhysicalMemory: 5313658880 AvailableVirtualMem
-
Everytime I try to open Itunes I get the following message: There is no disk in drive, please insert a disk into drive. If I click cancel twice itunes opens up. Has anyone had this problem?
-
What to do when Safari WONT open
on Friday night i bought a new copy of OS10.5 Leopard at the apple store i installed it Now when i click on Safari on the dock........It wont open i get an error message that Safari had to close unexpectedly whats wrong and how do i fix it?
-
Old outer join syntax produces different results from new syntax!
I have inherited a query that uses the old outer join syntax but that is yielding correct results. When I translate it to the new outer join syntax, I get the results I expect, but they are not correct! And I don't understand why the old syntax produ
-
i have an 5c and whenever I make a call to one particular person, who owns a iphone5, they hear a beeping noise, but they don't have any messages or alerts. I don't hear this noise and I don't have any alerts or messages either. It's extremely frustr