Author Topic: SMTP: 535 Incorrect authentication data  (Read 4420 times)

Offline doahh2

  • Newbie
  • *
  • Posts: 2
SMTP: 535 Incorrect authentication data
« on: October 19, 2013, 01:16:09 PM »
I have just installed roundcube and I am getting the error:

Code: [Select]
535 Incorrect authentication data

when I try to send an email. Using Telnet I have:

Code: [Select]
ehlo mydomain.com
250-mydomain.com Hello mydomain.com [xx.xxx.xx.xxx]
250-SIZE 52428800
250-8BITMIME
250-PIPELINING
250-AUTH CRAM-MD5
250-STARTTLS
250 HELP


and my main.inc.php contains:

Code: [Select]
$rcmail_config['smtp_port'] = 465;
$rcmail_config['smtp_user'] = '%u';
$rcmail_config['smtp_pass'] = '%p';
$rcmail_config['smtp_auth_type'] = '';
$rcmail_config['smtp_auth_pw'] = null;
$rcmail_config['smtp_helo_host'] = '';
$rcmail_config['smtp_timeout'] = 0;

I have no problem connecting with Outlook 2007 when using 'my outgoing server (SMTP) requires authentication' and 'Use same settings as my incoming mail server' are selected in:

Acount settings > Outgoing server.

I am using Exim4 on Debian, and Squirrel Mail works perfectly.

Does anyone have any suggestions please?
« Last Edit: October 19, 2013, 01:33:49 PM by doahh2 »

Offline doahh2

  • Newbie
  • *
  • Posts: 2
Re: SMTP: 535 Incorrect authentication data
« Reply #1 on: October 19, 2013, 01:41:53 PM »
I removed the %u and %p from the SMTP parameters and I can now send to a local server account. However when using a non-local domain such as me@gmail.com I get:

Code: [Select]
rejected RCPT <me@gmail.com>: relay not permitted

This would seem to be an authentication problem which lands me back at square one!

HastyMail is also having no problems in connecting and sending emails to either local domains (me@mydomain.com) or remote domains (me@gmail.com).
« Last Edit: October 20, 2013, 06:40:42 AM by doahh2 »