EmailDiscussions.com

EmailDiscussions.com (http://www.emaildiscussions.com/index.php)
-   FastMail Forum (http://www.emaildiscussions.com/forumdisplay.php?f=27)
-   -   How do I Bounce an email? (http://www.emaildiscussions.com/showthread.php?t=73100)

FromLine 4 Oct 2017 10:30 AM

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?

Terry 4 Oct 2017 01:30 PM

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;
}

BritTim 4 Oct 2017 08:45 PM

If you use your own domain, also read this thread

FromLine 7 Oct 2017 03:18 AM

Quote:

Originally Posted by BritTim (Post 604106)
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 7 Oct 2017 03:24 AM

Quote:

Originally Posted by Terry (Post 604105)
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 7 Oct 2017 03:40 AM

Quote:

Originally Posted by Terry (Post 604105)
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

BritTim 7 Oct 2017 03:53 AM

Quote:

Originally Posted by FromLine (Post 604133)
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.

FromLine 7 Oct 2017 03:58 AM

Quote:

Originally Posted by BritTim (Post 604134)
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.

FromLine 7 Oct 2017 04:03 AM

Quote:

Originally Posted by BritTim (Post 604134)
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;
}


FromLine 7 Oct 2017 04:10 AM

Quote:

Originally Posted by BritTim (Post 604134)
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?

BritTim 7 Oct 2017 10:05 AM

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 7 Oct 2017 10:14 AM

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

Terry 7 Oct 2017 02:21 PM

"xxxx.da.gov" is it missing .com on the end or .us

"xxxx.da.gov.com"

FromLine 7 Oct 2017 03:46 PM

Quote:

Originally Posted by Terry (Post 604144)
"xxxx.yy.tld" is it missing .com on the end or .us

"xxxx.yy.tld.com"

edited .......................................

FromLine 7 Oct 2017 03:53 PM

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.


All times are GMT +9. The time now is 02:40 PM.


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