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 2 Nov 2020, 03:14 PM   #1
xyzzy
Essential Contributor
 
Join Date: May 2018
Posts: 474
Sieve redirect privacy concern

This is just a "heads up" that if you are using a rule's "Send a copy to" which is coded as a Sieve redirect or of course you use a Sieve redirect explicitly, the redirected message contains your X-Resolved-to. (plus a number of other headers). That effectively gives away your actual FM email account address. Obviously if it's another one of your own FM addresses it doesn't matter.

FM's "Organizing your inbox" document states for Rule actions,

Quote:
  • Send a copy to — with this option, a copy of messages that match your condition(s) can be sent to one or more external email addreses
But when I submitted a ticket on this FM's reply was,

Quote:
This is the intended behaviour. Sieve redirect is primarily intended for forwarding on mail to another account you control. We have no current plans to change this.
My reply then to that is they need to define "external" more precisely in their documentation (and I did update the ticket stating that - reopened after the tried to close it). I guess "external" can be a non-FM email address so long as it's only one of your own.

Thoughts?
xyzzy is offline   Reply With Quote

Old 3 Nov 2020, 12:48 AM   #2
hbs
Junior Member
 
Join Date: Jul 2016
Posts: 23
Interestingly FastMail strips all their own X-headers when forwarding an email via the Web UI including X-Resolved-to. I once mentioned it here in the forum.

I had raised a ticket in 12/2017 to no avail. One of the developers (quite active here in the forum) stated that retaining the X-Resolved-to header (as well as all other of FM's X-headers) is the intended behavior:

"2. As noted, in the vast majority of cases people use sieve redirects to send emails to another trusted mailbox. In these cases, preserving as much information as possible is always useful (e.g. all the Received headers + any additional X— headers we add like X-Spam-score, X-Delivered-to, X-Resolve-to, etc), since it helps understand the overall mail flow and actions that occurred on the mail from start to finish."

Since then, for I don't need the X-Resolved-to header, I remove it right at the beginning of my Sieve script:

Code:
# Get rid of the "X-Resolved-header"
if address :matches ["X-Resolved-to"] ["*"] {
    if not string :is "${1}" "" {
        set :lower "v_hbs_header_x_resolved_to" "${1}";
        deleteheader "X-Resolved-to";
    }
}
If retaining the X-Resolved-to header is essential it would be possible to re-add the header afterwards (in pseudo code):
- delete x-resolved-to header
- redirect copy of email
- add x-resolved-to header

The only drawback would be that the X-Resolved-to header would not reappear in its original place in the email source.

H.
hbs is offline   Reply With Quote
Old 3 Nov 2020, 04:36 AM   #3
SideshowBob
Essential Contributor
 
Join Date: Jan 2017
Posts: 278
I don't see in what circumstance anyone would redirect to an address that's not trusted. This seems like a very artificial problem.
SideshowBob is offline   Reply With Quote
Old 3 Nov 2020, 06:52 AM   #4
BritTim
The "e" in e-mail
 
Join Date: May 2003
Location: mostly in Thailand
Posts: 3,090
Quote:
Originally Posted by SideshowBob View Post
I don't see in what circumstance anyone would redirect to an address that's not trusted. This seems like a very artificial problem.
Depending on the mail service used (for instance for backup email accounts) you may trust the recipient, but not want the provider of the mail service to be able to harvest your FastMail account name.
BritTim is offline   Reply With Quote
Old 3 Nov 2020, 07:42 AM   #5
xyzzy
Essential Contributor
 
Join Date: May 2018
Posts: 474
Quote:
Originally Posted by SideshowBob View Post
I don't see in what circumstance anyone would redirect to an address that's not trusted. This seems like a very artificial problem.
You might be right. I only stumbled upon this issue tinkering around with might be an "artificial" problem! I have two kinds of aliases I use for registrations. There's my "standard" regular aliases used for permanent registrations. And then there's "one offs", "disposables", "temporaries", "quick and dirty" (whatever you want to call them) aliases I use much like you would use sites like Mailinator, etc. (many places though a wise to sites like Mailinator and don't allow using their email addresses).

My "disposables" overload a single alias using subdomain addressing so I cannot just delete or disable that alias. For example, x1@aliasname.aliasdomain, x2@aliasname.aliasdomain, etc. I can create any number of these quickly using a single alias set up for this purpose when some place insists on an email address. Yes, I could use new standard aliases each time. But then I have to create it and wait until it takes effect.

When it comes time to no longer needing one of these email addresses I have a number of choices on how to handle it.
  1. Reject it. More-or-less the equivalent of disabling or deleting standard aliases.
  2. Save it in a folder (e.g., FM provides blocked addresses setting that moves in them only into trash). I might want to see why that email address is being used after I'm through with it.
  3. Discard them (but I never want to discard - for discards I use a folder named "discard" that has a small retention time).
My experiment (and it was only an experiment just to see if it was possible) was to be able to do both 1 and 2, i.e., save a copy in a folder and also reject it. And this might apply for certain standard aliases as well.

To do this I create a copy of the message using a redirect :copy. Since the original was sent to my alias it is being redirected back to that same alias (i.e., it's a loop but I added a unique header to detect this case). The original message is filed into a folder and the redirected copy is rejected back to the original sender, i.e., the one not to be trusted. It's not the original copy of course but the one sent by the redirect so it contains the X-Resolved-to.

So this (contrived?) case is an example of using a redirect to effect a reject back to an untrusted sender.

As I said it was only an experiment (a proof of concept) to see if it could be done and it does work. But that's where I discovered the X-Resolved-to was added to the redirected copy and then rejected back to the original sender. If I really wanted to do this I can keep the recipient from seeing my X-Resolved-to simply by deleting it before the redirect.

As I said it was only a proof of concept. But it seemed to me that in general why should the X-Resolved-to (and a bunch of the X-Spam headers) be included by a redirect? The documentation doesn't specify any such restrictions on the redirect recipients and the UI doesn't place any restriction on it there either. I don't know, maybe you want to create a filter to redirect certain messages to friend. You still might not want them to know your actual account email address (assuming they bother to dig around in the headers).

Anyway, that's how all this came up. If you want to call it an "artificial problem" I'm fine with that.

----

Update:
I was constructing this reply when I noticed after I posted it that BritTim can up with another reason not have your account info in the headers. That too!

Last edited by xyzzy : 3 Nov 2020 at 08:25 AM.
xyzzy is offline   Reply With Quote
Old 3 Nov 2020, 08:52 AM   #6
Grhm
Essential Contributor
 
Join Date: Mar 2007
Location: UK
Posts: 270
Quote:
Originally Posted by SideshowBob View Post
I don't see in what circumstance anyone would redirect to an address that's not trusted. This seems like a very artificial problem.
Quote:
Originally Posted by xyzzy View Post
I don't know, maybe you want to create a filter to redirect certain messages to friend. You still might not want them to know your actual account email address (assuming they bother to dig around in the headers)
I do exactly this: I automatically forward copies of messages that arrive at certain addresses on one of my domains to the chair and secretary of an organisation I belong to. I thought that was the kind of thing it was designed for! I'm slightly shocked by what xyzzy has uncovered. (Unless I've misunderstood?)

Last edited by Grhm : 3 Nov 2020 at 08:57 AM.
Grhm is offline   Reply With Quote
Old 3 Nov 2020, 10:02 AM   #7
SideshowBob
Essential Contributor
 
Join Date: Jan 2017
Posts: 278
Quote:
Originally Posted by Grhm View Post
I do exactly this: I automatically forward copies of messages that arrive at certain addresses on one of my domains to the chair and secretary of an organisation I belong to. I thought that was the kind of thing it was designed for! I'm slightly shocked by what xyzzy has uncovered. (Unless I've misunderstood?)
What exactly do you think they would do with that information?

Sell it to a spammer? Hack you?
SideshowBob is offline   Reply With Quote
Old 3 Nov 2020, 11:11 AM   #8
Grhm
Essential Contributor
 
Join Date: Mar 2007
Location: UK
Posts: 270
It's not relevant what they might do with the info.
xyzzy reports Fastmail as saying "Sieve redirect is primarily intended for forwarding on mail to another account you control."
They wouldn't have said that if it doesn't matter whether I control the account or not.
Grhm is offline   Reply With Quote
Old 3 Nov 2020, 02:16 PM   #9
xyzzy
Essential Contributor
 
Join Date: May 2018
Posts: 474
Quote:
Originally Posted by Grhm View Post
It's not relevant what they might do with the info.
xyzzy reports Fastmail as saying "Sieve redirect is primarily intended for forwarding on mail to another account you control."
They wouldn't have said that if it doesn't matter whether I control the account or not.
I still don't agree with their response and may request it be escalated to a higher level.

If there is confirmation of the intent of the UI's Send a copy to (which currently allows you to type any email address you want in there) then so be it but I think then they at least need to document the possible implications of using that setting if you don't send to "another account you control".

Part of my original ticket asked why they include these headers in the forwarded message at all. Never got an answer for that.
xyzzy is offline   Reply With Quote
Old 3 Nov 2020, 04:23 PM   #10
xyzzy
Essential Contributor
 
Join Date: May 2018
Posts: 474
My ticket has been updated by a different support person, one I have dealt with before, and he says it's passed to the "team concerned". That's just what I was after. So we wait...
xyzzy is offline   Reply With Quote
Old 3 Nov 2020, 11:09 PM   #11
SideshowBob
Essential Contributor
 
Join Date: Jan 2017
Posts: 278
I don't forward from Fastmail, but I do make use of upstream headers, they can be very useful.

You're talking about removing a feature that's useful to some people using redirect in the normal way. Anyone who cares can remove the headers with sieve, or simply get a life.

So far I haven't heard a good reason why it's even a problem. I certainly don't think it's worth documenting. This kind of nonsense is why kettles now come with 10 page manuals.
SideshowBob is offline   Reply With Quote
Old 4 Nov 2020, 08:43 AM   #12
Grhm
Essential Contributor
 
Join Date: Mar 2007
Location: UK
Posts: 270
Quote:
Originally Posted by SideshowBob View Post
I do make use of upstream headers
What use do you make of them, if you don't mind me asking?
Grhm is offline   Reply With Quote
Old 4 Nov 2020, 07:03 PM   #13
JeremyNicoll
Essential Contributor
 
Join Date: Dec 2017
Location: Scotland
Posts: 484
Quote:
Originally Posted by SideshowBob View Post
I don't forward from Fastmail, but I do make use of upstream headers, they can be very useful.
If you're not forwarding, surely "upstream headers" are just normal mail headers?

And, yes, of course those are useful, showing the route emails took to get to you, and whose systems they passed through quickly and whose they were delayed on.
JeremyNicoll is offline   Reply With Quote
Old 5 Nov 2020, 09:54 PM   #14
SideshowBob
Essential Contributor
 
Join Date: Jan 2017
Posts: 278
Quote:
Originally Posted by JeremyNicoll View Post
If you're not forwarding, surely "upstream headers" are just normal mail headers?
I forward some mail *into* FM, and then retrieve from FM and feed the mail into my own imap server with it's own sieve filtering and SpamAssassin. In practice there no real difference between retrieval and forwarding.

Quote:
And, yes, of course those are useful, showing the route emails took to get to you, and whose systems they passed through quickly and whose they were delayed on.
There's a lot more. There's upstream authentication results either via ARC, or by SpamAssassin examing the trusted network. Some systems, and particularly FM, have a wealth of spam-filtering information, for example the paid Invaluement lists.

They can also be useful for general filtering, for example if you are forwarding two accounts to the same destination, X-Resolved-to tells you which account an email came through.
SideshowBob is offline   Reply With Quote
Old 12 Nov 2020, 05:36 AM   #15
xyzzy
Essential Contributor
 
Join Date: May 2018
Posts: 474
Finally got a update on my ticket. They are not going to change it but they are considering documenting it. End of story.
xyzzy 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 10:53 AM.

 

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