Mautic Community Forums

SMTP connection failed.


I tried to use mandrilapp and gmail and every time after Save&close Or Apply the system loses the password and dont work anymore.
by steps:
I complete all smtp configuration and test it. Success!! even I receive the email: "Hi! This is a test email. Testing...testing...1...2...3!"
I click Save & close
I reload and test it again with this result:
Expected response code 250 but got code "535", with message "535-5.7.8 Username and Password not accepted. Learn more at 535 5.7.8

I tried to use mandrilapp and gmail and every time after Save&close Or Apply the system loses the password and dont work anymore.
by steps:
I complete all smtp configuration and test it. Success!! even I receive the email: “Hi! This is a test email. Testing…testing…1…2…3!”
I click Save & close
I reload and test it again with this result:
Expected response code 250 but got code “535”, with message "535-5.7.8 Username and Password not accepted. Learn more at 535 5.7.8

Hi Miguel,

The password does not reshow for security reasons but it does save so should work.

After saving the configuration, can you check your app/config/local.php file and look for a mailer_password entry. Is the password correct there?

Thanks,
Alan

Thx alanhartless

but don’t work :frowning:

After test and save & close the configuration:

I have 2 leads in the “global” list
I created a new email to send to “global” list
I “send example” and the program said : “A test email has been sent to your email.”
But I haven´t received the mail
I also tried the button “send” but nothing happened (no emails received)

but the resume in email says: emails sent: 2
test global Uncategorized 2 0 ~0 6

In the lead:
test global
At April 29, 2015 9:02 pm, Email Sent.
Email probably had not been read yet. Email was sent to this Lead because he/she belongs to ‘Global’ List.

Mandrilapp don’t show activity :S (the only mail they show is “Mautic test email”)

Is mautic going to show the problem if the smtp connection fails?

If SMTP fails, it is recorded in the app/logs/mautic_prod.php file. We do have a fix coming in 1.0.4 where emails will not be marked as sent if the there was a SMTP error.

Are you sure you are using a live API key for Mandrill and not a test key? Test keys will not send the email.

Also, what do you have set for “How should email be handled?” in the Configuration? If “Send immediately” is selected, then it shouldn’t be an issue. But if you have “Queue” selected, then read through https://www.mautic.org/docs/emails/index.html.

Thanks,
Alan

Hi Alan,

Thx for the support,

Are you sure you are using a live API key for Mandrill and not a test key?
Yes is not in test mode. When I use the test email function in mautic they send one email and mandrill track it.

Also, what do you have set for “How should email be handled?” in the Configuration?

I have selected “send immediately”

I’m not completely sure that I’m well created the email campaign. What is the most easy way to test the smtp mail system?

I created a new list.
I add 3 leads to this list
I create new email and select these new list (they show total=3)
I click the button “send” in the new email (they show send=3 read=0 Falied=0)
No more things happend :frowning:

If I do: configuration–> Mail Settings --> Paste the mandril key in “Password for the selected mail service” and click Send test email so it send a test email to mi email and explain succes in green.

But if I don’t paste te mandril key (the password) and i want to send a test mail the result is:
Failed to authenticate on SMTP server with username “xxxxxxx” using 1 possible authenticators
++ Starting MauticCoreBundleSwiftmailerTransportMandrillTransport << 220 smtp.mandrillapp.com ESMTP >> EHLO …

I think the form is not saving my password properly

What is the most easy way to test the smtp mail system?

Now it works without new actions :S

Now the test run in configuration page.

I think the problem could be caching of data for conection but I dont know realy

I did a new mautic instalation and I have the same problem.

I reported the problem as a bug https://github.com/mautic/mautic/issues/367

If someone can help me to solve the problem to use full mautic I’ll apreciate much. I tried to change everything and don’t work :frowning:

I found new data. The email (in campaign) is send directly by the server by php mail. It don´t use the mandrill configuration to send the email.

Received: from 127.0.0.1 (EHLO xxxxxxx.yyyyyyyyyy.es) (XX.XX.XX.XX) <— This is the server when mautic is hosted
by mta1015.mail.bf1.yahoo.com with SMTPS; Tue, 05 May 2015 11:26:00 +0000
Received: by xxxxxxx.yyyyyyyyyy.es (Postfix, from userid 10057)
id 5AA905C5D2C; Tue, 5 May 2015 13:25:58 +0200 (CEST)

Hi Miguel

Looks like settings aren’t being found by Mautic. If you clear cache that should help. To clear your cache you can run:

php app/console clear:cache -e prod php app/console clear:cache -e dev

If you can’t run the cache script go ahead and delete the cache directory at app/cache

That should allow the new mail settings to get picked up.

php app/console cache:clear -e prod --> OK

php app/console cache:clear -e dev --> Fatal error

I trie to complete the form that generate the email is send to lead and the headers of email not use the mandril configuration. Is connecting through php mail directly (the headers of email show the name of the server)

https://github.com/mautic/mautic/issues/367

Now i’ll trie to erase all contents of cache directory

I deleted all contents of cache directory and NOW WORKS

The headers in the mail that the lead receive (when the lead fill a form) now show the sender is mandrill! The problem were the configuration cache.

Thx Thx Thx a lot