View Single Post
Old 17 Dec 2018, 03:24 AM   #10
n5bb
Intergalactic Postmaster
 
Join Date: May 2004
Location: Irving, Texas
Posts: 8,929
Arrow Forwarding to contact group

There are two situations where we might like to use a contact group for automatic email processing:
  1. Incoming mail rules from members of a group: This was the original topic of this thread.
  2. Automatic forwarding of incoming messages to all members of a group: This can be done by setting the target of an alias to a group, as I mentioned earlier in this thread. But this bypasses spam filtering and the sieve rules system, and also requires us to set up special aliases and tell others to send to those specific aliases. So by itself this is not an ideal solution to this problem.
You can get around some (but not all) of the problems with #2 (automatic forwarding to a group) by using rules to forward certain messages to a special alias. I just tested this and it works fine if you are careful to not set up an email loop. Here is how to set this up:
  • Create a special alias which you will only use for sending messages to a group.
    • You must enter a delivery address, but in this case you don't want to deliver the message to your account since it may create an email loop. So I recommend you enter a plus+address such as user+noloop@youraccount.com and as shown below make changes to your rules to keep such messages from causing loops.
    • Choose to also deliver to all contacts in the desired contact group.
    • Restrict senders so that only FastMail users can send to this address. This prevents
    • Save the new or modified alias.
  • Create a rule specifying which messages will be forwarded to the group. You can't directly do this in sieve, since it doesn't understand address book groups. But you can create a rule as described below to forward the incoming message to your special alias described above.
    • Create a "all of the following conditions" rule with any conditions you wish to use to specify which messages are to be forwarded to the group.
    • Add a condition as follows:
      • A header called
      • X-Delivered-to
      • does not match glob pattern
      • *+noloop@*
    • The action should be to send a copy to your special alias, created as described above.
    • You can choose to Delete Permanently (only forward and discard the incoming message) or not (keep the incoming message as normal).
  • Now incoming messages which match your rule will be automatically forwarded to the special alias.
    • The alias will deliver the message to all contacts in the specified group.
    • Recipients of these forwarded messages will see the original From and To and Subject headers created by the original sender.
    • Depending on your choice to Delete Permanently described below, you can choose whether the message is delivered to your Inbox.
    • Because of the From address not aligning with the Fastmail server, it's quite possible that messages forwarded this way (and many other ways) will be marked as spam at the receiver.
Bill
n5bb is offline   Reply With Quote