On 07 May 2020, at 19:31, yuv <post...@sfina.com> wrote:
> I am operating a smallish postfix server for my law office.  Many of
> our contacts use Google's calendar, and when they enter one of our
> email addresses into their calendar entries, we receive a flood of
> annoying emails.  Invitations / reminders / updates / changes /
> cancellations of meetings.

This is a “feature” of Google Calendar. 

> Initially, after receiving twelve emails for a single calendar entry
> repeated weekly for three months, I wanted to outright reject the
> Google spam. After the second change within 24 hours, I also wanted to
> fire the client.  But maybe there is smarter way to deal with this
> annoyance, such as re-directing the emails to an auto-responder

That would be a very bad idea.

> or some other form of automated processing (/dev/null comes to my mind too)?

Filter them into their own mailbox and auto-mark them as read.

> Below is the PCRE that I came up with to catch the offending messages,
> without blocking other correspondence (the contacts and their
> organizations are likely to use Google's SMTP for their regular
> emails):
> 
> /^Return-Path:(.+)(calendar-server.bounces.google.com)(.*)/  REJECT No
> Google Calendar Spam Here

If you reject mail from Google, Google will stop sending you mail. ALL mail. 
Can you afford that?

> But maybe rewriting the destination address, or sending an auto-
> responder right away?  I just want to get that spam out of the way in
> the most elegant way possible.

Sieve/procmail.




-- 
My own people are trying to kill me? It's so French.


Reply via email to