#1 2019-02-05 09:35:36

darkrin
Member
From: Maldives
Registered: 2019-01-18
Posts: 25

SMT Server Error

Hi,


This is my my smtpsrvs file
--------------------------------

1;smtp.gmail.com:465;nasru.rin@gmail.com;nasru.dk@gmail.com;pass123;yes;TLS;0


When i Run Command I get following Error:
----------------------------------------------------

Command:
------------
./xsibackup --check-smtp=some@email.com --use-smtp=1


Error:
-------
GMail Module ::: The e-mail server [smtp.gmail.com] is not reachable at port [465]
Firewall rule SMTPout-465 closed.
Killed



This is my Jobs File
-----------------------

"/vmfs/volumes/datastore2/xsi-dir/xsibackup" \
--backup-prog=Onediff \
--backup-point=/vmfs/volumes/datastore2/xsi-backup/$( date +%Y%m'00000000' ) \
--backup-type=custom \
--backup-vms="BkSvr2019,baksvr2019.vmdk" \
--backup-how=hot \
--use-smtp=1 \
--mail-to=nasru.dk@gmail.com \
--backup-id=001 \
--description="Daily Backup" \
--exec=yes >> "/vmfs/volumes/datastore2/xsi-dir/var/logs/xsibackup.log"


Also i enable "Less Secure Apps" for your GMail account.

I followed all the steps in this article:
https://33hops.com/xsibackup-smtp-client.html

Last edited by darkrin (2019-02-06 09:23:37)

Offline

#2 2019-02-10 07:04:24

darkrin
Member
From: Maldives
Registered: 2019-01-18
Posts: 25

Re: SMT Server Error

I Found The Issue, Problem resolved, smile smile My Firewall port was getting the blocked, I open the port 465 from my firewall now no issues with it

Last edited by darkrin (2019-02-10 08:01:59)

Offline

#3 2019-02-10 07:10:47

darkrin
Member
From: Maldives
Registered: 2019-01-18
Posts: 25

Re: SMT Server Error

This is my my smtpsrvs file
--------------------------------

1;smtp.gmail.com:465;nasru.rin@gmail.com;nasru.dk@gmail.com;pass123;yes;TLS;0


After Running this command:
./xsibackup --check-smtp=nasru.dk@gmail.com --use-smtp=1

Now i am having another issue:
-------------------------------------

Using stored SMTP server info...
Found conf/smtpsrvs file...
2019-02-10T12:10:47|  Opening port 465 for SMTPout-465 service...
CONNECTED(00000003)
---
Certificate chain
0 s:/C=US/ST=California/L=Mountain View/O=Google LLC/CN=smtp.gmail.com
   i:/C=US/O=Google Trust Services/CN=Google Internet Authority G3
1 s:/C=US/O=Google Trust Services/CN=Google Internet Authority G3
   i:/OU=GlobalSign Root CA - R2/O=GlobalSign/CN=GlobalSign
---
Server certificate
-----BEGIN CERTIFICATE-----
MIIEgjCCA2qgAwIBAgIIVDeQ+swaz2QwDQYJKoZIhvcNAQELBQAwVDELMAkGA1UE
BhMCVVMxHjAcBgNVBAoTFUdvb2dsZSBUcnVzdCBTZXJ2aWNlczElMCMGA1UEAxMc
R29vZ2xlIEludGVybmV0IEF1dGhvcml0eSBHMzAeFw0xOTAxMjMwOTE1MDBaFw0x
OTA0MTcwOTE1MDBaMGgxCzAJBgNVBAYTAlVTMRMwEQYDVQQIDApDYWxpZm9ybmlh
MRYwFAYDVQQHDA1Nb3VudGFpbiBWaWV3MRMwEQYDVQQKDApHb29nbGUgTExDMRcw
FQYDVQQDDA5zbXRwLmdtYWlsLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCC
AQoCggEBAJEURhKG+QuNjhuD7AkUxT6lre/ryDkvc/tscBbPkRy4xkjxXArlwIRa
BUThu+1lC9wmwcB26qs/lbSAhTNZBornOwyT9PJr2v5338tPIYHv4Ytd9fuCW4d9
oq2okuYPR5u0Tus9TWp18M0iI+yqSzd4aNY2YL3JjdbhEwsspIMZq6/nMkFVl2er
3h+viwE1rhTdWxgJ/2YFYl/Eq1K2eTRzg95Uq2oVPK742z7mLT/ZWHAWoXdnVdoC
c6mSPknm6MB02iBdwH89vWcCEpwsBhjTDlmAOQuS9e/eJeu8pWxblt7UBLxCraRB
vXCaj8jhsVb6vSlQgKglAkMvprrPqV0CAwEAAaOCAUIwggE+MBMGA1UdJQQMMAoG
CCsGAQUFBwMBMBkGA1UdEQQSMBCCDnNtdHAuZ21haWwuY29tMGgGCCsGAQUFBwEB
BFwwWjAtBggrBgEFBQcwAoYhaHR0cDovL3BraS5nb29nL2dzcjIvR1RTR0lBRzMu
Y3J0MCkGCCsGAQUFBzABhh1odHRwOi8vb2NzcC5wa2kuZ29vZy9HVFNHSUFHMzAd
BgNVHQ4EFgQUcjCDfPxgIMouPSpCdlOERXbbbsAwDAYDVR0TAQH/BAIwADAfBgNV
HSMEGDAWgBR3wrhQmmd2drEtwobQg6B+pn66SzAhBgNVHSAEGjAYMAwGCisGAQQB
1nkCBQMwCAYGZ4EMAQICMDEGA1UdHwQqMCgwJqAkoCKGIGh0dHA6Ly9jcmwucGtp
Lmdvb2cvR1RTR0lBRzMuY3JsMA0GCSqGSIb3DQEBCwUAA4IBAQCU/0GgcPy8QdWC
pFRDukLPZfstD9eg+YXhE19vLeqv18OSKoS7bZFWAV2NPkDNEST7fks+NI4rsQqp
L0oUo0yYGQiEbU0U83d9WlqohJATL4kRSb55M8iJp3JMyqYwWa0Ih51WyVfRqKyN
qkYK7FMAHTRRtr3r17cPwXo+wS7INiwymZ0OcNdPsaGKDCCghD5Qeeu6XtLWtiCv
blYVPDcJK+BxYyWDIocew85XHKohQTTkXeG2gCPNG5mtse3WNjoxHqMJ0v5eUkry
l9GbRXE93EdJOMwUnRuv6rMmtz5aFVZIuEL4WTDR+jA190k0rES5XE/b/dzD3tyN
CPzPQXr9
-----END CERTIFICATE-----
subject=/C=US/ST=California/L=Mountain View/O=Google LLC/CN=smtp.gmail.com
issuer=/C=US/O=Google Trust Services/CN=Google Internet Authority G3
---
No client certificate CA names sent
---
SSL handshake has read 2986 bytes and written 431 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: 5F78C16736C442D7CE7A17B6198C1DF43713A2A2853479F64FE985F370585EC1
    Session-ID-ctx:
    Master-Key: 2F62EBB9D8E2FAE4DBEF772BC0390F5AE8659425E4F97D19174B4F6B30EBD323FFB19B0DEB3F95B89541748FAB1BB190
    Key-Arg   : None
    PSK identity: None
    PSK identity hint: None
    SRP username: None
    TLS session ticket lifetime hint: 100800 (seconds)
    TLS session ticket:
    0000 - 00 5c 74 55 55 89 e1 05-82 3e c7 83 95 57 a7 a9   .\tUU....>...W..
    0010 - 85 c6 b4 79 49 9e 96 c3-c3 b9 51 26 15 7a 6a 74   ...yI.....Q&.zjt
    0020 - 7b 2a 0c 6f d6 b5 76 4f-e0 e7 05 46 70 32 f5 36   {*.o..vO...Fp2.6
    0030 - 0f 24 9b 9d 8a 55 56 8b-31 9f e5 f0 a8 ee 12 42   .$...UV.1......B
    0040 - f1 7b e2 06 84 8f 90 d4-5c f1 32 98 ae 21 3c 1e   .{......\.2..!<.
    0050 - 79 3e 26 44 6c d9 ed 36-97 39 29 aa 11 6c ed e0   y>&Dl..6.9)..l..
    0060 - 49 2d fa 07 95 92 b7 59-49 70 23 8c 7b c1 9f b1   I-.....YIp#.{...
    0070 - e9 82 ef 44 c5 8f 96 e1-08 33 68 56 a7 89 91 41   ...D.....3hV...A
    0080 - 3e 42 2a 8c f8 18 60 d2-e0 ab 8e c7 0e 14 ce c4   >B*...`.........
    0090 - d1 75 a1 a6 6b 15 6a be-51 92 db 22 9b 9f b5 4c   .u..k.j.Q.."...L
    00a0 - cf 2d 0b 3c 62 b9 7d f4-8c 31 9d fb 0d f5 d7 1e   .-.<b.}..1......
    00b0 - 44 26 b3 0c 31 6f 3a d4-27 ba 0c 98 c8 81 28 57   D&..1o:.'.....(W
    00c0 - cf 60 03 04 3f a6 d5 37-f9 63 e3 be 7d c9 2e 0e   .`..?..7.c..}...
    00d0 - cf 13 82 63 bf                                    ...c.

    Start Time: 1549800653
    Timeout   : 300 (sec)
    Verify return code: 20 (unable to get local issuer certificate)
---
220 smtp.gmail.com ESMTP g3sm13503445pfe.37 - gsmtp
250 smtp.gmail.com at your service
250-smtp.gmail.com at your service, [202.21.191.194]
250-SIZE 35882577
250-8BITMIME
250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-CHUNKING
250 SMTPUTF8
334 VXNlcm5hbWU6
334 UGFzc3dvcmQ6
535-5.7.8 Username and Password not accepted. Learn more at
535 5.7.8  https://support.google.com/mail/?p=BadCredentials g3sm13503445pfe.37 - gsmtp
530-5.5.1 Authentication Required. Learn more at
530 5.5.1  https://support.google.com/mail/?p=WantAuthError g3sm13503445pfe.37 - gsmtp
530-5.5.1 Authentication Required. Learn more at
530 5.5.1  https://support.google.com/mail/?p=WantAuthError g3sm13503445pfe.37 - gsmtp
530-5.5.1 Authentication Required. Learn more at
530 5.5.1  https://support.google.com/mail/?p=WantAuthError g3sm13503445pfe.37 - gsmtp
502 5.5.1 Unrecognized command. g3sm13503445pfe.37 - gsmtp
502 5.5.1 Unrecognized command. g3sm13503445pfe.37 - gsmtp
502 5.5.1 Unrecognized command. g3sm13503445pfe.37 - gsmtp
502 5.5.1 Unrecognized command. g3sm13503445pfe.37 - gsmtp
502 5.5.1 Unrecognized command. g3sm13503445pfe.37 - gsmtp
554 5.7.0 Too Many Unauthenticated commands. g3sm13503445pfe.37 - gsmtp
Firewall rule SMTPout-465 closed.
Killed

Offline

#4 2019-02-10 07:38:16

darkrin
Member
From: Maldives
Registered: 2019-01-18
Posts: 25

Re: SMT Server Error

I Found The Issue again, smile smile smile

When I configured my Gmail to allow "less secure apps".

I was Able to received message.

Thank You anyway.

cya, Moderator and Administrator  smile

Last edited by darkrin (2019-02-10 08:02:52)

Offline

Board footer