Blocking emails from specific domain
Is it possible with fastmail (standard account) to set up a rule or something to reject emails from a specific domain.
I don't want them to go into spam I want them to bounce back to the sender as rejected. I want them to know the email hasn't reached me. So I could for example allow normal amazon emails through but stop marketplace sellers contacting me, begging for reviews etc (sometimes years after a purchase). So could I say, bounce stuff coming from @marketplace.amazon.co.uk but allow normal Amazon system emails through (these have a different domain) Please no lectures about complaining to Amazon, thanks it is just an example :) |
Rejection of specified messages
Yes, this is possible. But you should be very careful about such rules, since you can block desired messages if you are not careful. Here are the steps:
|
Quote:
|
Bill
I just tried this (thinking I would mess it up) using a throw away outlook email I'd set up so I could see what they would get back Sure enough it worked, you sir are fantabulous!:D |
Bill
If I want to block more than one domain but want to have them receive different reject reasons can I do it like this? Is there a limit to how many I can do? if address :domain :is ["X-Mail-from"] ["marketplace.amazon.co.uk"] { reject "Unwanted Spam From Amazon Marketplace seller"; stop; } if address :domain :is ["X-Mail-from"] ["trustpilot.com"] { reject "Trustpilot are not authorised to have this email address"; stop; } |
Quote:
|
Quote:
|
Automated reject messages are usually a bad idea
I just realized that I made a mistake in my earlier instructions. You should insert the sieve reject code in the second user sieve block (after the ### 3. Sieve generated for spam protection block). In general, it's a bad idea to automatically respond to messages which trigger the spam filter, so you want your reject sieve code after the spam filter. The reason will be described later in this post.
Yes, you can respond to multiple From sending domains as you described with different response messages. But you might not want to send all of those reject messages back to the senders. Consider several types of messages you could receive from those sending domains:
Bill |
Quote:
I absolutely do NOT want this going to spam though. I absolutely DO want to see them get a personalised reject message. So it will work if I put it before the ### 1. section right? |
All times are GMT +9. The time now is 04:10 AM. |
Copyright EmailDiscussions.com 1998-2022. All Rights Reserved. Privacy Policy