• src/sbbs3/mailsrvr.c mailsrvr.h sbbs_ini.c

    From Rob Swindell@VERT to Git commit to sbbs/master on Tue Oct 20 20:59:14 2020
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/de1db41037d1ab7d6f0ad397
    Modified Files:
    src/sbbs3/mailsrvr.c mailsrvr.h sbbs_ini.c
    Log Message:
    Optionally limit concurrent connections to mail server

    The mail (SMTP) server is a popular target of bots. Impose a maximum-concurrent-connections limit (optionally). Similar to the terminal server option, except, don't deduct the number of authenticated connections (I can add something like that if desired). The new config option is [mail] MaxConcurrentConnections in the ctrl/sbbs.ini (defaults to 0, no maximum).

    Fixed error responses in mail_server accept loop: was always sending POP3 error responses even if the connection was SMTP.

    Cleaned-up the service/port checking/logging in the mail_server accept loop: no strcmp() needed, log the protocol name (e.g. "SMTPS") instead of the service name (e.g. "submissions").
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net