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

    From Rob Swindell@VERT to Git commit to sbbs/master on Tuesday, October 20, 2020 20:59:14
    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