Email header with multiple received fields: How can this happen and can this be used to fight SPAM - postfix-mta

I often receive fishing /SPAM emails with multiple received fields.
First, I'd like to understand how one email header can have more than one received field.
Second, I'd like to know if I can use this to fight SPAM.
Here is an example:
Return-Path:
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on myhosting.com
X-Spam-Level:
X-Spam-Status: No, score=0.0 required=3.5 tests=HTML_MESSAGE autolearn=ham
version=3.3.2
X-Spam-ASN:
X-Original-To: my#email.rs
Delivered-To: my#email.rs
Received: from posta.abak.si (posta.abak.si [84.255.212.92])
by myhosting.com (Postfix) with ESMTPS id 522CA80DC8
for ; Wed, 8 May 2019 14:31:59 +0200 (CEST)
Authentication-Results: myhosting.com;
dmarc=none (p=NONE sp=NONE) smtp.from=mk.kema-on.net header.from=mk.kema-on.net;
spf=none (sender IP is 84.255.212.92) smtp.mailfrom=dime.mitreski#mk.kema-on.net smtp.helo=posta.abak.si
Received-SPF: none (myhosting.com: no valid SPF record)
Received: from localhost (localhost [127.0.0.1])
by posta.abak.si (Postfix) with ESMTP id 2C09E1E6A7D7
for ; Wed, 8 May 2019 14:35:06 +0200 (CEST)
Received: from posta.abak.si ([127.0.0.1])
by localhost (posta.abak.si [127.0.0.1]) (amavisd-new, port 10032)
with ESMTP id dw1MvahvfmXL for ;
Wed, 8 May 2019 14:35:05 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
by posta.abak.si (Postfix) with ESMTP id EB2B21E6A3C6
for ; Wed, 8 May 2019 14:30:12 +0200 (CEST)
X-Virus-Scanned: amavisd-new at posta.abak.si
Received: from posta.abak.si ([127.0.0.1])
by localhost (posta.abak.si [127.0.0.1]) (amavisd-new, port 10026)
with ESMTP id luUYSdWOdHLE for ;
Wed, 8 May 2019 14:30:12 +0200 (CEST)
Received: from IP-129-13.dataclub.eu (unknown [84.38.129.13])
by posta.abak.si (Postfix) with ESMTPA id B18CD1E6A7A6
for ; Wed, 8 May 2019 14:25:39 +0200 (CEST)
Content-Type: multipart/alternative; boundary="===============0253676305=="
MIME-Version: 1.0
Subject: Warning: you have (3) Undelivered messesges
To: my#email.rs
From: "Webmaster"
Date: Wed, 08 May 2019 15:25:37 +0300
Message-Id:
Message Body

Every mail server that processes an email adds its own Received field to the header. It is normal for emails to pass through several email servers when traveling across the internet from the sender's computer to the final destination.
https://www.rfc-editor.org/rfc/rfc5321#section-4.4
When an SMTP server receives a message for delivery or further
processing, it MUST insert trace ("time stamp" or "Received")
information at the beginning of the message content,
Looking at the first Received field,
Received: from IP-129-13.dataclub.eu (unknown [84.38.129.13])
by posta.abak.si (Postfix) with ESMTPA id B18CD1E6A7A6
for ; Wed, 8 May 2019 14:25:39 +0200 (CEST)
you will notice that it says which server it received the mail from (the "FROM" clause), and which server received it (the "BY" clause").
As you read through the list of Received fields in the header you posted, you will notice that they are all linked in this fashion.

Related

Opendkim marking incomming messages as dkim=fail

I am configuring opendkim+postfix. It is working OK and sent messages are correctly signed but the incomming messages are all marked as dkim=fail reason="signature verification failed"
How con I debug this problem?
Return-Path: <sender#gmail.com>
Delivered-To: recipient#mydomain.com
Received: from localhost (mailserver [127.0.0.1])
by mydomain.com (Postfix) with SMTP id 4DDF93F966
for <recipient#mydomain.com>; Tue, 24 Oct 2017 13:56:43 +0200 (CEST)
DKIM-Filter: OpenDKIM Filter v2.11.0 mydomain.com 4DDF93F966
Authentication-Results: mydomain.com;
dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=#gmail.com header.b="jmdDmXQb"
Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=209.85.215.43; helo=mail-lf0-f43.google.com; envelope-from=sender#gmail.com; receiver=recipient#mydomain.com
DMARC-Filter: OpenDMARC Filter v1.3.2 mydomain.com 2DBE03F963
Authentication-Results: mail.mydomain.com; dmarc=pass (p=none dis=none) header.from=gmail.com
Authentication-Results: mail.mydomain.com; spf=pass smtp.mailfrom=sender#gmail.com
The syslog reports this which looks OK
Oct 24 14:08:39 mailz opendkim[3325]: 4A29F3F938: [209.85.215.45] [209.85.215.45] not internal
Oct 24 14:08:39 mailz opendkim[3325]: 4A29F3F938: not authenticated
Oct 24 14:08:39 mailz opendkim[3325]: 4A29F3F938: DKIM verification successful
But later it adds:
Oct 24 14:08:43 mailzener postfix/cleanup[3194]: 6CC243F95E: message-id=<CAMXuvOM+jKLkE=0FrQ+cSqFesmPQujpHoVsfH9G_URg9uYtm1g#mail.gmail.com>
Oct 24 14:08:43 mailzener opendkim[3325]: 6CC243F95E: no signing table match for 'sender#gmail.com'
Oct 24 14:08:43 mailzener opendkim[3325]: 6CC243F95E: bad signature data
My opendkim configuration file is this:
AutoRestart Yes
AutoRestartRate 10/1h
LogWhy Yes
Syslog Yes
SyslogSuccess Yes
Mode sv
Canonicalization relaxed/simple
ExternalIgnoreList refile:/etc/opendkim/TrustedHosts
#InternalHosts refile:/etc/opendkim/TrustedHosts
KeyTable refile:/etc/opendkim/KeyTable
SigningTable refile:/etc/opendkim/SigningTable
SignatureAlgorithm rsa-sha256
Socket inet:8891#localhost
PidFile /var/run/opendkim/opendkim.pid
UMask 022
UserID opendkim:opendkim
TemporaryDirectory /var/tmp
OversignHeaders From
LogWhy Yes
X-Header yes
MilterDebug 9
ResolverTracing Yes
As you can see from the Queue ID 4A29F3F938 vs 6CC243F95E, these are two different mails.
4A29F3F938 is incoming and is verifying OK. 6CC243F95E is outgoing, and I guess opendkim tries to sign the mail. You need to elaborate on your processing of the mail in the lines inbetween :)

Wordpress emails going to spam

I have been having a lot of issues with emails from our servers going to SPAM. I cant find out why, I am not on any blacklist and we have the SPF/DKIM records validated.
Below is a transcripts of our emails...
Received: from host.ilovenz.me (host.ilovenz.me [96.30.1.56])
by relay-6.us-west-2.relay-prod (Postfix) with ESMTPS id 34DBA460BBA
for <20g0dnL7Le4vW8#dkimvalidator.com>; Sun, 26 Feb 2017 03:31:39 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ilovenz.me;
s=default; h=MIME-Version:Content-Transfer-Encoding:Content-Type:Date:
Subject:To:Sender:From:Reply-To:Message-ID:Cc:Content-ID:Content-Description:
Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:
In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:
List-Post:List-Owner:List-Archive;
bh=dKce1b0OIqr1iFXsTI1PsQWwBft9eaJeSIwAbZhxRp0=; b=VOkfOW7ftU5bxGSL0Q9D+2tvB2
nGx9pmAcaRGzrFlwOLg8IrYYmU0h8PWqPTQ/4mD26BJCAEUdAYjXaKYl9ovhGWJMW9qAfK4Hy7JXk
aQDJOw6jBKHM5aRbgm9aIuXrPEe4+AngMao85vH9PKRTBQxegl2nJYX+JApr4MHf1S14uCyEYAcD7
nJwlrZJ32VAxn2gz1rDeevkTSptaSqpgX4EURzZDR/2osv53Np2//F+5qCTFabvwr9qe5RyiKsV5g
56TP/Ym1R4a25QzOg4yLiqr0ZlBh4zTB6lIGpfF7NWRtOPW49c02rEO8raOV3lgfXWWi+kD4NO1fy
Xw8Tljtw==;
Received: from host.ilovenz.me ([96.30.1.56]:48972 helo=localhost)
by host.ilovenz.me with esmtpa (Exim 4.88)
(envelope-from <hello#ilovenz.me>)
id 1chpYg-0000eR-6I
for 20g0dnL7Le4vW8#dkimvalidator.com; Sun, 26 Feb 2017 16:31:38 +1300
X-Mailer: Postman SMTP 1.7.2 for WordPress (https://wordpress.org/plugins/postman-smtp/)
From: ilovenz <hello#ilovenz.me>
Sender: hello#ilovenz.me
To: 20g0dnL7Le4vW8#dkimvalidator.com
Subject: [I Love New Zealand] Activate your account
Date: Sun, 26 Feb 2017 03:31:38 +0000
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
MIME-Version: 1.0
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - host.ilovenz.me
X-AntiAbuse: Original Domain - dkimvalidator.com
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - ilovenz.me
X-Get-Message-Sender-Via: host.ilovenz.me: authenticated_id: hello#ilovenz.me
X-Authenticated-Sender: host.ilovenz.me: hello#ilovenz.me
X-Source:
X-Source-Args:
X-Source-Dir:
Thanks for registering!=0A=0ATo complete the activation of your account,=
go to the following link: https://ilovenz.me/activate/kWwH8aMmTTYQCeii6=
nHDAZ1T3Lxw0QSr/
Probably because you are using an unusual TLD and you have the word 'love' in it. I had a similair problem with a poker site.

When creating an iCal event on behalf of an organizer and email it to him, no "Add to calendar" or "RSVP" wrappers appear

I'm creating the iCal using ical4j and sending it using Java Mail API 1.4.7. When sending it both to google.mail and outlook.com the organizer receives the email textual part only. All other recipients receive the email wrapped with the "Add to calendar" or "RSVP" buttons (for attendees).
If remove the recipient email from the organizer property, then he receives the email with the wrappers, but then the meeting has no organizer...
My problem with this, is that the organizer I created the event on behalf of, does not get the event created on his calendar.
That's the email sent:
Delivered-To: test+JohnDoe1st#woo.io
Received: by 10.202.80.11 with SMTP id e11csp2599297oib;
Wed, 24 Feb 2016 11:28:44 -0800 (PST)
X-Received: by 10.182.165.67 with SMTP id yw3mr33375476obb.45.1456342124175;
Wed, 24 Feb 2016 11:28:44 -0800 (PST)
Return-Path: <bounces+1797494-17b1-test+JohnDoe1st=woo.io#mail.woo.io>
Received: from o1.email.highr.io (o1.email.highr.io. [50.31.35.179])
by mx.google.com with ESMTPS id n205si3660143oib.92.2016.02.24.11.28.43
for <test+JohnDoe1st#woo.io>
(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Wed, 24 Feb 2016 11:28:44 -0800 (PST)
Received-SPF: pass (google.com: domain of bounces+1797494-17b1-test+JohnDoe1st=woo.io#mail.woo.io designates 50.31.35.179 as permitted sender) client-ip=50.31.35.179;
Authentication-Results: mx.google.com;
spf=pass (google.com: domain of bounces+1797494-17b1-test+JohnDoe1st=woo.io#mail.woo.io designates 50.31.35.179 as permitted sender) smtp.mailfrom=bounces+1797494-17b1-test+JohnDoe1st=woo.io#mail.woo.io;
dkim=pass header.i=#woo.io
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=woo.io;
h=from:reply-to:to:subject:mime-version:content-type; s=s1;
bh=wagu2M/f9bJi3poSZhvX4ST1TCs=; b=0coUojPVzsP3yH5mGPTzVsFS5c7h9
pd7uMlc3WLx+2dciB/2w0gG5BoEIYTzdk68c7GLQWj6XhskmS4CWed9y5dQt2CEy
ei3pmJWxoHNMl2hjGW+4nHPSwM5mcbH8BH0YCwXZBAJ1yzc0ymJSwD4+vQzfhOA0
Skj8s1OFPz2EqA=
Received: by filter0422p1mdw1.sendgrid.net with SMTP id filter0422p1mdw1.25440.56CE046718
2016-02-24 19:28:39.292147439 +0000 UTC
Received: from 10.0.0.3 (dynamic-213-57-67-77.hotnet.net.il [213.57.67.77])
by ismtpd0002p1lon1.sendgrid.net (SG) with ESMTP id UWS8Q1EHSTGlRwEBPWD0Jg
for <test+JohnDoe1st#woo.io>; Wed, 24 Feb 2016 19:28:39.206 +0000 (UTC)
Date: Wed, 24 Feb 2016 19:28:52 +0000 (GMT)
From: "(DevEnv) Woo.io" <test+scheduler#woo.io>
Reply-To: "(DevEnv) Woo.io" <test+scheduler#woo.io>
To: test+JohnDoe1st#woo.io
Message-ID: <1211793890.13.1456342132980.JavaMail.User1#JohnK-Laptop>
Subject: A phone call with John Doe has been scheduled
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="----=_Part_12_325908549.1456342132978"
X-SG-EID: eKXc83Aurbu+DQRCT+WAXI9wVN9EN8h4r+iXFZL+oEoeV9DlDScoApg++iQXhvj0VXg9jyy3l1JsyF
PsfdNpdxcM5ze8grHttshgo/s5pOH3DSyhvMx0eioa5nVYxSYH0hO4FSAN+J2/beLbpNQqZNUIe1jo
GAcnhBNsAtYBnw9pDhxr5SW46As/nuflbBvdpkATzhR5NTXgjF0POaXGBJyxRUvOfs1noR0m4IF4D9
0=
X-SG-ID: E59GF+CtKDB+cFOQwHaDXPNahQbunt2rHtUM1rTwltQKUGjmerW2HyowTumyVQQhTgF/leflKriflw
bWodCKpaW63gxumD3qe89wS7l9a+KOifOwoLXTLVFZnXN8+QzO
------=_Part_12_325908549.1456342132978
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit
Hey John,<br/>
<br/>
Your phone call with John Doe for the Software Engineer position is scheduled for Thu, Feb 25, 2016 at 08:00 (GMT+2).<br/>
<br/>
We've let the candidate know that you will call them at this number 97211111112.<br/>
<br/>
Cheers,<br/>
The WOO Team<img src="http://maillink.highr.io/wf/open?upn=GdV8Hrdq-2BQbZs-2Fm93FPKckJV25NkkcUaolDJXkLlnpBg0Xbct0oKET0-2FnwIfl-2BW7eIwP1p0BhqiEyHB7UrRv7GqRg7jOp-2BAbQ2UPQH8bOgR-2FU-2FYLgxBsp0t-2BhtjHYTwIYSWbbiCB-2BX9fFdgJLwjjGviXI7Cv1G-2BojfLNKLqM716xBEEEOZt-2FmF05l9JwEHcX4yP1PTaZsbx8eeU2Su6yBDIr28ZQtbVkglHvfp-2BNkqyRWTvbCj8zIiCwlLgdBc069-2Bo7RRFPqYxrxciYHJknt2ealaYUMX52-2BceFyyau8EPxjnbU508-2FI2pd8breJeYGh7khtRHOJYDT5J0SQ9ztqBSFTeNARQ1CHhBpcP04zgk-3D" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;"/>
------=_Part_12_325908549.1456342132978
Content-Type: text/calendar; charset=us-ascii
Content-Transfer-Encoding: 7bit
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
DTSTAMP:20160224T192852Z
DTSTART:20160225T060000Z
DTEND:20160225T063000Z
SUMMARY:John Doe <> Highr.io - Interview
ORGANIZER;CN=Woo.io:MAILTO:test+scheduler#woo.io
ATTENDEE;CN=John Doe 1st;PARTSTAT=ACCEPTED;RSVP=TRUE:MAILTO:Johnk#hig
hr.io
ATTENDEE;CN=John Doe;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;ROLE=REQ-PARTICI
PANT:MAILTO:Doe#hotmail.com
UID:20160224T192852Z-1#fe80:0:0:0:9c19:bf77:322f:47e5%eth1
END:VEVENT
END:VCALENDAR
------=_Part_12_325908549.1456342132978--
Any idea why it behaves like that and how to solve this?
The iTIP/iMIP protocol does not cover the scenario of "inviting the organizer" via email (see also Change event description for organizer using VCalendar). So it is really up the the IMIP client to choose to offer or not the ability to "import" that event.
Now it is a common practice to include the ORGANIZER also as an ATTENDEE (typically with a PARTSTAT=ACCEPTED) but I suspect that in your case, it wont be enough.
It seems like what you consider the organizer is more of an ATTENDEE with a ROLE=CHAIR and the ORGANIZER is whatever application did put of the meeting together.
Of course, this means that now, REPLYs will go to your 'special/application' organizer and not to the chair of the meeting, which means that you will have to deal with handling those replies, and resend updated versions of your meeting to the various attendees.

Automated emails from Woocommerce marked as spam. Wrong Return path

All the automated emails sent from woocommerce from my website are marked as spam. Here is the header:
Delivered-To: fontanavideostudios#gmail.com
Received: by 10.64.118.34 with SMTP id kj2csp1351282ieb;
Thu, 2 Apr 2015 05:19:26 -0700 (PDT)
X-Received: by 10.194.176.4 with SMTP id ce4mr94751409wjc.75.1427977166190;
Thu, 02 Apr 2015 05:19:26 -0700 (PDT)
Return-Path: <racebook>
Received: from ns362512.ip-91-121-174.eu ([2001:41d0:1:ef28::1])
by mx.google.com with ESMTP id e5si8490541wjw.70.2015.04.02.05.19.25
for <fontanavideostudios#gmail.com>;
Thu, 02 Apr 2015 05:19:26 -0700 (PDT)
Received-SPF: temperror (google.com: error in processing during lookup of racebook: DNS timeout) client-ip=2001:41d0:1:ef28::1;
Authentication-Results: mx.google.com;
spf=temperror (google.com: error in processing during lookup of racebook: DNS timeout) smtp.mail=racebook;
dkim=temperror (no key for signature) header.i=#
Received: by ns362512.ip-91-121-174.eu (Postfix, from userid 504)
id EA9BA1608B; Thu, 2 Apr 2015 14:16:42 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=racebooking.net;
s=default; t=1427977002;
bh=8Bpk5qKGS/snauZWTEWdgTP8RA8IIyUciiaTtpnN268=;
h=To:Subject:Date:From;
b=uPVvgt52HbS6VIzCMagUSpBDCvF787qIleF13Yw/7E95kuXdVJSdCo5IjbUTmGuBm
TUSe7jiDf4RfGzq2BQJUnFd91RljAVJHxWscY9U/ZFqGU65MjeIIfN7jLa+/k6Aj0/
m2bULvyRjwdU1EInjtl9y3SC593kACANJPR+u8/Y=
To: fontanavideostudios#gmail.com
Subject: Puoi scaricare i files accedendo a questa pagina: https://www.racebooking.net/foto-franciacorta/mio-account/
X-PHP-Originating-Script: 504:class-phpmailer.php
Date: Thu, 2 Apr 2015 12:16:42 +0000
From: Foto Franciacorta <noreply#racebooking.net>
Message-ID: <ddc1208f249c3ad34b96dad0437c49d8#www.racebooking.net>
X-Priority: 3
X-Mailer: PHPMailer 5.2.7 (https://github.com/PHPMailer/PHPMailer/)
MIME-Version: 1.0
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit
The cause is probably that the Return-Path is wrong. Instead of noreply#racebooking.net (correct) it is racebook, (incorrect). How can i fix it? I couldn't find any setting into Woocommerce options to fix the Return Path.
I fixed that by using this plugin which simply copies the "from" email into the Return Path

iCal not parsed in gmail in one of two accounts

I'm trying to generate an email containing an iCal event from my application, I'm testing the email in two google accounts: one from gmail and one from google apps.
When I'm getting the event in gmail ([email1]#gmail.com) the event is rendered like this with no problem:
But when I get it in my google apps account ([email2]#[domain].com) it's not rendered, I don't know if it is being interpreted but it just dont show me the event, it only shows a simple email with an attachment (invite.ics)
This is the email message that is being generated:
Delivered-To: [email2]#[domain].com Received: by 10.205.80.15 with
SMTP id zs15csp100752bkb;
Thu, 7 Mar 2013 17:12:25 -0800 (PST) X-Received: by 10.236.126.202 with SMTP id b50mr351212yhi.25.1362705145168;
Thu, 07 Mar 2013 17:12:25 -0800 (PST) Return-Path: Received: from mail-gh0-f181.google.com
(mail-gh0-f181.google.com [209.85.160.181])
by mx.google.com with ESMTPS id f43si3539773yhk.290.2013.03.07.17.12.24
(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
Thu, 07 Mar 2013 17:12:25 -0800 (PST) Received-SPF: neutral (google.com: 209.85.160.181 is neither permitted nor denied by best
guess record for domain of app#[domain].com)
client-ip=209.85.160.181; Authentication-Results: mx.google.com;
spf=neutral (google.com: 209.85.160.181 is neither permitted nor denied by best guess record for domain of app#[domain].com)
smtp.mail=app#[domain].com Received: by mail-gh0-f181.google.com
with SMTP id y8so186664ghb.26
for <[email2]#[domain].com>; Thu, 07 Mar 2013 17:12:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=google.com; s=20120113;
h=x-received:message-id:mime-version:from:to:date:subject
:content-type:x-gm-message-state;
bh=WkTwznIOK5D42bFC8nOzJjgv3+K9EWlBJWKv1ejbN9w=;
b=n8BuYosOIOzxX28UkvX71UjVR9gFK00+9vixzoImOEvRKSvCimOPf1nvcpZR3AMShv
rl/0ahNmVoDJ0ypjTiqA/fRZazf2M65SWJih/MGJuYmhzpyTpf371Z8NI65sAAGMvB0w
KIaKl3kybyuS1TxysalZ/ZssN1vf2BT9T5Y5vVR+uAzBeAmtxZap733ZEn+Z+UvHQmOL
twu64kvR/6TSWLFZgrtkGdKC8Gcet4CGeXQd/qKg0ZjpFPNXmuDXeqIz6Ftouuu7fFhd
ms30c9l6zaexmpbFCCiZdtuwIfMKFjPuMnqtT6KcucDWmTTgu8LbBqNqdV5icFkrrCM2
LnTQ== X-Received: by 10.236.138.162 with SMTP id a22mr309438yhj.80.1362705144570;
Thu, 07 Mar 2013 17:12:24 -0800 (PST) Return-Path: Received: from escobar5-pc ([181.133.180.140])
by mx.google.com with ESMTPS id w2sm5267588yhh.7.2013.03.07.17.12.22
(version=TLSv1 cipher=RC4-SHA bits=128/128);
Thu, 07 Mar 2013 17:12:23 -0800 (PST) Message-ID: <51393af7.027cec0a.0f2d.ffffa713#mx.google.com> MIME-Version: 1.0
From: "app" To: "user"
<[email2]#[domain].com>, [email1]#gmail.com Date: Thu, 07 Mar
2013 17:12:23 -0800 (PST) Subject: Invitation: Test 9 Content-Type:
multipart/alternative;
boundary=--boundary_0_9e5fb21c-1a19-477c-a576-04176397fb67
X-Gm-Message-State:
ALoCoQmdferSoIzk/zUGmI9SEnioj6H76AOGmK/HVLGAaL29QjhGXVj8Z9VuAewe0N38zdOEVvTH
----boundary_0_9e5fb21c-1a19-477c-a576-04176397fb67 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64
TWVldGluZzogVGVzdCA5DQpPcmdhbml6ZXI6IGpzZXNjb2JhckBiaW9hbnl3aGVyZS5j
b20NClN0YXJ0IHRpbWU6IFRodXJzZGF5LCBBcHJpbCA0LCAyMDEzIDE6MDA6MDAgQU0N
CkVuZCB0aW1lOiBUaHVyc2RheSwgQXByaWwgNCwgMjAxMyAyOjAwOjAwIEFNDQoNCkF0
dGVuZGVlczogDQoJLWpzZXNjb2JhckBiaW9hbnl3aGVyZS5jb20NCgktanNlc2NvYmFy
NUBnbWFpbC5jb20NCg0KRGVzY3JpcHRpb246IHNkZmRzZmRzZnMNCkxvY2F0aW9uOiBC
aW9tZWV0aW5ncw0K
----boundary_0_9e5fb21c-1a19-477c-a576-04176397fb67 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: base64
PCFET0NUWVBFIGh0bWwgUFVCTElDICItLy9XM0MvL0RURCBYSFRNTCAxLjAgU3RyaWN0
Ly9FTiIgImh0dHA6Ly93d3cudzMub3JnL1RSL3hodG1sMS9EVEQveGh0bWwxLXN0cmlj
dC5kdGQiPg0KPGh0bWwgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGh0bWwi
Pg0KPGhlYWQ+DQo8bWV0YSBodHRwLWVxdWl2PSJDb250ZW50LVR5cGUiIGNvbnRlbnQ9
InRleHQvaHRtbDsgY2hhcnNldD11dGYtOCIgLz4NCjx0aXRsZT5JbnZpdGF0aW9uOiBU
ZXN0IDk8L3RpdGxlPg0KPC9oZWFkPg0KPGJvZHk+DQo8cD48c3Ryb25nPk1lZXRpbmc6
PC9zdHJvbmc+IFRlc3QgOTwvcD4NCjxwPjxzdHJvbmc+T3JnYW5pemVyOjwvc3Ryb25n
PiBqc2VzY29iYXJAYmlvYW55d2hlcmUuY29tPC9wPg0KPHA+PHN0cm9uZz5TdGFydCB0
aW1lOjwvc3Ryb25nPiBUaHVyc2RheSwgQXByaWwgNCwgMjAxMyAxOjAwOjAwIEFNPC9w
Pg0KPHA+PHN0cm9uZz5FbmQgdGltZTo8L3N0cm9uZz4gVGh1cnNkYXksIEFwcmlsIDQs
IDIwMTMgMjowMDowMCBBTTwvcD4NCjxici8+DQo8cD48c3Ryb25nPkF0dGVuZGVlczo8
L3N0cm9uZz4gPC9wPjx1bD4NCjxsaT5qc2VzY29iYXJAYmlvYW55d2hlcmUuY29tPC9s
aT4NCjxsaT5qc2VzY29iYXI1QGdtYWlsLmNvbTwvbGk+DQo8L3VsPjxici8+DQo8cD48
c3Ryb25nPkRlc2NyaXB0aW9uOjwvc3Ryb25nPiBzZGZkc2Zkc2ZzPC9wPg0KPHA+PHN0
cm9uZz5Mb2NhdGlvbjo8L3N0cm9uZz4gQmlvbWVldGluZ3M8L3A+DQo8L2JvZHk+DQo8
L2h0bWw+DQo=
----boundary_0_9e5fb21c-1a19-477c-a576-04176397fb67 Content-Type: text/calendar; method=REQUEST; charset=UTF-8
Content-Transfer-Encoding: 7bit
BEGIN:VCALENDAR PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0 CALSCALE:GREGORIAN METHOD:REQUEST BEGIN:VEVENT
DTSTART:20130404T010000Z DTEND:20130404T020000Z
DTSTAMP:20130308T011216Z ORGANIZER;mailto:[Email2]#[domain].com
UID:event_36#[domain].com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;X-NUM-GUESTS=0:mailto:[email2]#[domain].com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;X-NUM-GUESTS=0:mailto:[email1]#gmail.com
CREATED:20130308T011154Z DESCRIPTION:sdfdsfdsfs
LAST-MODIFIED:20130308T011154Z LOCATION:Somewhere SEQUENCE:0
STATUS:CONFIRMED SUMMARY:Test 9 TRANSP:OPAQUE END:VEVENT END:VCALENDAR
----boundary_0_9e5fb21c-1a19-477c-a576-04176397fb67--
Well, do you get any invitation to display correctly in this second account (e.g. an invitation from the first account or from MSFT Outlook) ?
The above message looks just fine but may want to try the following MIME structure.
content-type:multipart/mixed
content-type:multipart/alternative
essentially the 3 mime parts that you already have above
content-type:text/calendar
Content-Disposition: attachment; filename="invite.ics"
the ics invitation (again)
I changed METHOD:REQUEST for METHOD:PUBLISH in the ical text and now it shows me the event in both accounts, it doesn't get automatically added to google calendar but at least it's showing in gmail message

Resources