Sync_maildirs from SME9.2 to NethServer 7.4?

NethServer Version: 7.4

I try to migrate Mails from SME9.2 to NS7 - sync_maildirs.sh

I use the same usernames on each side… but:

The Source Server is a “normal” SME9.2, what does NethService/SME installation mean ?

Do you get this error for every user? Maybe the error could be ignored because SME did not have a vmail user (I have no SME anymore so I can’t check) and the script tries to sync it because Nethserver has one? Just an idea…

NethService seems to be a predecessor of NethServer and the migration scripts work for both, SME and NethService.

I tried to do it manually with rsync… There were no maildirs for the users, my idea was to create it with sogo. It does but I saw sogo creates the user-maildirs in that way:

user@ad.domain.at

I tried to send a mail with sogo, from one user to another, just locally, but it does not work…

Apr 22 10:03:28 neth14 postfix/qmgr[1241]: AE3B6C0037EAA: from=<buero@ad.mydomain.at>, size=1111, nrcpt=1 (queue active)
Apr 22 10:03:28 neth14 postfix/smtp[29467]: connect to ad.mydomain.at[192.168.80.246]:25: Connection refused
Apr 22 10:03:28 neth14 postfix/smtp[29467]: AE3B6C0037EAA: to=<buero@ad.mydomain.at>, relay=none, delay=4715, delays=4715/0.02/0/0, dsn=4.4.1, status=deferred (connect to ad.mydomain.at[192.168.80.246]:25:Connection refused)
Apr 22 10:03:39 neth14 clamd[1494]: SelfCheck: Database status OK.
Apr 22 10:03:45 neth14 postfix/smtpd[29474]: connect from localhost[127.0.0.1]
Apr 22 10:03:45 neth14 postfix/smtpd[29474]: NOQUEUE: client=localhost[127.0.0.1]
Apr 22 10:03:45 neth14 postfix/smtpd[29476]: connect from localhost[127.0.0.1]
Apr 22 10:03:45 neth14 postfix/smtpd[29476]: D149AC0037EB2: client=localhost[127.0.0.1], orig_client=localhost[127.0.0.1]
Apr 22 10:03:45 neth14 postfix/cleanup[29477]: D149AC0037EB2: message-id=<600d-5adc4200-13-77f12f00@173282967>
Apr 22 10:03:45 neth14 postfix/qmgr[1241]: D149AC0037EB2: from=<buero@ad.mydomain.at>, size=1121, nrcpt=2 (queue active)
Apr 22 10:03:45 neth14 postfix/smtpd[29474]: proxy-accept: END-OF-MESSAGE: 250 2.0.0 Ok: queued as D149AC0037EB2; from=<buero@ad.mydomain.at> to=<buero@ad.mydomain.at> proto=ESMTP helo=<localhost>
Apr 22 10:03:45 neth14 postfix/smtpd[29474]: disconnect from localhost[127.0.0.1]
Apr 22 10:03:45 neth14 postfix/smtpd[29476]: disconnect from localhost[127.0.0.1]
Apr 22 10:03:45 neth14 postfix/smtp[29467]: connect to ad.mydomain.at[192.168.80.246]:25: Connection refused
Apr 22 10:03:45 neth14 postfix/smtp[29467]: D149AC0037EB2: to=<buero@ad.mydomain.at>, relay=none, delay=0.01, delays=0.01/0/0/0, dsn=4.4.1, status=deferred (connect to ad.mydomain.at[192.168.80.246]:25: Connection refused)
Apr 22 10:03:45 neth14 dovecot: lmtp(29479): Connect from local
Apr 22 10:03:45 neth14 dovecot: lmtp(29479, buero@mydomain.at): GAQUNOFB3FoncwAAateDhg: sieve: msgid=<600d-5adc4200-13-77f12f00@173282967>: stored mail into mailbox 'INBOX'
Apr 22 10:03:45 neth14 postfix/lmtp[29478]: D149AC0037EB2: to=<buero@mydomain.at>, relay=neth14.mydomain.at[/var/run/dovecot/lmtp], delay=0.04, delays=0.01/0.01/0/0.01, dsn=2.0.0, status=sent (250 2.0.0 <buero@mydomain.at> GAQUNOFB3FoncwAAateDhg Saved)
Apr 22 10:03:45 neth14 dovecot: lmtp(29479): Disconnect from local: Successful quit

Did you check owner/rights after the rsync?

[root@server2 ~]# ls -l /var/lib/nethserver/vmail/markus\@domain.at/
total 4
drwx------ 11 vmail vmail 4096 Apr 22 10:10 Maildir
1 Like

I’d say vmail Maildir should be skipped by this line

Just by adding $user == vmail (without domain suffix)

1 Like

Now I did, it works… I had to use Thunderbird to create the user-dirs. Why is there a difference btw SOGO and Thunderbird (user@ad.mydomain.at and user@mydomain.at) ?

Thank you Davide, I will try this on a Testserver…