Author Topic: domain appended to 553 errors  (Read 5856 times)

Offline boxyball

  • Full Member
  • ***
  • Posts: 92
domain appended to 553 errors
« on: February 15, 2017, 05:31:59 PM »
When a user misspells an email address, it bounces back with the local domain appended to the email address.
It only does this from roundcube, not from a mail client like Thunderbird.
For example, if I send to blah@blahblahblah.com ... the 553 rejection comes back as blah@blahblahblah.com.mydomain.com
How can I fix so that it only shows the original address without the append?

Thanks in advance.
« Last Edit: February 15, 2017, 11:48:28 PM by boxyball »

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,850
Re: domain appended to 553 errors
« Reply #1 on: February 16, 2017, 03:10:34 AM »
i dont think thats normal. is your roundcube configured to send messages via smtp or php? also check the address set in your identity.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline boxyball

  • Full Member
  • ***
  • Posts: 92
Re: domain appended to 553 errors
« Reply #2 on: February 16, 2017, 06:06:07 PM »
My identity is name <names@mydomain.com>

Where would I check to see if I am using smtp or php to send?

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,850
Re: domain appended to 553 errors
« Reply #3 on: February 17, 2017, 02:24:21 AM »
that is defined in your roundcube config
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline boxyball

  • Full Member
  • ***
  • Posts: 92
Re: domain appended to 553 errors
« Reply #4 on: February 17, 2017, 10:45:55 AM »
I figured that.  It was the first place I looked but I could not find a setting that fits what you describe.
Would you happen to know the name of the setting?

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,850
Re: domain appended to 553 errors
« Reply #5 on: February 17, 2017, 12:46:15 PM »
the config option is smtp_server but I was just rereading your original post and I might have been pointing you in the wrong direction.

is it your address (as in the sender) that gets altered or the recipients address? if its the recipients address then I could be your smtp server that's changing it rather than roundcube.

if you are using an smtp server to send messages from roundcube, rather than php mail() then you can enable smtp_debug in your roundcube config and it will log the conversation between roundcube and your server when the message is sent. then you can check that log to see if the addresses are correct there. if they are, then you know its being changed later by the smtp server.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline boxyball

  • Full Member
  • ***
  • Posts: 92
Re: domain appended to 553 errors
« Reply #6 on: February 18, 2017, 01:08:48 AM »
It is the recipient address that is being altered.
I am not using a separate smtp server to send.
My setting looks like this in defaults.inc.php:
$config['smtp_server'] = '';

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,850
Re: domain appended to 553 errors
« Reply #7 on: February 18, 2017, 03:49:09 AM »
and its not set in config.inc.php?

if smtp_server is left blank then PHP mail() is used. I suggest that you change your config to use an smtp server instead and see if the problem persists.

Also support for PHP mail() is being dropped in Roundcube 1.3.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline boxyball

  • Full Member
  • ***
  • Posts: 92
Re: domain appended to 553 errors
« Reply #8 on: February 18, 2017, 09:35:27 PM »
roundcube is running on the mail server, so which do you recommend?
$config['smtp_server'] = 'localhost';
or
$config['smtp_server'] = 'smtp.domain.com';

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,850
Re: domain appended to 553 errors
« Reply #9 on: February 19, 2017, 02:57:32 AM »
personally i'd use localhost
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline boxyball

  • Full Member
  • ***
  • Posts: 92
Re: domain appended to 553 errors
« Reply #10 on: February 20, 2017, 12:40:38 PM »
I changed my config to ...
$config['smtp_server'] = 'localhost';
... and restarted apache and the problem remains.

I sent to blah@blahblah.blah and got the following error:

Reporting-MTA: dns; mydomain.com
Received-From-MTA: DNS; localhost
Arrival-Date: Mon, 20 Feb 2017 11:38:14 -0600

Final-Recipient: RFC822; blah@blahblah.blah.mydomain.com
Action: failed
Status: 5.3.5
Diagnostic-Code: SMTP; 553 5.3.5 system config error
Last-Attempt-Date: Mon, 20 Feb 2017 11:38:15 -0600

This error does not occur if a bad email address is used in a client like Thunderbird ... it only happens with roundcube.
You can test by sending to an invalid domain.
« Last Edit: February 20, 2017, 01:46:53 PM by boxyball »

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,850
Re: domain appended to 553 errors
« Reply #11 on: February 20, 2017, 03:21:57 PM »
it seems more like an smtp server issue to me than roundcube - unless you are running some roundcube plugin that's changing the recipient address.

like I suggested before if you enable smtp_debug in your roundcube config then a log of the conversation with the smtp server will be written in the roundcube logs folder and there you will see for sure if it was roundcube sending getting it wrong and if its not then it must be the smtp server.

you I understand that the same thing does not happen from thunderbird but I think that still does not rule the smtp server completely as it might handle messages that are sent locally and remotely differently.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline boxyball

  • Full Member
  • ***
  • Posts: 92
Re: domain appended to 553 errors
« Reply #12 on: February 20, 2017, 05:38:06 PM »
I turned on logging.
Below are the contents.
Everything looks pretty normal.

[20-Feb-2017 16:34:38 -0600]: <viu6c26n> Recv: 220 mydomain.com ESMTP Sendmail 8.15.2/8.15.2; Mon, 20 Feb 2017 16:34:38 -0600
[20-Feb-2017 16:34:38 -0600]: <viu6c26n> Send: EHLO mydomain.com
[20-Feb-2017 16:34:38 -0600]: <viu6c26n> Recv: 250-mydomain.com Hello localhost [127.0.0.1], pleased to meet you
[20-Feb-2017 16:34:38 -0600]: <viu6c26n> Recv: 250-ENHANCEDSTATUSCODES
[20-Feb-2017 16:34:38 -0600]: <viu6c26n> Recv: 250-PIPELINING
[20-Feb-2017 16:34:38 -0600]: <viu6c26n> Recv: 250-8BITMIME
[20-Feb-2017 16:34:38 -0600]: <viu6c26n> Recv: 250-SIZE
[20-Feb-2017 16:34:38 -0600]: <viu6c26n> Recv: 250-AUTH GSSAPI
[20-Feb-2017 16:34:38 -0600]: <viu6c26n> Recv: 250-STARTTLS
[20-Feb-2017 16:34:38 -0600]: <viu6c26n> Recv: 250-DELIVERBY
[20-Feb-2017 16:34:38 -0600]: <viu6c26n> Recv: 250 HELP
[20-Feb-2017 16:34:38 -0600]: <viu6c26n> Send: MAIL FROM:<myaddress@mydomain.com>
[20-Feb-2017 16:34:38 -0600]: <viu6c26n> Recv: 250 2.1.0 <myaddress@mydomain.com>... Sender ok
[20-Feb-2017 16:34:38 -0600]: <viu6c26n> Send: RCPT TO:<blah@blahblah.blah>
[20-Feb-2017 16:34:38 -0600]: <viu6c26n> Recv: 250 2.1.5 <blah@blahblah.blah>... Recipient ok
[20-Feb-2017 16:34:38 -0600]: <viu6c26n> Send: DATA
[20-Feb-2017 16:34:38 -0600]: <viu6c26n> Recv: 354 Enter mail, end with "." on a line by itself
[20-Feb-2017 16:34:38 -0600]: <viu6c26n> Send: MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII;
 format=flowed
Content-Transfer-Encoding: 7bit
Date: Mon, 20 Feb 2017 16:34:38 -0600
From: myaddress <myaddress@mydomain.com>
To: Blah <blah@blahblah.blah>
Subject: test
Message-ID: <52ce981621113b0c4cfd765f3b78eef0@mydomain.com>
X-Sender: myaddress@mydomain.com
User-Agent: Roundcube Webmail/1.1.4

test

[20-Feb-2017 16:34:38 -0600]: <viu6c26n> Send: .
[20-Feb-2017 16:34:38 -0600]: <viu6c26n> Recv: 250 2.0.0 v1KMYcT2000981 Message accepted for delivery
[20-Feb-2017 16:34:39 -0600]: <viu6c26n> Send: QUIT
[20-Feb-2017 16:34:39 -0600]: <viu6c26n> Recv: 221 2.0.0 mydomain.com closing connection

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,850
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline boxyball

  • Full Member
  • ***
  • Posts: 92
Re: domain appended to 553 errors
« Reply #14 on: February 21, 2017, 11:01:35 AM »
That solved the problem!  Thanks!

I removed the wildcard from my DNS record and that solved the problem.

Sorry to bother you about this one.  Since the problem only affected roundcube and not clients, I thought it was a roundcube configuration issue.