I'm trying to download pop3 mail via multipop from microsoft but at the request
https://imap.xxxx.com/WorldClient.dll?View=OAuth&AuthRequest=Office365
mdaemon reply with "404 Not Found" page, also tried directly from the browser with the same result.
Certificates are ok.
If I browse to https://imap.xxxx.com/ webmail works fine!
Does someone have any idea about this?
Thanks,
Claudio.
Hello,
Opening that URL directly will always give a 404. It’s the OAuth redirect URI, and it only works when Microsoft sends you back to it after you sign in, carrying cookies set when you started the setup in webmail.
If you also get the 404 during the actual sign-in, the cookies didn’t come back. That usually happens when the setup was started on a different address than the redirect URI. Please check:
- The webmail URL (
WebAddress in \MDaemon\WorldClient\Domains.ini) is exactly the address your users sign in with (https://imap.xxxx.com, same port).
- You start the MultiPOP OAuth setup from webmail opened at that same address, in a normal (non-private) browser window.
- The redirect URI in your Azure app registration matches exactly.
If it still fails, please send the OAuth - lines from that day’s Webmail log (\MDaemon\Logs\Webmail-<date>.log).
Thanks for your reply,
yes, the error occur during the actual sign-in, but I can't find "WebAddress" in domains.ini.
I found "WorldClientAPI:AllowTheseExternalOrigins=https://webmail.xxx.yy" in domains.ini but I didn't changed it.
Anyway, i was using webmail.xxx.yy instead of imap.xxx.yy to view webmail and sign in to microsft, change to imap.xxx.yy and worked, thank you very much.
Claudio.