Redundancy server not connecting

Discussion in 'Installation/Configuration' started by Gerritdl, Jan 30, 2025.

  1. Gerritdl

    Gerritdl Member HowtoForge Supporter

    Please help not sure where to start looking, on the backup mailserver I get this error:
    ms2 dovecot: doveadm(e-mail-address): Fatal: connect(10.155.253.88:12345) failed: Interrupted system call
    and on the main server 10.155.253.88 I get the following:
    ms1 dovecot: auth: Error: auth client 0 disconnected with 1 pending requests: Connection reset by peer
     
  2. pyte

    pyte Well-Known Member HowtoForge Supporter

    Seems to me that your system is not able to connect to 10.155.253.88 on port 12345
     
  3. Gerritdl

    Gerritdl Member HowtoForge Supporter

    I did find port not open on main server, added it to open ports but still getting same errors.
    but I found this error:
    Error: doveadm client disconnected before handshake: SSL_accept() failed: error:0A00010B:SSL routines::wrong version number
    how do i fix without breaking anything
     
  4. pyte

    pyte Well-Known Member HowtoForge Supporter

    May post your replicator config from both systems here to better help understanding the situation. I assume you tcp:10.155.253.88:12345 instead of tcps:10.155.253.88:12345 which would result in such an error
     
  5. Gerritdl

    Gerritdl Member HowtoForge Supporter

    I do tcps!!
    Ill, Send configs now
     
  6. Gerritdl

    Gerritdl Member HowtoForge Supporter

    Config files
     

    Attached Files:

  7. pyte

    pyte Well-Known Member HowtoForge Supporter

    You configured your replicator doveadm endpoint to use ssl but try to connect without ssl see:


    Code:
    service doveadm {
        user = vmail
        inet_listener {
            port = 12345
            ssl = yes
        }

    Code:
    plugin {
        mail_replica = tcp:ms2.serverflex.co.za
    }
    
    This has to be:

    Code:
    plugin {
        mail_replica = tcps:ms2.serverflex.co.za
    }
    
    So either use tcps as explained before or disable ssl.
     
  8. Gerritdl

    Gerritdl Member HowtoForge Supporter

    Yes it was tcps I just changed it now to see if I see different errors, but no all the same, ill switch ssl off and see
     
  9. Gerritdl

    Gerritdl Member HowtoForge Supporter

    It does the same with ssl swiched off?
     
  10. pyte

    pyte Well-Known Member HowtoForge Supporter

    That error indicates that you are not using TCPS or that your certificates not work.

    Try to connect to the endpoint with openssl and see if you get a valid certificate:
    Code:
    openssl s_client -connect ms2.serverflex.co.za:12345 -crlf 
     
  11. Gerritdl

    Gerritdl Member HowtoForge Supporter

    Verification OK

    New, TLSv1.3, Cipher is TLS_AES_256_GCM_SHA384
    Server public key is 4096 bit
    Secure Renegotiation IS NOT supported
    Compression: NONE
    Expansion: NONE
    No ALPN negotiated
    Early data was not sent
    Verify return code: 0 (ok)

    And I tested it both ways
     
  12. pyte

    pyte Well-Known Member HowtoForge Supporter

    Well if you changed the config to be set to "tcps" and the check with openssl works everything should be good to go. After restarting the dovecot service, do you see any issues in the logs? What does "doveadm replicator status" return?
     
  13. Gerritdl

    Gerritdl Member HowtoForge Supporter

    root@ms1:~# doveadm replicator status
    Queued 'sync' requests 0
    Queued 'high' requests 0
    Queued 'low' requests 0
    Queued 'failed' requests 0
    Queued 'full resync' requests 0
    Waiting 'failed' requests 0
    Total number of known users 50

    I dont see anymore errors on the mail.log and error.log, I assume all is now fine, and the system is the same as before no changes ??
     
  14. pyte

    pyte Well-Known Member HowtoForge Supporter

    I guess you missed restarting the dovecot services or there was an issue with tcps or something like that then :) Glad it's working now!
     
  15. Gerritdl

    Gerritdl Member HowtoForge Supporter

    Thank you for your time at least I understand dovecot a bit better
     
    pyte likes this.

Share This Page