Imapsync with external LDAP?

Windows Server Version: 2022
NethServer Version: 8
Module: imapsync and mail

I cannot setup Imapsync if NS8 is joined to external LDAP…

Shouldn’t this be possible?

1 Like

Windows Server Version: 2022
NethServer Version: 8
Module: imapsync and mail

OK, I think I got it. I had to setup Mail first…

grafik

But there is another Problem:

Imapsync is designed to use the ns8 mail server you have to link imasync to it

Hi,

I think the setup is correct?

1 Like

Remove and reinstall imasync but before try to check the cli below

I did a quick test with a remote LDAP and no pb so far :confused:

[root@R4-pve ~]# tree /home/imapsync1/.config/state/
/home/imapsync2/.config/state/
├── CACHEDIR.TAG
├── agent.env
├── apitoken.cache
├── cron
├── environment
└── imapsync
    ├── stephane_9bevc3.env
    ├── stephane_9bevc3.pwd
    └── vmail.pwd
[root@R4-pve ~]# cat /home/imapsync1/.config/state/imapsync/vmail.pwd 
yrG@S..xiB%K@O/+G,g5/RplJMvZPnVa

hum can you see the mailbox of the mail server, can you list user in the web page…I bet no

go to mail module > mailboxes

image

please did you configure the ldap with the toggle verify the tls certificate to true ???

No TLS…

you can browse users in the ldap page and in the maiboxes of the mail page ?

ldap page does work but mailboxes doesnt

I did a 2nd test with active TLS:

This looks good now, I will do further tests tomorrow…

so to resume, you joined a remote domain without TLS, you got no error so far from the UI, but obviously you cannot list the users of the domain, does it sound close of your issue ?

The 1. Test without TLS and TLS verification did not work as expected.
The 2. Test, as you can see in the screenshot, works so far. I can list users etc., but I have to do forther tests to be sure mails are fetched from the provider and sorted to the users and sent out correctly…

question, do you think that an AD allowing to authenticate without TLS remotely is safe enough !!!

maybe dovecot forces the TLS on its own

cc @davidep

No

It looks like…

1 Like

tested on a remote ldap account without TLS, I cannot reproduce the issue

create an AD on NS7
set to do not ask for encryption

bind to this AD on NS8 without TLS on port 389
install mail, webtop, imapsync

I can use the domain page and the mailboxes page, and the imapsync page, I can login with ldap users to webtop

If I remove the custom template I did on NS7 and I restart the nsdc, then I cannot browse remotely the users on all pages