Baikal icon indicating copy to clipboard operation
Baikal copied to clipboard

Invitation emails get stuck in spam filters

Open decisionware opened this issue 4 years ago • 13 comments

Baikal version: 0.8.0

Expected behaviour: That invitation emails are sent to the recipient without problems

Current behaviour: For some ISP, the invitation email get stuck in the spam filter. The trigger for this seems to be that the date field is missing from the email header. See snipet from an email below.

BAD HEADER SECTION, Missing required header field: "Date"

decisionware avatar Feb 09 '21 08:02 decisionware

Hi can I ask what calendar app you are using? I have been trying to send invites from Apple Calendar, Catalina and they never appear to be sent. Well they never arrive. I ended up adding PHPMailer into Baikal which successfuly sent the email invites, but subsequently the invite status never updated the Baikal Sever.

Side note, do invitations need to be sent over https? as i'm woking locally at the moment

Thanks in advance

10029759 avatar Feb 18 '21 18:02 10029759

I'm using the iOS email app on my mobile devices and the emclient on my windows machines. Earlier this has not worked at all, but after upgrading BaiKal to 8.0.0 it started to work in iOS and for some accounts on my emclient. investigating that, it seems like differently formatted CalDav links generates unpredictable result on that client (the invitation email is delivered but not always with the .ics attachment). Inviting others using the iOS-app seems to work including the .ics attachment.

decisionware avatar Feb 19 '21 08:02 decisionware

Are you running Baikal on a active webserver or locahost?

I'm running this locally and was not getting any email sent by the baikal server at all. I think your right that there is some inconsistancy about if the .ics gets sent as an attchemnet. Secondaly, a header needs to be set to tel the email client that it is a calendar or multipart to enable the client to display the invite options, Yes, Maybe or Decline invite.

10029759 avatar Feb 19 '21 09:02 10029759

I'm running BaiKal on a hosted domain at "One". Yes, I think your are right that BaiKal would benefit from some "hardening" regarding how emails are formatted. I think the missing "calendar or multipart" setting could be the root cause why my ISP marked these emails as spam. A valuable improvement of the BalKal documentation would be a more comprehensive guide on how to set up the weblink for various clients as I found the information I needed from other sources. Anyway, I am extremely happy with BaiKal and hope that theses minor issues will be corrected in the future.

decisionware avatar Feb 19 '21 11:02 decisionware

Mail is send none Auth too, many spam filter block that.

Tntdruid avatar Feb 19 '21 13:02 Tntdruid

Side note, do invitations need to be sent over https?

For the email notifications, it is not relevant how the clients access Baikal

I'm running this locally and was not getting any email sent by the baikal server at all.

Many email servers don't accept mails sent out by a host without a proper SPF setup (you need a domain for that). Sending out emails directly from a local host will probably not work. Things like PHPMailer could work.

BAD HEADER SECTION, Missing required header field: "Date"

That header is usually added automatically. Does your hosting provider manage the DNS records of your domain for you?

ByteHamster avatar Feb 19 '21 15:02 ByteHamster

BAD HEADER SECTION, Missing required header field: "Date"

This was the output from the spam filter at the receiving host. Strangely enough, it looks like the header contains a date field. On the hosted server where I run BaiKal, the hosting provider allow me to set DNS records. So far, it has worked well with the default settings.

decisionware avatar Feb 19 '21 15:02 decisionware

default settings

Okay, I guess they then already do SPF for you. I don't know what else could cause this.

ByteHamster avatar Feb 19 '21 16:02 ByteHamster

@ByteHamster

Please help!

I have completed this process about 4 times now. Download the 0.8.0 zip, FTP'ed the files to the server, given the config & Specific folders www-data:www-data access.

After setting up the cal server with the correcty admin and users, I can then subscribe to the calendar on my iphone and mac calendar app. But when trying to add attendees to the event an email invite is never sent.

I have configure the cal server to use the email address that has an spf for that domain as suggested. I am I missing something. From what i have read it is the server that should handle the email invites not the cleint, it that correct?

Side note: when sending files to the server the html res folder never gets sent

10029759 avatar Feb 20 '21 20:02 10029759

The emails are sent by the server, yes. I am not using the invite feature myself, so I don't know what to do.

ByteHamster avatar Feb 20 '21 21:02 ByteHamster

@ByteHamster

Thanks for getting back to me. I'm building an app that really needs this feature. Any advice or other recommendations would be great.

Thanks for the support

10029759 avatar Feb 20 '21 21:02 10029759

@ByteHamster , have you tested the invite feature in recent versions of Baikal?

JacobJones1980 avatar Apr 28 '22 14:04 JacobJones1980

No, I had to shelve this project as this was a key feature of the App i was building. What I really want to do is hook up the App to something like Mailgun and have them send the emails and have Baikal handle the Ical events. Is this something that Baikal can handle now?

10029759 avatar Apr 28 '22 14:04 10029759

Invitations via SMTP servers are already tracked in #937

ByteHamster avatar May 18 '23 09:05 ByteHamster