Mail Rule Doesn't Work
I participate at some message boards. I recently upgraded my yahoo email account so I could POP my mail using Mac Mail. Fine. So I tried to set up a rule to route emails from those boards into a mailbox in Mail I created called "Message Boards". Only it doesn't work. The messages go into the Inbox and not the boards mailbox. What did I do wrong? I set it so that anything from those incoming emails would be moved to that mailbox, but it's just not doing it.
Try splitting it into two separate rules, one for each condition. Add an action after your colour action "stop applying rules"
AK
Similar Messages
-
Mail: ANY doesn't work in smart mailboxes or rules?
I want to create a smart mailbox that will copy and archive all messages to/from a particular recipient and e-mails to/from others about the subject of most of the conversation with that recipient. I want the archiving to happen as they arrive in my inboxes and not automatically remove them from the servers--some I still need on the servers to access from multiple locations/machines.
But I can't even get to the archiving issue: the smart mailbox that says 'contains ANY message' meeting these rules:
contains recipient1
contains subject2
always has fewer messages than one that simply 'contains recipient1' so the ANY condition, that in boolean terms should be an OR combination, appears to functionally act as an AND.
When I tried to create a smart mailbox folder to contain two mailboxes, one for contains name1 and one for contains subject2, each of which separately works fine, clicking the smart mailbox folder containing both leaves the window empty, so I can't see the messages name1 and subject2 interlaced in the date sent order or any other. I just get one group or the other by clicking the submailboxes.
And trying to bypass the problem using rules doesn't work either--the 'any' command is as dysfunctional there as it is in the smart mailbox dialog. I can manually search for the relevant terms (recipient1 and subject2) and option+drag them to a mailbox for archiving, but this results in many duplications, especially if repeated over time, not a happy result.
Some searching here and googling suggests that the ANY command is problematic in this OS for a lot of people, but is there a known fix? Or a better way to create a 'smart' archive to do what I want?Okay, I think I understand better now. So I just ran a test, by creating the following rule:
I specifically chose an address (obviously not the one shown) that I had a message from in my Inbox, and a word that was present in the subject line of several messages in my Inbox. When I ran this rule on my Inbox, it copied exactly the messages I would have expected into the test mailbox. Are you seeing different behavior with the same rule, or is your rule constructed differently?
If the difficulty is with running the rule, note that (as I said earlier) rules only run automatically on unread incoming messages. It won't run automatically on existing messages or on messages on an IMAP mail server that you have read on another device using (in which case they will have been marked as read). If you need to run this in such conditions, you'll have to either run the rule manually or run it via an AppleScript or something similar that is somehow (via something other than Mail) made to execute at certain times/intervals or under certain conditions.
And you're correct, a smart mailbox would be totally inappropriate for what you're trying to do! It would behave exactly as you guessed. -
Mail server doesn't work after upgrading from SL to ML
My Mail server doesn't work after upgrading from SL to ML
Mail client connects with the Mail Server wich seems to run but then they can't receive any email...
the problem seems to be related with dovecot ... in my smtp log i get this:
relay=dovecot, delay=324, delays=324/0.02/0/0.01, dsn=4.3.0, status=deferred (temporary failure. Command output: pipe: fatal: pipe_command: execvp /usr/libexec/dovecot/deliver: Permission denied
I have to say that in the usr/libexec there wasn't the dovecot directory so I just tried to create one but with no luck
Any Ideas?
Cheers
Carlo
This is my postconf -n info:
server:Data admin$ postconf -n
biff = no
command_directory = /usr/sbin
config_directory = /Library/Server/Mail/Config/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/libexec/postfix
data_directory = /Library/Server/Mail/Data/mta
debug_peer_level = 2
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin xxgdb $daemon_directory/$process_name $process_id & sleep 5
dovecot_destination_recipient_limit = 1
enable_server_options = yes
header_checks = pcre:/etc/postfix/custom_header_checks
html_directory = /usr/share/doc/postfix/html
imap_submit_cred_file = /Library/Server/Mail/Config/postfix/submit.cred
inet_interfaces = all
inet_protocols = ipv4
mail_owner = _postfix
mailbox_size_limit = 0
mailbox_transport =
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
maps_rbl_domains =
message_size_limit = 20971520
mydestination = $myhostname, localhost.$mydomain, localhost
mydomain = moremoremore.it
mydomain_fallback = localhost
myhostname = server.moremoremore.it
mynetworks = 127.0.0.0/8,192.168.178.0/24
newaliases_path = /usr/bin/newaliases
queue_directory = /Library/Server/Mail/Data/spool
readme_directory = /usr/share/doc/postfix
recipient_delimiter = +
relayhost = mail.mclink.it
sample_directory = /usr/share/doc/postfix/examples
sendmail_path = /usr/sbin/sendmail
setgid_group = _postdrop
smtp_sasl_auth_enable = no
smtp_sasl_password_maps =
smtpd_client_restrictions = permit_mynetworks permit_sasl_authenticated reject_rbl_client zen.spamhaus.org permit
smtpd_enforce_tls = no
smtpd_helo_required = yes
smtpd_helo_restrictions = reject_invalid_helo_hostname reject_non_fqdn_helo_hostname
smtpd_pw_server_security_options = cram-md5,gssapi
smtpd_recipient_restrictions = permit_sasl_authenticated permit_mynetworks reject_unauth_destination check_policy_service unix:private/policy permit
smtpd_sasl_auth_enable = yes
smtpd_tls_CAfile = /etc/certificates/server.moremoremore.it.A358901573EE7B9B4D489725407934780D24D5 36.chain.pem
smtpd_tls_cert_file = /etc/certificates/server.moremoremore.it.A358901573EE7B9B4D489725407934780D24D5 36.cert.pem
smtpd_tls_exclude_ciphers = SSLv2, aNULL, ADH, eNULL
smtpd_tls_key_file = /etc/certificates/server.moremoremore.it.A358901573EE7B9B4D489725407934780D24D5 36.key.pem
smtpd_use_pw_server = yes
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 550
virtual_alias_maps =
server:Data admin$if this could help:
mail:setStateVersion = 1
mail:readWriteSettingsVersion = 1
mail:connectionCount = 11
mail:servicePortsRestrictionInfo = _empty_array
mail:protocolsArray:_array_index:0:status = "ON"
mail:protocolsArray:_array_index:0:kind = "INCOMING"
mail:protocolsArray:_array_index:0:protocol = "IMAP"
mail:protocolsArray:_array_index:0:state = "RUNNING"
mail:protocolsArray:_array_index:0:error = ""
mail:protocolsArray:_array_index:1:status = "ON"
mail:protocolsArray:_array_index:1:kind = "INCOMING"
mail:protocolsArray:_array_index:1:protocol = "POP3"
mail:protocolsArray:_array_index:1:state = "RUNNING"
mail:protocolsArray:_array_index:1:error = ""
mail:protocolsArray:_array_index:2:status = "ON"
mail:protocolsArray:_array_index:2:kind = "INCOMING"
mail:protocolsArray:_array_index:2:protocol = "SMTP"
mail:protocolsArray:_array_index:2:state = "RUNNING"
mail:protocolsArray:_array_index:2:error = ""
mail:protocolsArray:_array_index:3:status = "ON"
mail:protocolsArray:_array_index:3:kind = "OUTGOING"
mail:protocolsArray:_array_index:3:protocol = "SMTP"
mail:protocolsArray:_array_index:3:state = "RUNNING"
mail:protocolsArray:_array_index:3:error = ""
mail:protocolsArray:_array_index:4:status = "OFF"
mail:protocolsArray:_array_index:4:kind = "INCOMING"
mail:protocolsArray:_array_index:4:protocol = "Junk_mail_filter"
mail:protocolsArray:_array_index:4:state = "STOPPED"
mail:protocolsArray:_array_index:4:error = ""
mail:protocolsArray:_array_index:5:status = "OFF"
mail:protocolsArray:_array_index:5:kind = "INCOMING"
mail:protocolsArray:_array_index:5:protocol = "Virus_scanner"
mail:protocolsArray:_array_index:5:state = "STOPPED"
mail:protocolsArray:_array_index:5:error = ""
mail:startedTime = "2013-01-21 21:18:32 +0000"
mail:logPaths:IMAP Log = "/Library/Logs/Mail/mailaccess.log"
mail:logPaths:Server Log = "/Library/Logs/Mail/mailaccess.log"
mail:logPaths:POP Log = "/Library/Logs/Mail/mailaccess.log"
mail:logPaths:SMTP Log = "/var/log/mail.log"
mail:logPaths:Migration Log = "/Library/Logs/MailMigration.log"
mail:logPaths:Virus Log = "/Library/Logs/Mail/clamav.log"
mail:logPaths:Amavisd Log = "/Library/Logs/Mail/amavis.log"
mail:logPaths:Virus DB Log = "/Library/Logs/Mail/freshclam.log"
mail:imapStartedTime = "2013-01-21 21:18:34 +0000"
mail:servicePortsAreRestricted = "NO"
mail:state = "RUNNING"
mail:postfixStartedTime = "2013-01-21 21:18:32 +0000" -
Mail app doesn't work after Yosemite OSX upgrade. At first it didn't check email and now it doesn't boot. I tried many times, but nothing happens
Ok after nearly going crazy I read something about someone having a problem with a program related to fonts not being installed. I started up font book and now my problem is miraculously resolved... This is good and bad. I don't know why having font book running would resolve my problem or know what font is causing the programs not to work. As far as I know I didn't disable any system fonts. And the problem doesn't happen when font book is running, which is confusing me.
-
"sent mail" tone doesn't work. All other tones do. What to do?
ILive changed tones and rebootedHi Gwing17,
Welcome to the Apple Support Communities!
I understand that all of your iPhone sounds are working as expected except for the Sent Mail sound. I understand that you have already changed the Sent Mail sound as well as reset your iPhone and the issue persists. In this situation, to isolate the issue, I would first recommend backing up your iPhone to either iTunes or iCloud.
Back up and restore your iPhone, iPad, or iPod touch using iCloud or iTunes - Apple Support
After you have backed up, I would recommend restoring your iPhone and setting it up as new to test the Sent Mail sound. If the sound works as expected, try restoring from your backup and test the sound again. Please let me know if the issue returns or if the sound still does not work when you set up your iPhone as a new device.
Use iTunes to restore your iOS device to factory settings - Apple Support
Cheers,
Joe -
Mail Rules don't work in Mavericks
It seems with the update to 10.9 Mavericks Mail rules no longer work. My email address was harvested by spamers and I have been using rules to weed throught the 100's of emails that I receive each day.
Russian Brides, Vigra, Learn a new language get moved into the trash when delievered. Now nothing happens.
I just tried to write a new rule and when I clicked the Prefs pannel I got the spinning cursor. After waiting for some time I did a force quit only to find that Mail was not responding.
Anyone have any ideas? I did not see any major changes with Mail and Mavericks so I'm not sure why it's been effected.
MDYou might condider using an Applescript with Mail Rules.
Here's one that I use (Use whitelist to not move to spam):
(Just edit to your junk or whitelist)
Note: The Applescripit must be saved to: ~/Library/Application Scripts/com.apple.mail/
The rule:
The AppleScript:
using terms from application "Mail"
on perform mail action with messages theMessages
tell application "Mail"
repeat with theMessage in theMessages
set theSender to (sender of theMessage)
set theReplyto to (reply to of theMessage)
set theSubject to (subject of theMessage)
set theHeader to (all headers of theMessage)
set theContent to (source of theMessage as string)
set theAccount to (account of mailbox of theMessage)
if my blacklist(theSender, theReplyto, theSubject, theHeader, theContent) ¬
and not my whitelist(theSender, theHeader) then
my moveToJunkFolder(theMessage, theAccount)
end if
end repeat
end tell
end perform mail action with messages
end using terms from
on blacklist(f, r, s, h, c)
if h contains "X-YahooFilteredBulk" or ¬
h contains "Received-SPF: fail" or ¬
h contains "Received-SPF: softfail" or ¬
h contains "Received-SPF: error" or ¬
h contains "Received-SPF: permerror" or ¬
h contains "Received-SPF: temperror" or ¬
h contains "streamsendbouncer@" or ¬
s contains "[Bulk]" or ¬
f contains "Vigra.candianmeds.com" or ¬
f contains "[email protected]" or ¬
f contains ".cz" or ¬
r contains ".ma" then
return true
end if
end blacklist
on whitelist(f, h)
if f contains "aicpa" or ¬
f contains "eWeek.com" or ¬
h contains "from macbook-air.local" then
return true
else
return false
end if
end whitelist
on moveToJunkFolder(m, a)
tell application "Mail"
try
set the read status of m to true
set the junk mail status of m to true
set theAccount to (account of mailbox of m)
set mailbox of m to (mailbox "Junk" of a) -- Move to "Junk"
end try
end tell
end moveToJunkFolder -
I have an iphone5 and the reply, forward and writing a message from the mail app doesn't work. I can check my mail but can't reply to it. What's going on?
Try a reset: hold down the home button along with the sleep/wake button until you see the apple, then let go. (No data loss)
-
Since I did the Mavericks-update, my mail-programm doesn't work no more. So I cannot send any eMail out or change the text into the eMail. Help, this is a catastrophe!!! Lukas Schmid
Hey Lukas Schmid,
The following resource may provide more help in troubleshooting Mail for OS X:
OS X Mail: Troubleshooting sending and receiving email messages
http://support.apple.com/kb/TS3276
For more information, you can also visit http://www.apple.com/support/mail/
Thanks,
Matt M. -
This is an SBS2011 and accepts mail for two mail domains (successfully), but I am trying to phase out one of the two domains.
I cannot find a better way to do it, but I have simply created this rule:
priority 0
when a recipient's address contains '@<olddomain>.gr'
prepend message subject with '[GR!] '
It doesn't do anything.
It's not a matter of restarting services or waiting for some kind of replication. This rule is created (and is enabled yes) more than a month.
Any ideas?
EDIT: In Message Tracker, I find a test message has the following entry just after receiving from remote mail server:
"The e-mail address for recipient "<myself>@<olddomain>.gr" was updated to the e-mail address "<myself>@M<newdomain>.com". The message is in the process of being delivered.
...then I have the successful delivery, without transport rule kicking in.
So is the problem related to the recipient having BOTH email addresses set? Then why system replaces the old with the default? Probably this is why the rule doesn't kick (as it doesn't match any more).
Is there a way to prevent this replacement, since I want the recipients to still get reached by the mail?
NLSHi NLS,
I would like to verify if you apply the rule for your primary email address.
You can try to use the following cmdlet to achieve your goal.
New-TransportRule -Name 'New Rule' -Comments 'Comment' -HeaderContainsMessageHeader 'Received' -HeaderContainsWords 'olddomain.com'-FromAddressContainsWords
'[email protected]' -PrependSubject "OLDDOMAIN"
Hope it helps.
If you need further assistance, please feel free to let me know.
Best regards,
Amy
Amy Wang
TechNet Community Support -
I have created a very simple Mail rule that color codes messages received from one particular email address. I get lots of messages from this address, but some messages are correctly color coded and others are not. As far as I can see, there is no difference between the messages that are handled correctly and those that are not. What could the problem be?
Try splitting it into two separate rules, one for each condition. Add an action after your colour action "stop applying rules"
AK -
Junk mail filter doesn't work all the time
Why doesn't the Junk mail filter work all the time? I click on mail like from Best Buy or Omni Hotels to go into junk mail but hardly any of their mail goes into Junk. Other sites go directly to Junk. If I click on a Best Buy mail to indicate it's Junk, shouldn't that work 100% of the time forever and ever?
The Junk filter is based on an analysis of the content of the message. It ignores the sender. (Filtering based on the sender is an ineffective way of dealing with true spam, since spammers use constantly-changing spoofed addresses.)
If you don't want mail from a legitimate sender like Best Buy, unsubscribe from their ads. If that doesn't work, make a Rule to delete or move the messages. -
Mail rule no longer works - how 2 debug?
i have a mail rule which takes an attachment & sends it on to an fba for further processing (via a do shell call) then moves the mail to a done folder.
my shell script works perfectly when invoked from the cli, but doesn't seem to even get called from the mail rule (which used to work under tiger)
and since "perform mail action with messages" doesn't allow interaction, i can't salt my script with display dialogs to debug...
so where does mail rule output go? is there an error log somewhere? console shows nothing...on a hunch i added a delay right after i saved the attachment...that fixed it.
but i still don't have a way of seeing what's going on in a mail rule script. -
E-mail notification doesn't work after software upgrade
Based on the recommendation of a sales rep; I did the software upgrade yesterday and have had nothing but problems. All the e-mail accounts didn't work. So I spent an hour getting my e-mails setup and guess what?
Even though I have it setup to check every 10 minutes; it doesn't work. I have to manually go to each account and click on the 2 arrows to check. I used to get a flashing blue light on my phone when I had a new e-mail; now I don't.
What's going on???????????????Hi, I did all you mentioned but still same error messages
Oct 25 14:16:42 xxx /Applications/Server.app/Contents/ServerRoot/usr/bin/amavisd[16427]: Using primary internal av scanner code for ClamAV-clamd
Oct 25 14:16:42 xxx /Applications/Server.app/Contents/ServerRoot/usr/bin/amavisd[16427]: Deleting db files __db.001,__db.002,__db.003,__db.004,nanny.db,snmp.db in /Library/Server/Mail/Data/scanner/amavis/db
Oct 25 14:16:42 xxx/Applications/Server.app/Contents/ServerRoot/usr/bin/amavisd[16427]: Creating db in /Library/Server/Mail/Data/scanner/amavis/db/; BerkeleyDB 0.54, libdb 4.7
Oct 25 14:16:43 xxx /Applications/Server.app/Contents/ServerRoot/usr/bin/amavisd[16427]: initializing Mail::SpamAssassin (0)
Oct 25 14:16:43 xxx /Applications/Server.app/Contents/ServerRoot/usr/bin/amavisd[16427]: SpamAssassin debug facilities: info
Oct 25 14:16:43 xxx /Applications/Server.app/Contents/ServerRoot/usr/bin/amavisd[16427]: (!!)TROUBLE in pre_loop_hook: config: no rules were found! Do you need to run 'sa-update'?
Suicide () TROUBLE in pre_loop_hook: config: no rules were found! Do you need to run 'sa-update'?
I removed all spam filters and mail works without, which is not so good but seems to be the only way at the moment.
Any other idea or should I just reset the whole installation?
Thanks for your feedback. -
EMET 5.0 Pinning Rule doesn´t work
I have installed EMET 5.0 on my Windows 7 pro system. I have configured a pinning rule for my internetbank exactly the same way as i did with EMET 4.1. But when I apply a different certificate
from my bank's to test the rule nothing happens - no warnings when I log in to the internetbank. Except once!. With EMET 4.1 the warnings never failed to show.
The new EMET 5.0 blocking function doesn't work at all (which is very disappointing, as this was the main reason why I upgraded to EMET 5.0).
Anyone who knows how to do to make this work?
I tried to enclose screenshots of my current configuration, but got the error message:
"Body text cannot contain images or links until we are able to verify your account."
But i don't understand how to verify my account...sorry...This morning I:
1. Logged in as administrator on Windows 8 (Swedish version).
2. Installed and configured EMET 5.0 with recommended settings and added pinning/blocking rule for my internetbank. Imported certificate different from that used by my internetbank.
3. Logged out.
4. Logged in as standard user.
5. Launched Internet Explorer in desktop mode (didn't run as administrator).
6. Tried to log in to my internetbank – pinning rule blocked login, nice!.
As you stated before, pinning rule does not work as one would like on Windows 7 (I have windows 7 professional English version).
Have not yet tried to use EMET logged in as administrator on Windows 7 but why bother? I agree with you, not a good idea to log in as administrator and then use internet…
I will use Windows 8 for my internet banking until this is resolved.
Thank you! -
Mail rules no longer work.
Having trouble with Mail rules that I have used in the past - they no longer work. Any ideas? Running 10.4.10
Yes, the same thing has happened to me.
But I'd like to avoid having to set up the the rules again (if I trashing the com.apple.mail.plist. I have a lot of rules, and it would take some time to set them up again. Does anyone know of other options?
Maybe you are looking for
-
Error in obtaining server list from OPMN on host localhost
Hallo Everyone I am trying to start opmn and all processes (opmnctl startall) and I receive a following message: opmnctl: starting opmn and all managed processes... opmnctl: opmn start failed oas:/opt/oracle/OraHome1/opmn/bin # after that i was tryin
-
The question about EDI in scenario 'Cross-Company Code Sales Processing'?
I'm doing the exercise with IDES system for the scenario 'Cross-Company Code Sales Processing'. But when posting the EDI, it gave me the error as followings: there are related data in table EDPP1, including customer and vendor data, but it still info
-
Hello All, I am trying to do drill down search in Data manager on qualified table. when in search critieria i am selecting qualified table ,I am not getting all qualifiers in search tab.(we have 6 qualifiers and i am only getting 3 of them ) and in v
-
Can I next two specified order groups in a Cross Tab report?
Hi. I've created sets of specified order account number for a financial statement report, Income and Admn Expenses, Contract Expenses, etc. But I'd like to create other subsets of accounts, say for all the payroll taxes expeneses, and under the origi
-
How can we Restore a corrupted cube.
Hi All, Please let me know if a cube is corrupted then is their any way of restoring the cube and data. Please help me in detail on this. In which scenario we need to stop and start the cube? how this method help us? Thanks in Advance, Raj.