Author Topic: Roundcube with SendMail API authentication  (Read 4475 times)

Offline aconti

  • Newbie
  • *
  • Posts: 6
Roundcube with SendMail API authentication
« on: February 22, 2021, 02:54:15 PM »
Hi,

Currently RoundCube is using SMTP user/pass authentication but failing to send emails with "SMTP Error (535): Authentication failed."

This is likely because SendGrid has only started to accept connections via API Keys

Does RoundCube support this authentication via API and how do I apply this?

Path: /var/www/html/roundcubemail_backup/roundcubemail/config/config.inc.php

$config['smtp_user'] = " "
$config['smtp_pass'] = " "




Thanks

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,845
Re: Roundcube with SendMail API authentication
« Reply #1 on: February 22, 2021, 04:10:24 PM »
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and moreā€¦

Offline aconti

  • Newbie
  • *
  • Posts: 6
Re: Roundcube with SendMail API authentication
« Reply #2 on: February 22, 2021, 05:07:41 PM »
yes thanks, postfix works fine with SendGrid API key, issue is only with roundcubemail Web interface so suspect that config.inc.php (still using user/pass) needs to be updated to start using the API

I tried but still got the same 535 Error, so was wondering if there is any Roundcube documentation so I make sure API are entered correctly?

Respective communication from SendGrid below:

Secure Your SendGrid Account With API Keys and Two-Factor Authentication (2FA) Twilio SendGrid will soon begin enforcing API Key authentication for all API requests and SMTP configuration, as well as requiring Two-Factor Authentication upon login. We have begun reaching out to customers to upgrade to API Keys where applicable, and to enable 2FA on their SendGrid accounts using SMS or Authy.
« Last Edit: February 22, 2021, 05:32:05 PM by aconti »

Offline aconti

  • Newbie
  • *
  • Posts: 6
Re: Roundcube with SendMail API authentication
« Reply #3 on: March 26, 2021, 02:38:55 AM »
ok issue was that I was working/changing within a backup path (hence not used).

I applied the same changes to /var/www/html/roundcubemail/config/config.inc.php and it worked