KrissN / akonadi-ews

Akonadi resource agent for Microsoft Exchange using Exchange Web Services (EWS) protocol
96 stars 10 forks source link

Unable to send mail, configure ewsmtaresource on 17.04 #35

Open tkuther opened 7 years ago

tkuther commented 7 years ago

Hi,

sorry if this is the wrong place to ask, but I'm having a hard time getting mail delivery to work. How do I configure Kmail to use the ewsmtaresource, or what else has to be done to make it work?

Things I tried:

I'm using Kmail 17.04 with latest akonadi-ews git

KrissN commented 7 years ago

Adding the MTA/outgoing mail resource should be done through the KMail configuration dialogs in the Accounts section. Normally KMail will only offer SMTP as the account option, but if it detects another resource that has the MTA capability it should also list it and allow creation of an account.

I have checked this on my KMail 17.04 and surprisingly I can confirm that there are no options besides SMTP. My existing account works (I've added it before upgrading to 17.04). Something must have changed in that version - I'll investigate.

tkuther commented 7 years ago

Thank you for reproducing.

This seems related: https://github.com/KDE/kmailtransport/commit/b7885d40968a01a285dfe895949e0a8427b12fa3

KrissN commented 7 years ago

This looks bad - if there is no alternative then MTA support is essentially broken since 17.04.

EDIT: There seems to be an alternative. I'll have to provide a patch to adopt to the new API.

KrissN commented 7 years ago

I got a response from Laurent Montel from the KDE PIM team and it looks like he removed support for mail transport over Akonadi resources being unaware that it is actually used.

He has promised to bring back the removed functionality, but it is unclear when that will happen and whether it will also require changes on the EWS resource side.

I'll be monitoring the issue.

StefanBruens commented 7 years ago

Is there some upstream (i.e. bugs.kde.org) bug entry where this is discussed?

AugisM commented 7 years ago

It seems that problem is with account type Akonadi. There is workarroud to configure manually until be fixed:

  1. Add ews account.
  2. Goto akonadiconsole and add ewsmta agent.
  3. Goto kmail and configure smtp outgoing account.
  4. Edit ~/.config/mailtransports and do changes for this smtp account (don't change id number): [Transport 44444] host=akonadi_ewsmta_resource_0 id=4444 name=POST type=Akonadi
  5. Logout/login.
Eig8phei commented 7 years ago

@AugisM great stuff. I confirm it works and successfully sends emails.

KrissN commented 7 years ago

I have tried the latest KDE Applications from Git and I can see that Laurent fixed the issue and I can now add the EWS MTA resource as before. I haven't tested sending e-mail yet (some issues with the VM).

boospy commented 7 years ago

When can we count on a debpackage?

KrissN commented 7 years ago

The change is on KDE side so you'll have to wait for KDE Applications 17.08.

Extravert-ir commented 7 years ago

Still have this issue with KDE Applications 17.08 screenshot_20170829_135551

senarclens commented 6 years ago

Same here :( Upgraded to KDE PIM 17.08, pulled newest version of akonadi EWS, compiled and installed it. Re-started akonadi. Created EWS account. Tried to add EWS account for sending but only sendmail and smtp are available.

senarclens commented 6 years ago

@KrissN - any news on this? Thx

KrissN commented 6 years ago

Unfortunately I cannot reproduce this on any of my machines (either running 17.08 or latest master).

Extravert-ir commented 6 years ago

Workaround described on bugs.kde.org:

https://bugs.kde.org/show_bug.cgi?id=388035

Elkropac commented 6 years ago

Thanks, works also on Debian Sid.

I have suggested adding package kmailtransport-akonadi as recommended package to kdepim-runtime package