|
FastMail Forum All posts relating to FastMail.FM should go here: suggestions, comments, requests for help, complaints, technical issues etc. |
|
Thread Tools |
27 Mar 2018, 06:56 PM | #1 |
Member
Join Date: Mar 2018
Posts: 53
|
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 Last edited by ferrety : 27 Mar 2018 at 10:47 PM. |
28 Mar 2018, 02:51 PM | #2 |
Intergalactic Postmaster
Join Date: May 2004
Location: Irving, Texas
Posts: 8,926
|
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:
|
28 Mar 2018, 02:54 PM | #3 | |
Member
Join Date: Mar 2018
Posts: 53
|
Quote:
|
|
28 Mar 2018, 03:14 PM | #4 |
Member
Join Date: Mar 2018
Posts: 53
|
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! |
3 Apr 2018, 05:57 PM | #5 |
Member
Join Date: Mar 2018
Posts: 53
|
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; } |
4 Apr 2018, 03:57 AM | #6 | |
The "e" in e-mail
Join Date: May 2003
Location: mostly in Thailand
Posts: 3,090
|
Quote:
|
|
4 Apr 2018, 02:04 PM | #7 |
Member
Join Date: Mar 2018
Posts: 53
|
|
4 Apr 2018, 02:21 PM | #8 |
Intergalactic Postmaster
Join Date: May 2004
Location: Irving, Texas
Posts: 8,926
|
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 |
4 Apr 2018, 02:33 PM | #9 | |
Member
Join Date: Mar 2018
Posts: 53
|
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? Last edited by ferrety : 4 Apr 2018 at 04:09 PM. |
|