EmailDiscussions.com  

Go Back   EmailDiscussions.com > Email Service Provider-specific Forums > FastMail Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
Stay in touch wirelessly

FastMail Forum All posts relating to FastMail.FM should go here: suggestions, comments, requests for help, complaints, technical issues etc.

Reply
 
Thread Tools
Old 4 Oct 2017, 10:30 AM   #1
FromLine
The "e" in e-mail
 
Join Date: Jan 2002
Posts: 2,619
Question 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?
FromLine is offline   Reply With Quote

Old 4 Oct 2017, 01:30 PM   #2
Terry
The "e" in e-mail
 
Join Date: Jul 2002
Location: VK4
Posts: 2,994
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 01:35 PM.
Terry is online now   Reply With Quote
Old 4 Oct 2017, 08:45 PM   #3
BritTim
The "e" in e-mail
 
Join Date: May 2003
Location: mostly in Thailand
Posts: 3,084
If you use your own domain, also read this thread
BritTim is offline   Reply With Quote
Old 7 Oct 2017, 03:18 AM   #4
FromLine
The "e" in e-mail
 
Join Date: Jan 2002
Posts: 2,619
Quote:
Originally Posted by BritTim View Post
If you use your own domain, also read this thread
I do use my own domain, and just looked at that thread. How does that distinguish?

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.
FromLine is offline   Reply With Quote
Old 7 Oct 2017, 03:24 AM   #5
FromLine
The "e" in e-mail
 
Join Date: Jan 2002
Posts: 2,619
Quote:
Originally Posted by Terry View Post
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 is not working at all.

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.
FromLine is offline   Reply With Quote
Old 7 Oct 2017, 03:40 AM   #6
FromLine
The "e" in e-mail
 
Join Date: Jan 2002
Posts: 2,619
Quote:
Originally Posted by Terry View Post
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;
}
Here's the code I'm using:

Code:
if header :contains ["From", "X-Mail-from", "Return-Path"] [xxxx.yy.tld] {
  reject "Message rejected because Invalid Email Recipient";
  fileinto "INBOX.cdrom"; stop;
}
It's not working at all.

* 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 06:30 PM.
FromLine is offline   Reply With Quote
Old 7 Oct 2017, 03:53 AM   #7
BritTim
The "e" in e-mail
 
Join Date: May 2003
Location: mostly in Thailand
Posts: 3,084
Quote:
Originally Posted by FromLine View Post
Here's the code I'm using:

Code:
if header :contains ["From", "X-Mail-from", "Return-Path"] [xxxx.da.gov] {
  reject "Message rejected because Invalid Email Recipient";
  fileinto "INBOX.cdrom"; stop;
}
It's not working at all.

* Emails are going into the Inbox, not the "cdrom" folder

* Sender at the xxxx.da.gov email address is receiving nothing
Is the "xxx.da.gov" in quotes in the actual sieve code. If not, it needs to be. I would expect a syntax error if the quotes are missing, but perhaps not.
BritTim is offline   Reply With Quote
Old 7 Oct 2017, 03:58 AM   #8
FromLine
The "e" in e-mail
 
Join Date: Jan 2002
Posts: 2,619
Quote:
Originally Posted by BritTim View Post
Is the "xxx.da.gov" in quotes in the actual sieve code. If not, it needs to be. I would expect a syntax error if the quotes are missing, but perhaps not.
Tried everything -- Still going directly to the inbox -- Not getting a syntax error at all.

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;
}
Not working at all.

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 06:30 PM.
FromLine is offline   Reply With Quote
Old 7 Oct 2017, 04:03 AM   #9
FromLine
The "e" in e-mail
 
Join Date: Jan 2002
Posts: 2,619
Quote:
Originally Posted by BritTim View Post
Is the "xxx.da.gov" in quotes in the actual sieve code. If not, it needs to be. I would expect a syntax error if the quotes are missing, but perhaps not.
At the very beginning of my rules:

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 06:31 PM.
FromLine is offline   Reply With Quote
Old 7 Oct 2017, 04:10 AM   #10
FromLine
The "e" in e-mail
 
Join Date: Jan 2002
Posts: 2,619
Quote:
Originally Posted by BritTim View Post
Is the "xxx.yy.tld" in quotes in the actual sieve code. If not, it needs to be. I would expect a syntax error if the quotes are missing, but perhaps not.
However, this is working just fine:

Code:
if header :contains ["From", "X-Mail-from", "Return-Path"] "xxxx.yy.tld" {
  fileinto "INBOX.cdrom"; stop;
}
And it's going into the INBOX.cdrom folder.

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 06:31 PM.
FromLine is offline   Reply With Quote
Old 7 Oct 2017, 10:05 AM   #11
BritTim
The "e" in e-mail
 
Join Date: May 2003
Location: mostly in Thailand
Posts: 3,084
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;
}
Maybe, sieve processing terminates after the reject. This is especially true as the standard recommends that the reject occur at the SMTP stage (while sieve normally occurs later). FastMail may well have logic that attempts to conform with that standard.
BritTim is offline   Reply With Quote
Old 7 Oct 2017, 10:14 AM   #12
BritTim
The "e" in e-mail
 
Join Date: May 2003
Location: mostly in Thailand
Posts: 3,084
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
BritTim is offline   Reply With Quote
Old 7 Oct 2017, 02:21 PM   #13
Terry
The "e" in e-mail
 
Join Date: Jul 2002
Location: VK4
Posts: 2,994
"xxxx.da.gov" is it missing .com on the end or .us

"xxxx.da.gov.com"
Terry is online now   Reply With Quote
Old 7 Oct 2017, 03:46 PM   #14
FromLine
The "e" in e-mail
 
Join Date: Jan 2002
Posts: 2,619
Quote:
Originally Posted by Terry View Post
"xxxx.yy.tld" is it missing .com on the end or .us

"xxxx.yy.tld.com"
edited .......................................

Last edited by FromLine : 8 Oct 2017 at 06:33 PM. Reason: tld
FromLine is offline   Reply With Quote
Old 7 Oct 2017, 03:53 PM   #15
FromLine
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;
}
It not only doesn't work, but it doesn't even go into the INBOX.cdrom folder, and no bouncat gmail.

However, this still does work:

Code:
if header :contains ["From", "X-Mail-from", "Return-Path"] "thing2295@gmail.com" {
  fileinto "INBOX.cdrom"; stop;
}
and files the incoming message into the INBOX.cdrom folder.

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.
FromLine is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +9. The time now is 05:22 PM.

 

Copyright EmailDiscussions.com 1998-2022. All Rights Reserved. Privacy Policy