aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGilles Chehade <gilles@poolp.org>2012-12-17 11:25:56 +0100
committerGilles Chehade <gilles@poolp.org>2012-12-17 11:25:56 +0100
commit1a0480a492a1fcf36ad4e11e863a2669af4753d7 (patch)
tree7368bfc9bdc3c72f23809e94f19244efccc6ef85
parentremove unused file (diff)
downloadOpenSMTPD-1a0480a492a1fcf36ad4e11e863a2669af4753d7.tar.xz
OpenSMTPD-1a0480a492a1fcf36ad4e11e863a2669af4753d7.zip
introduce backup ://opensmtpd-201212171136
-rw-r--r--smtpd/to.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/smtpd/to.c b/smtpd/to.c
index 246aa9a2..d8a66945 100644
--- a/smtpd/to.c
+++ b/smtpd/to.c
@@ -311,7 +311,8 @@ text_to_relayhost(struct relayhost *relay, const char *s)
{ "smtps+auth://", F_SMTPS|F_AUTH },
{ "tls+auth://", F_STARTTLS|F_AUTH },
{ "ssl://", F_SMTPS|F_STARTTLS },
- { "ssl+auth://", F_SMTPS|F_STARTTLS|F_AUTH }
+ { "ssl+auth://", F_SMTPS|F_STARTTLS|F_AUTH },
+ { "backup://", F_BACKUP }
};
const char *errstr = NULL;
char *p, *q;
@@ -403,6 +404,9 @@ relayhost_to_text(struct relayhost *relay)
case F_SMTPS:
strlcat(buf, "smtps://", sizeof buf);
break;
+ case F_BACKUP:
+ strlcat(buf, "backup://", sizeof buf);
+ break;
default:
strlcat(buf, "smtp://", sizeof buf);
break;