Jump to content

ASK : How to configure email setting


Recommended Posts

 

Excuse me ,

 

i have a problem with my email configuration , i have tried repeatedly but it always failed, 

 

Mail domain name  : gmail

SMTP Server : smtp.gmail.com

SMTP User : ******@gmail.com

SMTP Password : ******

Encryption : SSL

Port : 465 

post-933974-0-99783200-1426761420_thumb.png

 

 

Edited by efermion (see edit history)
Link to comment
Share on other sites

@Nemo1, I don't see the point about been on http vs https from the BO. The socket is from the server.

@belkini13, You are right, I have the latest SwiftMailer lib in my install, the one shipped w/ PS is 3.0.3 that does not support STARTTLS. SwiftMailer is the library used by Prestashop and this library correcly handles STARTTLS negociation.

 
@efermion,
Many issues here:
1/ As with Prestashop 1.6, should you be using the same BO employee email login as with gmail, the password field do not recieve the autocomplete='off' even worst it receive a autocomplete=''on' and your password if different (better if they are) althrough saved it is not the one used during the test. To ensure the proper password is use during the test, a nasty hack is to change the AdminEmailsController.php, replace

'PS_MAIL_PASSWD' => array(
'title' => $this->l('SMTP password'),
'hint' => $this->l('Leave blank if not applicable.'),
'validation' => 'isAnything',
'type' => 'password',
'autocomplete' => false
),

with

'PS_MAIL_PASSWD' => array(
'title' => $this->l('SMTP password'),
'hint' => $this->l('Leave blank if not applicable.'),
'validation' => 'isAnything',
'type' => 'text',
'autocomplete' => false
),

2/ be sure to use port 587 with TLS (prefered) (see belkini13 comment.) port 465 SSL (will probably be decommissioned due poodle)

3/ be sure to have a google apps smtp account - the publicly available gateway seems not too work anymore. During AUTH LOGIN phase, google ask you to perform a recaptcha web based that seems to fail for me - normaly you go in your google account and mark a device as yours (be carefull if it works not to accept a shared host)

doekia@es002-p:~$ openssl s_client -starttls smtp -connect smtp.gmail.com:587
CONNECTED(00000003)
depth=2 C = US, O = GeoTrust Inc., CN = GeoTrust Global CA
verify error:num=20:unable to get local issuer certificate
verify return:0
---
Certificate chain
 0 s:/C=US/ST=California/L=Mountain View/O=Google Inc/CN=smtp.gmail.com
   i:/C=US/O=Google Inc/CN=Google Internet Authority G2
 1 s:/C=US/O=Google Inc/CN=Google Internet Authority G2
   i:/C=US/O=GeoTrust Inc./CN=GeoTrust Global CA
 2 s:/C=US/O=GeoTrust Inc./CN=GeoTrust Global CA
   i:/C=US/O=Equifax/OU=Equifax Secure Certificate Authority
---
Server certificate
-----BEGIN CERTIFICATE-----
MIIEdjCCA16gAwIBAgIIRU1aGVzo3ukwDQYJKoZIhvcNAQEFBQAwSTELMAkGA1UE
BhM[spam-filter]MxEzARBgNVBAoTCkdvb2dsZSBJbmMxJTAjBgNVBAMTHEdvb2dsZSBJbnRl
cm5ldCBBdXRob3JpdHkgRzIwHhcNMTUwMjE4MTAxOTU2WhcNMTUxMjMxMDAwMDAw
WjBoMQswCQYDVQQGEwJVUzETMBEGA1UECAwKQ2FsaWZvcm5pYTEWMBQGA1UEBwwN
TW91bnRhaW4gVmlldzETMBEGA1UECgwKR29vZ2xlIEluYzEXMBUGA1UEAwwOc210
cC5nbWFpbC5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDWhzIM
jqZemjDUQZOzyhmeVu6uX+ZFWqnkXp4tliDcbPsrtyZQYxqw8XsArzCBKtp6DY85
rVy8IjFXoXtPHA/LMWDlvryELz2jV1z08x37yZ6FPDR056mysCOfCDFX4uNyunTf
lvR4f8oL0ngmSZdAAVCGc9jfTg9CQYXKCRHv1EIKF+T4vk5xgiNV3N8Wy6dbfVu3
KQlLwGzUh4WaaKqe8AzceiZsFUmz2eAFdhRGknu4/gyKeY5pHgkYKYx/Rzv2sgoG
8EuBQ9OQMOh3PptN8CCXhwwZn4pAS+ajV8ZfbHtMACmaQvNzbI1iI9QJKw42C9aj
a3VAN9QnbIw4MArBAgMBAAGjggFBMIIBPTAdBgNVHSUEFjAUBggrBgEFBQcDAQYI
KwYBBQUHAwIwGQYDVR0RBBIwEIIOc210cC5nbWFpbC5jb20waAYIKwYBBQUHAQEE
XDBaMCsGCCsGAQUFBzAChh9odHRwOi8vcGtpLmdvb2dsZS5jb20vR0lBRzIuY3J0
MCsGCCsGAQUFBzABhh9odHRwOi8vY2xpZW50czEuZ29vZ2xlLmNvbS9vY3NwMB0G
A1UdDgQWBBSh6WggOBcK5Zwhr0O7+PFlnafafTAMBgNVHRMBAf8EAjAAMB8GA1Ud
IwQYMBaAFErdBhYbvPZotXb1gba7Yhq6WoEvMBcGA1UdIAQQMA4wDAYKKwYBBAHW
eQIFATAwBgNVHR8EKTAnMCWgI6Ahhh9odHRwOi8vcGtpLmdvb2dsZS5jb20vR0lB
RzIuY3JsMA0GCSqGSIb3DQEBBQUAA4IBAQCNfO+0mq3Tmps8EANSmNeZGnMlaERs
akjh5pH5KSdL7CJGjzR77uv3M+wPOeP2xp8cXqlKCamuacCWmoB2PjTsdxrDwMs8
y7O8VRYFZ2h5wj3ssPEGTQPsjTezMeen0O9HgtZBYtoSis0HEr7MvFI5i8S/Qflp
84E7yqtwM4DOdcG38DvBilBWf3nRn9N24Utghichuu4y+KZmq16F2T5vI0aGBqDb
00IAmvJ7cmL1Ug+EWx7TGZADqrW1FvFdquWcLSx3WTUjTt1wH+GINGIVx0Z5TcSC
vvFoQe5EOuiZ8GaWT4c3RcNJCzfPVcHluy22RCft5K/YrxTi4LtLksy9
-----END CERTIFICATE-----
subject=/C=US/ST=California/L=Mountain View/O=Google Inc/CN=smtp.gmail.com
issuer=/C=US/O=Google Inc/CN=Google Internet Authority G2
---
No client certificate CA names sent
---
SSL handshake has read 3988 bytes and written 466 bytes
---
New, TLSv1/SSLv3, Cipher is ECDHE-RSA-AES128-GCM-SHA256
Server public key is 2048 bit
Secure Renegotiation IS supported
Compression: NONE
Expansion: NONE
SSL-Session:
    Protocol  : TLSv1.2
    Cipher    : ECDHE-RSA-AES128-GCM-SHA256
    Session-ID: B777AA71803D0B6428FA631708D9E131EA3C2F0B178BCCB070F32AD1DED52795
    Session-ID-ctx: 
    Master-Key: 35942E6B115465A4E19738B7C69DA6734E28D89C959311624FFF0AA54CA92B6E7C002572637BFF4F00A0DB46CC27D49D
    Key-Arg   : None
    PSK identity: None
    PSK identity hint: None
    SRP username: None
    TLS session ticket lifetime hint: 100800 (seconds)
    TLS session ticket:
    0000 - 35 d5 9c 5e 13 40 ca 0d-49 8e 2c 93 84 1d 7f 7d   5..^[email protected].,....}
    0010 - 8c 9d 3c 81 ba bd f1 51-4b 5d f5 e0 86 32 8b 2b   ..<....QK]...2.+
    0020 - c7 64 47 23 58 1a 92 2f-dd 80 64 f0 f0 8b a4 b0   .dG#X../..d.....
    0030 - d7 71 65 19 e9 8a 6f a7-42 22 bf d1 94 66 51 4b   .qe...o.B"...fQK
    0040 - a7 ef c5 84 48 ae a0 d0-85 b4 a3 f1 9c d5 38 d1   ....H.........8.
    0050 - 81 ba e7 d0 97 c8 28 84-59 b4 b2 55 cf cf 84 49   ......(.Y..U...I
    0060 - 5a dd 2e b4 43 2e 5e 18-b0 3f a8 04 25 55 76 c5   Z...C.^..?..%Uv.
    0070 - f4 14 cd 46 07 a6 ae 92-83 70 70 2f 17 fe 5b 70   ...F.....pp/..[p
    0080 - f1 8a 6d 88 e9 10 8c 8b-bc 07 a5 79 78 49 1d be   ..m........yxI..
    0090 - 74 fb 06 df 0a 48 7c 60-18 2b e8 91 da 1c c5 0a   t....H|`.+......
    00a0 - e2 e0 84 21                                       ...!

    Start Time: 1426941302
    Timeout   : 300 (sec)
    Verify return code: 20 (unable to get local issuer certificate)
---
250 SMTPUTF8
HELO presta16
250 mx.google.com at your service
AUTH LOGIN
334 VXNlcm5hbWU6
(my-gmail-email-address-base64-encoded)
334 UGFzc3dvcmQ6
(my-password)
534-5.7.14 <https://accounts.google.com/ContinueSignIn?sarp=1&scc=1&plt=AKgnsbue8
534-5.7.14 0l_l0Dj8R5V6MTNS9agfV-umKXyXG8LQ7AfbUrEcDp_zQ5RZ024F8Sl3meZPr6hDzdUlqv
534-5.7.14 JiKugDqnlIjzzrw4WUAf1N3c9jesxZRUW95OyG9i0nHE0Ul4rRrZbW-dzub0OgWTKGlqLz
534-5.7.14 Q5TT_ap-KFRDMbDgOFvbeIhqPUfP5c9IFewi2W_kPTRN32F_BtrFENVt9of3gdQ3mRYVZ3
534-5.7.14 qor2s-D8d49QbOmX8Ac4qXDTiZG8> Please log in via your web browser and
534-5.7.14 then try again.
534-5.7.14 Learn more at
534 5.7.14 https://support.google.com/mail/bin/answer.py?answer=78754 ei8sm2263827wib.10 - gsmtp
QUIT
DONE

This rather long url split in many line is normally the one that should permit your server to use the service but it seems not to work anymore - (use to) at least for me.

Edited by doekia (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...