sieve script for blocking mailchimp to specific alias email
How would I write a rule for sieve to stop ALL mail being sent to a specific alias email via mailchimp. Alias email has to be in the semi-public domain so no point changing it but certain organisations are begging me for money via mailchimp. If you need the raw data info let me know which bit. thx
|
When constructing complex sieve rules, you need to carefully examine the headers of the messages you want to manipulate. Perhaps, you could post the headers of two representative messages,, obscuring personally identifiable information. (I suggest changing the part of an email address that identifies an individual account to something like '<my-account>', '<sender's-account>').
|
When a particular email is opened to be read, click on the 'more' dropdown and then the 'Add rule from message' choice. The 'Mailing List ID' spec should already be one of the conditions, then click the 'Add Condition' button and add the specific email address that you want this rule to apply to.
If that doesn't work, you can delete the 'ID' condition, and add one like this: https://monosnap.com/file/Kag0BI2Cee...jz4Xs37WpHhFKz This is what I'd do, hopefully it works for you as well. - Bruce edit: if it's a legitimate mailing list email, perhaps just unsubscribe from it.. |
Quote:
Quote:
if header :contains "X-Mailer" ["MailChimp"] {reject } |
You can create a rule based on the To alias and the X-Mailer header.
Go to Settings->Rules, click New rule, and use Code:
If all of the following conditions apply Code:
A header called X-Mailer begins with MailChimp Mailer Permanently delete the message Then click Save |
Quote:
|
Quote:
Quote:
|
Quote:
Code:
if |
I do what was just described. But I always keep the rule disabled at the start of the list of rules to make it easier to spot in the sieve script. It will be the first rule that's is always commented out. No need to go back and delete it.
|
Quote:
Really appreciate your knowledge here Will the script I wrote fail, if so what about it have I messed up. Again forgetting aliases (so as to make it less complicated)? PS I signed up for a free mailchimp account (giving the spammy gits no private info) I used an alias email & sent my self test emails while fiddling with sieve script. To test if my script was stopping them. It only started stopping them when I set it like below Quote:
|
Quote:
|
Quote:
|
|
All times are GMT +9. The time now is 02:26 AM. |
Copyright EmailDiscussions.com 1998-2022. All Rights Reserved. Privacy Policy