tine20 / tine20

Tine 2.0 main repository
GNU Affero General Public License v3.0
156 stars 60 forks source link

0011032: SMTP error : no config found #5460

Open Gloirin opened 6 years ago

Gloirin commented 6 years ago

Reported by Gurney on 12 May 2015 05:15

Version: Koriander (2014.09.10)

Hello,

Since I upgraded my Ubuntu server to Velvet from Utopic and my Tine packages from Trusty to Utopic, I cannot send emails anymore.

At first, I had TLS connection issues, though my setup didn't change, so I decided to disable and re-install the Felamimail app.

At first I did not get an account, but after re-enabling "use system account" in the IMAP config my mail account reappeared.

Now, I'm left with this error:

2015-05-12T05:07:31+00:00 WARN (4): Felamimail_Controller_Message_Send::_sendMailViaTransport::260 Could not send message, no smtp config found.

And when I look in the properties of my account, the STMP config is indeed blank and greyed out, though it's filled in the SMTP section of the setup.

I could force it through phpmyadmin but I'm wondering why there's nothing here? Shouldn't it use the setup SMTP config by default?

Gloirin commented 6 years ago

Comment posted by pschuele on 12 May 2015 10:57

hi Gurney,

we made some changes to the system account configuration and this might be related.

I'll have a look at the problem.

Gloirin commented 6 years ago

Comment posted by Gurney on 24 May 2015 08:50

Hello,

Any news?

Gloirin commented 6 years ago

Comment posted by pschuele on 25 May 2015 19:05

hi,

I just checked this and could not reproduce this error.

do you have a smtp hostname defined?

could you show me your smtp config? maybe you could add a line after the log statement (Felamimail_Controller_Message_Send::_sendMailViaTransport::260):

Tinebase_Core::getLogger()->warn(print_r($smtpConfig, true));

Gloirin commented 6 years ago

Comment posted by Gurney on 25 May 2015 19:56

Yes, I do have a a SMTP hostname defined (in the setup.php config) but when I look at the account properties (edit account -> SMTP tab) the fields are blank, and greyed out (cannot edit anything).

Is this intended ?

I'll try the logger.

Gloirin commented 6 years ago

Comment posted by Gurney on 26 May 2015 04:43

I added the SMTP config through mysql, in the felamimail.account table, and now it works.

Somehow there's a disconnection between the SMTP config in the setup and the SMTP config in the account.

Maybe the "use system account" switch is not working properly?

Gloirin commented 6 years ago

Comment posted by pschuele on 28 May 2015 07:09

hm, yup, this is strange. maybe you had empty settings at one point and after adding the hostname and other settings in the setup it was not updated correctly?

it would be good to know how to reproduce the error.

Gloirin commented 6 years ago

Comment posted by Gurney on 28 May 2015 07:17

I try to describe what I did: