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 8 Oct 2017, 05:02 PM   #31
FromLine
The "e" in e-mail
 
Join Date: Jan 2002
Posts: 2,612
Quote:
Originally Posted by n5bb View Post
For your latest example to work, your Fastmail account main login address must be adam@axxxxx.com and you must have some alias which has two delivery targets:
  • adam@axxxxx.com
  • adam+reject@axxxxx.com
However, your image indicates that your Fastmail account is at the fastmail.com domain
Should the sieve code be using:

alias@fastmail.com

alias+reject@fastmail.com

?
FromLine is offline   Reply With Quote
Old 8 Oct 2017, 05:10 PM   #32
FromLine
The "e" in e-mail
 
Join Date: Jan 2002
Posts: 2,612
Quote:
Originally Posted by n5bb View Post
However, your image indicates that your Fastmail account is at the fastmail.com domain. Please carefully read my earlier messages and note that the Sieve script does not use any portion of your alias. The two target (Deliver to) addresses entered for your alias are targets at your Fastmail account login address, and the Sieve script contains your Fastmail account main (login) address with +reject.
Now this is my code:

Code:
if allof (
  header :contains ["From", "X-Mail-from", "Return-Path"] "gmail.com",
  header :contains ["X-Resolved-to"] ["trueaccountname+reject@fastmail.com"] 
) {
  reject "Please don't use this address!";
  stop;
}
elsif header :contains ["X-Resolved-to"] ["trueaccountname+reject@fastmail.com"] {
  discard;
  stop;
}
I am reading your messages carefully. I'm trying to setup the specific steps, but it's still not working. I just tested this, and nothing is being returned the sender at "gmail.com".
FromLine is offline   Reply With Quote
Old 8 Oct 2017, 05:16 PM   #33
n5bb
Intergalactic Postmaster
 
Join Date: May 2004
Location: Irving, Texas
Posts: 8,245
Quote:
Originally Posted by FromLine View Post
Should the sieve code be using:
alias@fastmail.com
alias+reject@fastmail.com
?
No. As I keep pointing out, my Sieve script uses your Fastmail main (login) address with +reject. So the Sieve code uses "jcitizen+reject@fastmail.com" if your Fastmail login address is "jcitizen@fastmail.com". Please read my posts carefully again and you will see that the alias address is not used. All that matters is that the alias delivery to targets are:
  • Your Fastmail login address
  • Your Fastmail login address with +reject
I won't be able to respond further for another 10 hours or so.

Bill
n5bb is offline   Reply With Quote
Old 8 Oct 2017, 05:27 PM   #34
FromLine
The "e" in e-mail
 
Join Date: Jan 2002
Posts: 2,612
...........................

Last edited by FromLine : 8 Oct 2017 at 06:05 PM.
FromLine is offline   Reply With Quote
Old 8 Oct 2017, 05:57 PM   #35
gardenweed
Essential Contributor
 
Join Date: Jun 2008
Location: Perth
Posts: 470
I tested Bill's script and it works for me.

When you send your test email from Gmail, are you sending it to the correct alias where you have setup the extra redirect that includes the +reject ?
gardenweed is offline   Reply With Quote
Old 8 Oct 2017, 06:05 PM   #36
FromLine
The "e" in e-mail
 
Join Date: Jan 2002
Posts: 2,612
Quote:
Originally Posted by gardenweed View Post
I tested Bill's script and it works for me.

When you send your test email from Gmail, are you sending it to the correct alias where you have setup the extra redirect that includes the +reject ?
I just got it working.

The problem was I have two very similar domains, each with the same alias, and I needed to add the targets to the correct domain.

However, this is the return message being sent back to gmail:

https://i.imgur.com/1ut3NQ9.jpg

I'm not getting a bounce with attachments.

It's from:

Mail Sieve Subsystem <postmaster@messagingengine.com>

and the body of the return mail states the following:

Your message was automatically rejected by Sieve, a mail
filtering language.

The following reason was given:
INVALID Email Address

---------- Forwarded message ----------

There are no attachments, it clearly states I'm using Sieve filtering language, and it's not what a bounce normally looks like.

Bill states:

Quote:
Originally Posted by n5bb View Post
[*]Two attachments are included. One is the original message. The second (named Attachment2) contains the message disposition status. It will be similar to:
Reporting-UA: sloti22d1t13; Cyrus fastmail-fmjessie45441-15552-git-fastmail-15552/CMU Sieve 3.0
Original-Recipient: rfc822; <Original destination address>
Final-Recipient: rfc822; Ys555yY76QL5/Gi34eksvyyKoFA87Wrd33cLPI5cQS 15444113573
Original-Message-ID: <1507331572.631740.1131244464.466GH196@webmail.messagingengine.com>
Disposition: automatic-action/MDN-sent-automatically; deleted[*]A copy of the message will be placed in your Inbox..[/list][*]If you receive a normal incoming message to that alias (not from the gov From address), the elseif... clause in the rule will discard the message delivered with +reject. But the normally targeted message will be delivered since my rule will be ignored.[/list]I have tested the Sieve rule I posted above (with a different From and my own alias) and it works correctly. But other Sieve rules (automatic or manual) could interact with this rule, so be sure to test it before trusting it.

Bill
That's not consistent (see my image link above) with what I'm getting.
FromLine is offline   Reply With Quote
Old 8 Oct 2017, 06:16 PM   #37
FromLine
The "e" in e-mail
 
Join Date: Jan 2002
Posts: 2,612
Quote:
Originally Posted by FromLine View Post
I just got it working.

The problem was I have two very similar domains, each with the same alias, and I needed to add the targets to the correct domain.

However, this is the return message being sent back to gmail:
I just tested it using an @sent.com email address and did get the attachments as follows:

https://i.imgur.com/xmmiFMj.jpg

The body still states:

Your message was automatically rejected by Sieve, a mail
filtering language.

The following reason was given:
INVALID Email Address

and the subject is:

Automatically rejected mail

It appears it varies based upon the email service at hand from the sender.

I will test it on Monday from the office using @xxxxx.ca.gov
FromLine is offline   Reply With Quote
Old 8 Oct 2017, 06:20 PM   #38
FromLine
The "e" in e-mail
 
Join Date: Jan 2002
Posts: 2,612
This is what the Google version looks like:

https://i.imgur.com/3dt5unh.jpg

But there are no attachments.

Seems like Gmail doesn't include the attachments.

It'll be interesting to see, on Monday (in about 36 hours) what it looks like from xxxx.ca.gov
FromLine is offline   Reply With Quote
Old 8 Oct 2017, 07:14 PM   #39
FromLine
The "e" in e-mail
 
Join Date: Jan 2002
Posts: 2,612
Quote:
Originally Posted by n5bb View Post
I won't be able to respond further for another 10 hours or so.

Bill
Bill -- Thank you for all your assistance in this matter.

Things can be a bit confusing with all the steps sometime. I inadvertently added the second target -- alias+reject@fastmail.com -- to a similar, but different, virtual domain with the same alias, adam@ (I have two domains -- one with first initial and last name, and the other with first name and last name -- i.e. jdoe.com and johndoe.com) and I noticed after your last message that I mixed up the two.

Interesting that Gmail doesn't send the attachments, but FM does.

Gmail Inbox:
https://i.imgur.com/3dt5unh.jpg

Gmail message body:
https://i.imgur.com/1ut3NQ9.jpg

Fastmail:
https://i.imgur.com/xmmiFMj.jpg

I'll test the xxxx.yy.tld address on Monday. The agency using MS Outlook, so I'm hopeful that it'll alert accordingly. I'll report back with the results.

Last edited by FromLine : 8 Oct 2017 at 07:24 PM.
FromLine is offline   Reply With Quote
Old 9 Oct 2017, 08:08 AM   #40
n5bb
Intergalactic Postmaster
 
Join Date: May 2004
Location: Irving, Texas
Posts: 8,245
As I said before, Gmail for some reason ignores much of the message disposition notice for the normal user view. But you can see these details by using Show original when reading the message in Gmail.
Quote:
Originally Posted by n5bb View Post
...If I look at the original (raw) message contents which are received at Gmail due to the rejection, the rejection message has a 3-part mulitipart MIME body. Gmail displays this differently than Fastmail to the user if you don't look at the raw message...
The Outlook Exchange server (when viewed using Office 365) shows the following bounce (sent from "Mail Sieve Subsystem" <postmaster@messagingengine.com>):
Quote:
Your message was automatically rejected by Sieve, a mail
filtering language.

The following reason was given:
"Please don't use this address!
Bill
n5bb is offline   Reply With Quote
Old 9 Oct 2017, 04:19 PM   #41
Terry
The "e" in e-mail
 
Join Date: Jul 2002
Location: VK4
Posts: 2,519
Just use an auto reply and set it so its works every day and not every 3 days, you have more control of the reply message being sent using this.
Terry is offline   Reply With Quote
Old 10 Oct 2017, 01:04 AM   #42
n5bb
Intergalactic Postmaster
 
Join Date: May 2004
Location: Irving, Texas
Posts: 8,245
Quote:
Originally Posted by Terry View Post
Just use an auto reply and set it so its works every day and not every 3 days, you have more control of the reply message being sent using this.
A normal vacation response message is sent to nearly all incoming messages (or to any message in your Contacts list), which is not what is desired in this situation. You could try to write custom Sieve to only respond to one sender domain, but then the normal vacation feature wouldn't work cleanly. In addition, the vacation response does not indicate to an Outlook Exchange sending system that there is any problem with the address.See below for more details.

When you use the two different systems (vacation or sieve reject) here are the differences in what is returned to an Outlook Exchange sender:
Code:
Message field     Vacation                  Sieve reject
--------------------------------------------------------------------------
From:             Fastmail address          Mail Sieve Subsystem
Icon:             <none>                    <Message deleted without being read notice icon>
Subject:          Auto: <original subject>  Not read: <original subject>
Message body:     <exact text>              Sieve rejection message (see below)
The Sieve rejection message body appears as follows in Outlook:
Code:
Your message was automatically rejected by Sieve, a mail
filtering language.

The following reason was given:

<exact text in your Sieve rule>
In my opinion the Sieve reject response makes it much more obvious to an Outlook Exchange sender that something went wrong and they shouldn't be using that address.

Bill
n5bb is offline   Reply With Quote
Old 10 Oct 2017, 09:51 AM   #43
Terry
The "e" in e-mail
 
Join Date: Jul 2002
Location: VK4
Posts: 2,519
But surly using a custom sieve scrip for an auto reply to a set recipient they would only get the auto reply message and not the fastmail instructions about sieve rules.

In my test I just get receiving in Fastmail my fastmail account.

Hi.....just a quick auto reply to advise that your email has arrived safely in my mailbox, sorry but I'm currently away from my computer but I will reply a.s.a.p......Best Wishes Terry.
Terry is offline   Reply With Quote
Old 11 Oct 2017, 01:09 PM   #44
FromLine
The "e" in e-mail
 
Join Date: Jan 2002
Posts: 2,612
It's not working using the Outlook Client at work as follows:

https://i.imgur.com/VpUO87I.jpg

In fact, it makes the matter more counter-intuitive, and a worse result.

Subject: Not read: [text]

and the message is:

"message was deleted without being read"

This makes the user believe I saw who the message was from, read the subject, and deleted it without reading it, and gives the sender an inaccurate message.

Also, the vacation response is not working. When I replace the word reject with vacation, nothing is received at all (nothing returned to the sender).

The reject command in Sieve Outlook (this Outlook) processes it as a "was deleted without being read"

Fastmail used to have a very valuable tool - a bounce button -- which literally sent a bounce message back to the user.

Last edited by FromLine : 11 Oct 2017 at 01:29 PM.
FromLine is offline   Reply With Quote
Old 11 Oct 2017, 01:14 PM   #45
FromLine
The "e" in e-mail
 
Join Date: Jan 2002
Posts: 2,612
Quote:
Originally Posted by Terry View Post
Just use an auto reply and set it so its works every day and not every 3 days, you have more control of the reply message being sent using this.
What is the process and steps to send one autoreply instantly?
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 01:38 PM.

 

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