#700847 ssmtp: user/pass not supported in revaliases (patch)

Package:
ssmtp
Source:
ssmtp
Description:
extremely simple MTA to get mail off the system to a mail hub
Submitter:
James Sleeman
Date:
2026-03-05 22:35:03 UTC
Severity:
normal
#700847#5
Date:
2013-02-18 10:16:45 UTC
From:
To:
Dear Maintainer,
/etc/ssmtp/revaliases supports setting mailhub for each alias, but does not support user/pass for same.

Adding this support should be a simple matter, to function revaliases() add, after the port has been set (if statem,ent ending line 420 in the copy I'm looking at).

Sorry no proper diff...


          if((p = strtok(NULL, " \t\r\n:"))) {
            if((auth_user = strdup(p)) == (char *)NULL) {
              die("revaliases() -- strdup() failed");
            }

            if((p = strtok(NULL, " \t\r\n:"))) {
              if((auth_pass = strdup(p)) == (char *)NULL) {
                die("revaliases() -- strdup() failed");
              }
            }

            if((p = strtok(NULL, " \t\r\n:"))) {
              if((auth_method = strdup(p)) == (char *)NULL) {
                die("revaliases() -- strdup() failed");
              }
            }
          }