JSON.parse: unexpec...
 
Notifications
Clear all

JSON.parse: unexpected character at line 1 column 1 of the JSON data

45 Posts
12 Users
6 Reactions
5,419 Views
(@jontalaev89)
Joined: 3 years ago
Posts: 21
 

The last thing I did


   
ReplyQuote
(@jontalaev89)
Joined: 3 years ago
Posts: 21
 
Posted by: @jontalaev89

The last thing I did

also, incoming letters are not loaded from the server to the imap client. Moreover, if you send a letter from the imap client, then it is delivered without problems

 


   
ReplyQuote
(@sharif)
Admin
Joined: 2 years ago
Posts: 591
 

@jontalaev89 

Hi,

We are extremely sorry that you already faced lots of issues.

Could you please follow this post about the new installation and let us know your feedback:

New Installation Guidelines

and if it is an upgrade then check out the later part of this post:

Upgradation guidelines

We know you already had lots of trouble but please consider checking them and let us know.

 

Also. please let us know what IMAP client you are using.

Also. if you could please dump an output of following commands:

zmcontrol -v

zmcontrol status

journalctl -f -u carbonio*

and the mailboxd log.

 

Thanks and regards,

Sharif


   
ReplyQuote
(@jontalaev89)
Joined: 3 years ago
Posts: 21
 

Добрый день. У меня есть два отдельных сервера в моей сети с разными доменными именами. На данный момент я не могу отправлять почту между ними. Хотя оба работают с внешней почтой.


   
ReplyQuote
(@sharif)
Admin
Joined: 2 years ago
Posts: 591
 

@jontalaev89 

Hi Jontalaev89,

It would be a great help if you could please provide us with a little more details about both servers.

Server-1
####################
hostname -f

cat /etc/hosts

zmcontrol -v

zmcontrol status

Server-2
####################
hostname -f

cat /etc/hosts

zmcontrol -v

zmcontrol status

 

Also, please send a test mail from server1 to server2 and share the log.

Thank you for your effort and understanding.

Thanks and regards,

Sharif

 

 


   
ReplyQuote
(@jontalaev89)
Joined: 3 years ago
Posts: 21
 
Nov 15 08:31:25 pmg postfix/smtpd[15079]: connect from localhost.localdomain[127.0.0.1]
Nov 15 08:31:25 pmg postfix/smtpd[15079]: 80C58140A17: client=localhost.localdomain[127.0.0.1], orig_client=unknown[192.168.200.19]
Nov 15 08:31:25 pmg postfix/cleanup[15069]: 80C58140A17: message-id=<e739b3b1-f6f1-ecb6-06af-b93532db85ab@gkunion.ru>
Nov 15 08:31:25 pmg postfix/qmgr[967]: 80C58140A17: from=<talaeveg@gkunion.ru>, size=2533, nrcpt=1 (queue active)
Nov 15 08:31:25 pmg postfix/smtpd[15079]: disconnect from localhost.localdomain[127.0.0.1] ehlo=1 xforward=1 mail=1 rcpt=1 data=1 commands=5
Nov 15 08:31:25 pmg postfix/smtp[15080]: 80C58140A17: to=<itcontrol42@rinnol.com>, relay=none, delay=0.35, delays=0.1/0/0.24/0, dsn=4.4.1, status=deferred (connect to mail.rinnol.com[2a03:6f00:1::5c35:607e]:25: Network is unreachable)
Nov 15 08:38:23 pmg postfix/qmgr[967]: 80C58140A17: from=<talaeveg@gkunion.ru>, size=2533, nrcpt=1 (queue active)
Nov 15 08:38:23 pmg postfix/smtp[15223]: 80C58140A17: to=<itcontrol42@rinnol.com>, relay=none, delay=418, delays=418/0.02/0.26/0, dsn=4.4.1, status=deferred (connect to mail.rinnol.com[2a03:6f00:1::5c35:607e]:25: Network is unreachable)
Nov 15 08:48:23 pmg postfix/qmgr[967]: 80C58140A17: from=<talaeveg@gkunion.ru>, size=2533, nrcpt=1 (queue active)
Nov 15 08:48:23 pmg postfix/smtp[15310]: 80C58140A17: to=<itcontrol42@rinnol.com>, relay=none, delay=1018, delays=1018/0.01/0.23/0, dsn=4.4.1, status=deferred (connect to mail.rinnol.com[2a03:6f00:1::5c35:607e]:25: Network is unreachable)
Nov 15 09:08:23 pmg postfix/qmgr[967]: 80C58140A17: from=<talaeveg@gkunion.ru>, size=2533, nrcpt=1 (queue active)
Nov 15 09:08:23 pmg postfix/smtp[15564]: 80C58140A17: to=<itcontrol42@rinnol.com>, relay=none, delay=2218, delays=2218/0.02/0.24/0, dsn=4.4.1, status=deferred (connect to mail.rinnol.com[5.59.140.78]:25: Connection refused)
Nov 15 09:48:23 pmg postfix/qmgr[967]: 80C58140A17: from=<talaeveg@gkunion.ru>, size=2533, nrcpt=1 (queue active)
Nov 15 09:48:24 pmg postfix/smtp[16024]: 80C58140A17: to=<itcontrol42@rinnol.com>, relay=none, delay=4619, delays=4618/0.02/0.65/0, dsn=4.4.1, status=deferred (connect to mail.rinnol.com[2a03:6f00:1::5c35:607e]:25: Network is unreachable)
Nov 15 10:58:23 pmg postfix/qmgr[967]: 80C58140A17: from=<talaeveg@gkunion.ru>, size=2533, nrcpt=1 (queue active)
Nov 15 10:58:23 pmg postfix/smtp[16878]: 80C58140A17: to=<itcontrol42@rinnol.com>, relay=none, delay=8818, delays=8818/0.02/0.21/0, dsn=4.4.1, status=deferred (connect to mail.rinnol.com[2a03:6f00:1::5c35:607e]:25: Network is unreachable)

   
ReplyQuote
(@jontalaev89)
Joined: 3 years ago
Posts: 21
 

Carbonio Release 22.11.0

Release 8.8.9_GA_2055.RHEL7_64_20180703080917 RHEL7_64 FOSS edition, Patch 8.8.9_P9.


   
ReplyQuote
(@jontalaev89)
Joined: 3 years ago
Posts: 21
 
Nov 15 06:04:03 mail postfix/postscreen[49064]: CONNECT from [192.168.200.11]:45846 to [192.168.200.11]:25
Nov 15 06:04:03 mail postfix/postscreen[49064]: ALLOWLISTED [192.168.200.11]:45846
Nov 15 06:04:03 mail postfix/smtpd[49065]: connect from mail.rinnol.com[192.168.200.11]
Nov 15 06:04:03 mail postfix/smtpd[49065]: NOQUEUE: filter: RCPT from mail.rinnol.com[192.168.200.11]: <office@rinnol.com>: Sender address triggers FILTER smtp-amavis:[127.0.0.1]:10026; from=<office@rinnol.com> to=<talaeveg@gkunion.ru> >
Nov 15 06:04:03 mail postfix/smtpd[49065]: 76CC480224: client=mail.rinnol.com[192.168.200.11]
Nov 15 06:04:03 mail postfix/cleanup[49071]: 76CC480224: message-id=<403353280.30.1668492243231.JavaMail.zextras@rinnol.com>
Nov 15 06:04:03 mail postfix/smtpd[49065]: disconnect from mail.rinnol.com[192.168.200.11] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Nov 15 06:04:03 mail postfix/qmgr[4168]: 76CC480224: from=<office@rinnol.com>, size=1350, nrcpt=1 (queue active)
Nov 15 06:04:03 mail postfix/dkimmilter/smtpd[49074]: connect from localhost[127.0.0.1]
Nov 15 06:04:03 mail postfix/dkimmilter/smtpd[49074]: AD6D080225: client=localhost[127.0.0.1]
Nov 15 06:04:03 mail postfix/cleanup[49071]: AD6D080225: message-id=<403353280.30.1668492243231.JavaMail.zextras@rinnol.com>
Nov 15 06:04:03 mail postfix/qmgr[4168]: AD6D080225: from=<office@rinnol.com>, size=1780, nrcpt=1 (queue active)
Nov 15 06:04:03 mail postfix/smtp[49072]: 76CC480224: to=<talaeveg@gkunion.ru>, relay=127.0.0.1[127.0.0.1]:10026, delay=0.32, delays=0.06/0.02/0.02/0.21, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10030): 250 2.0.0 Ok: >
Nov 15 06:04:03 mail postfix/qmgr[4168]: 76CC480224: removed
Nov 15 06:04:06 mail postfix/amavisd/smtpd[49156]: connect from localhost[127.0.0.1]
Nov 15 06:04:06 mail postfix/amavisd/smtpd[49156]: AF57C80224: client=localhost[127.0.0.1]
Nov 15 06:04:06 mail postfix/cleanup[49071]: AF57C80224: message-id=<403353280.30.1668492243231.JavaMail.zextras@rinnol.com>
Nov 15 06:04:06 mail postfix/qmgr[4168]: AF57C80224: from=<office@rinnol.com>, size=3229, nrcpt=1 (queue active)
Nov 15 06:04:06 mail postfix/smtp[49072]: AD6D080225: to=<talaeveg@gkunion.ru>, relay=127.0.0.1[127.0.0.1]:10032, delay=3, delays=0.07/0.01/0.02/2.9, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queu>
Nov 15 06:04:06 mail postfix/qmgr[4168]: AD6D080225: removed
Nov 15 06:04:07 mail postfix/lmtp[49157]: AF57C80224: to=<talaeveg@gkunion.ru>, relay=mail.rinnol.com[192.168.200.11]:7025, delay=0.58, delays=0.01/0.02/0.02/0.54, dsn=2.1.5, status=sent (250 2.1.5 Delivery OK)
Nov 15 06:04:07 mail postfix/qmgr[4168]: AF57C80224: removed

   
ReplyQuote
(@jontalaev89)
Joined: 3 years ago
Posts: 21
 

[zimbra@mail root]$ hostname -f
mail.gkunion.ru

root@mail:/home/sadmin# hostname -f
mail.rinnol.com


   
ReplyQuote
(@sharif)
Admin
Joined: 2 years ago
Posts: 591
 

@jontalaev89 

Hi,

Your information is a bit scattered. Can you write down them in a single reply?

I understand correctly, your two servers are as follows:

Server-1
mail.rinnol.com
Carbonio 22.10.0
Private IP: 192.168.200.11
Public IP: 5.59.140.78
office@rinnol.com

Server-2
mail.gkunion.ru
Zimbra 8.8.9
Private IP:
Public IP: 5.59.140.69
talaeveg@gkunion.ru

Now please could you do one more thing. As you mentioned that you can email external addresses but can't do it between server-1 & server-2, it id most probably, your internal firewall issue or network connectivity issue.

So please do the followings:

Send an email from office@rinnol.com to talaeveg@gkunion.ru

Now do:

grep office /var/log/carobnio.log

You may find some traced messages, and queue ID.

Also grep them like:

Nov 15 0606 mail postfix/cleanup[49071]: AF57C80224: message-id=<403353280.30.1668492243231.JavaMail.zextras@rinnol.com>
Nov 15 0606 mail postfix/qmgr[4168]: AF57C80224: from=<office@rinnol.com>, size=3229, nrcpt=1 (queue active)
Nov 15 0606 mail postfix/smtp[49072]: AD6D080225: to=<talaeveg@gkunion.ru>, relay=127.0.0.1[127.0.0.1]:10032, delay=3, delays=0.07/0.01/0.02/2.9, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1] 250 2.0.0 Ok: queu>
Nov 15 0606 mail postfix/qmgr[4168]: AD6D080225: removed

grep AD6D080225 /var/log/carbonio.log

Grep all ID until you get the remote end relay=AA.BB.CC.DD:25, address.


Let us know your feedback.

 

Thanks and regards,

Sharif

 


   
ReplyQuote
(@jontalaev89)
Joined: 3 years ago
Posts: 21
 

That's all I could find.
Maybe there are more detailed logs in which the correspondence between the two servers will be visible

 

Nov 16 08:55:49 mail postfix/smtps/smtpd[6300]: 0A5BB80229: client=unknown[192.168.200.42], sasl_method=PLAIN, sasl_username=office@rinnol.com
Nov 16 08:55:50 mail postfix/qmgr[4834]: 0A5BB80229: from=<office@rinnol.com>, size=934, nrcpt=1 (queue active)
Nov 16 08:55:50 mail amavis[3927]: (03927-01) ESMTP [127.0.0.1]:10026 /opt/zextras/data/amavisd/tmp/amavis-20221116T085550-03927-U9bhrzu7: <office@rinnol.com> -> <talaeveg@gkunion.ru> Received: from mail.rinnol.com ([127.0.0.1]) by localhost (mail.rinnol.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP for <talaeveg@gkunion.ru>; Wed, 16 Nov 2022 08:55:50 +0300 (MSK)
Nov 16 08:55:51 mail amavis[3927]: (03927-01) Checking: QYJwTj-vvdlm ORIGINATING/MYNETS [192.168.200.42] <office@rinnol.com> -> <talaeveg@gkunion.ru>
Nov 16 08:55:55 mail postfix/qmgr[4834]: 52AC280232: from=<office@rinnol.com>, size=1364, nrcpt=1 (queue active)
Nov 16 08:55:55 mail amavis[3927]: (03927-01) QYJwTj-vvdlm FWD from <office@rinnol.com> -> <talaeveg@gkunion.ru>, BODY=7BIT 250 2.0.0 from MTA(smtp:[127.0.0.1]:10030): 250 2.0.0 Ok: queued as 52AC280232
Nov 16 08:55:55 mail amavis[3927]: (03927-01) Passed CLEAN {RelayedInternal}, ORIGINATING/MYNETS LOCAL [192.168.200.42]:53426 <office@rinnol.com> -> <talaeveg@gkunion.ru>, Queue-ID: 0A5BB80229, Message-ID: <55a83a8c-3997-1c37-525e-e7802e421853@rinnol.com>, mail_id: QYJwTj-vvdlm, Hits: -, size: 897, queued_as: 52AC280232, 4872 ms
Nov 16 08:55:55 mail amavis[3925]: (03925-01) ESMTP [127.0.0.1]:10032 /opt/zextras/data/amavisd/tmp/amavis-20221116T085555-03925-VOWb6koa: <office@rinnol.com> -> <talaeveg@gkunion.ru> SIZE=1364 Received: from mail.rinnol.com ([127.0.0.1]) by localhost (mail.rinnol.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP for <talaeveg@gkunion.ru>; Wed, 16 Nov 2022 08:55:55 +0300 (MSK)
Nov 16 08:55:56 mail amavis[3925]: (03925-01) Checking: 1YnzQkGrkg9z ORIGINATING_POST/MYNETS [127.0.0.1] <office@rinnol.com> -> <talaeveg@gkunion.ru>
Nov 16 08:56:02 mail postfix/qmgr[4834]: 2515280229: from=<office@rinnol.com>, size=2793, nrcpt=1 (queue active)
Nov 16 08:56:02 mail amavis[3925]: (03925-01) 1YnzQkGrkg9z FWD from <office@rinnol.com> -> <talaeveg@gkunion.ru>, BODY=7BIT 250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 2515280229
Nov 16 08:56:02 mail amavis[3925]: (03925-01) Passed CLEAN {RelayedInternal}, ORIGINATING_POST/MYNETS LOCAL [127.0.0.1]:49838 <office@rinnol.com> -> <talaeveg@gkunion.ru>, Queue-ID: 52AC280232, Message-ID: <55a83a8c-3997-1c37-525e-e7802e421853@rinnol.com>, mail_id: 1YnzQkGrkg9z, Hits: -1.197, size: 1979, queued_as: 2515280229, dkim_sd=18C3D582-A100-11EC-804D-85A88F3FE760:rinnol.com, 6099 ms

   
ReplyQuote
(@sharif)
Admin
Joined: 2 years ago
Posts: 591
 

@jontalaev89 

Hi,

Thanks for your effort.

Please again grep this ID on the same server:

grep 2515280229 /var/log/carbonio.log

 

Thanks

Sharif


   
ReplyQuote
(@jontalaev89)
Joined: 3 years ago
Posts: 21
 
Nov 16 08:56:01 mail postfix/amavisd/smtpd[9114]: 2515280229: client=localhost[127.0.0.1]
Nov 16 08:56:01 mail postfix/cleanup[8966]: 2515280229: message-id=<55a83a8c-3997-1c37-525e-e7802e421853@rinnol.com>
Nov 16 08:56:02 mail postfix/qmgr[4834]: 2515280229: from=<office@rinnol.com>, size=2793, nrcpt=1 (queue active)
Nov 16 08:56:02 mail amavis[3925]: (03925-01) 1YnzQkGrkg9z FWD from <office@rinnol.com> -> <talaeveg@gkunion.ru>, BODY=7BIT 250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 2515280229
Nov 16 08:56:02 mail amavis[3925]: (03925-01) Passed CLEAN {RelayedInternal}, ORIGINATING_POST/MYNETS LOCAL [127.0.0.1]:49838 <office@rinnol.com> -> <talaeveg@gkunion.ru>, Queue-ID: 52AC280232, Message-ID: <55a83a8c-3997-1c37-525e-e7802e421853@rinnol.com>, mail_id: 1YnzQkGrkg9z, Hits: -1.197, size: 1979, queued_as: 2515280229, dkim_sd=18C3D582-A100-11EC-804D-85A88F3FE760:rinnol.com, 6099 ms
Nov 16 08:56:02 mail postfix/smtp[8972]: 52AC280232: to=<talaeveg@gkunion.ru>, relay=127.0.0.1[127.0.0.1]:10032, delay=7.5, delays=1.4/0.01/0.01/6.1, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 2515280229)
Nov 16 08:56:14 mail postfix/lmtp[9140]: 2515280229: to=<talaeveg@gkunion.ru>, relay=mail.rinnol.com[192.168.200.11]:7025, delay=13, delays=0.65/0.16/5.5/7.1, dsn=2.1.5, status=sent (250 2.1.5 Delivery OK)
Nov 16 08:56:14 mail postfix/qmgr[4834]: 2515280229: removed

   
ReplyQuote
(@sharif)
Admin
Joined: 2 years ago
Posts: 591
 

Hi,

Thanks again.

Let me show some issues.

1. Your last log says "Passed CLEAN {RelayedInternal}" but it is not an internal email. because you sent mail from server1 to server2

2. When server1 delivers the mail to gkunion.ru it actually delivers to itself, as it shows in the relay:

to=<talaeveg@gkunion.ru>, relay=mail.rinnol.com[192.168.200.11]:7025, delay=13, delays=0.65/0.16/5.5/7.1, dsn=2.1.5, status=sent (250 2.1.5 Delivery OK)

So I think you need to check your server configurations, and surely there are some mishaps.

It looks like, server-1 (mail.rinnol.com) has some sort of instruction to treat domain gkunion.ru as a local domain, or gkunion.ru is somehow hosted/configured in the server-1

Please try to figure this out.

Thanks for your understanding.

Thanks and regards,

Sharif

 


   
ReplyQuote
(@jontalaev89)
Joined: 3 years ago
Posts: 21
 

Thank you. Yes, indeed, both on server1 and server2 are duplicated by the domain. I made server2 a backup, and transferred all domains and mailboxes from server1. On server1, I added the control domain rinnol.com, which is not on server2 Server1 is available at mail.rinol.com I thought that mail from the rinol.com domain would be sent to the gkunion.ru domain, since my dns server has a different address for the server gkunion.ru

Is it possible to make the mail.rinol.com server send mail not to itself, but to a neighboring server with the same domains.

This post was modified 2 years ago by jontalaev89

   
ReplyQuote
Page 2 / 3