|
FastMail Forum All posts relating to FastMail.FM should go here: suggestions, comments, requests for help, complaints, technical issues etc. |
|
Thread Tools |
4 Oct 2017, 09:30 AM | #1 |
The "e" in e-mail
Join Date: Jan 2002
Posts: 2,619
|
How do I Bounce an email?
There used to be "bounce" option, to make it appear to the sender that the email has bounced.
I no longer see this as an option. If there's no option anymore, is it possible to do this by sieve filtering? From identifying a specific email address? |
4 Oct 2017, 12:30 PM | #2 |
The "e" in e-mail
Join Date: Jul 2002
Location: VK4
Posts: 3,029
|
The bounce option has gone, this should work but its not a silent bounce.
if header :contains ["From", "X-Mail-from", "Return-Path"] "_____@_____" { reject "Message rejected because ___________!"; stop; } This should just discard if anyof( envelope :contains ["from","to"] "your domain.com", header :contains ["X-Delivered-to", "X-Mail-from"] ["email from"], discard; stop; } Last edited by Terry : 4 Oct 2017 at 12:35 PM. |
4 Oct 2017, 07:45 PM | #3 |
The "e" in e-mail
Join Date: May 2003
Location: mostly in Thailand
Posts: 3,095
|
If you use your own domain, also read this thread
|
7 Oct 2017, 02:18 AM | #4 | |
The "e" in e-mail
Join Date: Jan 2002
Posts: 2,619
|
Quote:
Also, I don't want to discard the message -- I want to keep it, but I want the sender to receive a bounce. I have told my office colleagues and managers not to email me at my personal email address while on leave, so I only want to do this with emails from my workplace. First, I need to see what a normal bounce looks like. |
|
7 Oct 2017, 02:24 AM | #5 | |
The "e" in e-mail
Join Date: Jan 2002
Posts: 2,619
|
Quote:
The messages are being delivered, and not being rejected, etc. How do I bounce an email from a specific domain? The sender must immediately be notified that the email bounced. I do not want to discard the email -- but I want to have the sender receive an immediate bounce message. |
|
7 Oct 2017, 02:40 AM | #6 | |
The "e" in e-mail
Join Date: Jan 2002
Posts: 2,619
|
Quote:
Code:
if header :contains ["From", "X-Mail-from", "Return-Path"] [xxxx.yy.tld] { reject "Message rejected because Invalid Email Recipient"; fileinto "INBOX.cdrom"; stop; } * Emails are going into the Inbox, not the "cdrom" folder * Sender at the xxxx.yy.tld email address is receiving nothing Last edited by FromLine : 8 Oct 2017 at 05:30 PM. |
|
7 Oct 2017, 02:53 AM | #7 | |
The "e" in e-mail
Join Date: May 2003
Location: mostly in Thailand
Posts: 3,095
|
Quote:
|
|
7 Oct 2017, 02:58 AM | #8 | |
The "e" in e-mail
Join Date: Jan 2002
Posts: 2,619
|
Quote:
Current code: Code:
if header :contains ["From", "X-Mail-from", "Return-Path"] "xxxx.yy.tld" { reject "Message rejected because Invalid Email Recipient"; fileinto "INBOX.cdrom"; stop; } How do I set it so that the sender receives a bounce? The emails aren't even going into the designated folder. Last edited by FromLine : 8 Oct 2017 at 05:30 PM. |
|
7 Oct 2017, 03:03 AM | #9 | |
The "e" in e-mail
Join Date: Jan 2002
Posts: 2,619
|
Quote:
Code:
# You were using Advanced Rules (custom sieve script). We disabled all # the converted rules and appended your existing script below if header :contains ["From", "X-Mail-from", "Return-Path"] "xxxx.yy.tld" { reject "Message rejected because Invalid Email Recipient"; fileinto "INBOX.cdrom"; stop; } Last edited by FromLine : 8 Oct 2017 at 05:31 PM. |
|
7 Oct 2017, 03:10 AM | #10 | |
The "e" in e-mail
Join Date: Jan 2002
Posts: 2,619
|
Quote:
Code:
if header :contains ["From", "X-Mail-from", "Return-Path"] "xxxx.yy.tld" { fileinto "INBOX.cdrom"; stop; } The reject isn't working. I wish FM didn't remove the bounce option. It's very important that any recipient from this domain receives a bounce. Currently, the only way to do this is to disable the alias. However, there are two problems with disabling the alias: 1) All emails will be rejected 2) No emails will be received I want to only reject emails from the domain xxxx.da.gov have the sender receive a bounce, and file these emails into a specific folder. How do I setup a bounce? Last edited by FromLine : 8 Oct 2017 at 05:31 PM. |
|
7 Oct 2017, 09:05 AM | #11 |
The "e" in e-mail
Join Date: May 2003
Location: mostly in Thailand
Posts: 3,095
|
Try changing the order to
Code:
if header :contains ["From", "X-Mail-from", "Return-Path"] "xxxx.da.gov" { fileinto "INBOX.cdrom"; reject "Message rejected because Invalid Email Recipient"; stop; } |
7 Oct 2017, 09:14 AM | #12 |
The "e" in e-mail
Join Date: May 2003
Location: mostly in Thailand
Posts: 3,095
|
If all else fails, you can achieve similar results by means of a vacation response. Just replace "reject" in your code with "vacation".
The big difference between reject and a vacation response is that the vacation response is only sent to a specific sender, by default, once every three days, regardless of how many messages he sends you. I believe (though I have not tried it) the interval can be changed, but the vacation response will still not occur for every message received. For more details on the sieve vacation response extension, see https://tools.ietf.org/html/draft-ie...ve-vacation-07 |
7 Oct 2017, 01:21 PM | #13 |
The "e" in e-mail
Join Date: Jul 2002
Location: VK4
Posts: 3,029
|
"xxxx.da.gov" is it missing .com on the end or .us
"xxxx.da.gov.com" |
7 Oct 2017, 02:46 PM | #14 |
The "e" in e-mail
Join Date: Jan 2002
Posts: 2,619
|
edited .......................................
Last edited by FromLine : 8 Oct 2017 at 05:33 PM. Reason: tld |
7 Oct 2017, 02:53 PM | #15 |
The "e" in e-mail
Join Date: Jan 2002
Posts: 2,619
|
I was wondering if my work's server wasn't receiving the bounce, so I've tried this with an @gmail.com address.
The following does not work: Code:
if header :contains ["From", "X-Mail-from", "Return-Path"] "thing2295@gmail.com" { reject "Message rejected because Invalid Email Recipient"; fileinto "INBOX.cdrom"; stop; } However, this still does work: Code:
if header :contains ["From", "X-Mail-from", "Return-Path"] "thing2295@gmail.com" { fileinto "INBOX.cdrom"; stop; } The reject code does not work -- period. I sent a support message to FM, pointing to this thread, as well. I am displeased that I am unable to bounce a message from a specific sender. It used to be simple command. |