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");
}
}
}