summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2005-05-28 18:40:40 +0000
committerStef Walter <stef@memberwebs.com>2005-05-28 18:40:40 +0000
commit232021b0200a0d5959c8eff677b3be1d6da29666 (patch)
treefd96a3aac555f853783d17fb5599c0752a7de028
parentf42c94002dad916194a1df04d93ee4525a624984 (diff)
Handle condition of server refusing data transfers more gracefully.
-rw-r--r--common/smtppass.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/smtppass.c b/common/smtppass.c
index ccfdcf2..0008a8f 100644
--- a/common/smtppass.c
+++ b/common/smtppass.c
@@ -273,7 +273,7 @@ int sp_run(const char* configfile, const char* pidfile, int dbg_level)
else if(g_state.outname != NULL && g_state.transparent)
warnx("the " CFG_OUTADDR " option will be ignored when " CFG_TRANSPARENT " is enabled");
- sp_messagex(NULL, LOG_DEBUG, "starting up...");
+ sp_messagex(NULL, LOG_DEBUG, "starting up (%s)...", VERSION);
/* Drop privileges before daemonizing */
drop_privileges();
@@ -1485,7 +1485,7 @@ int sp_done_data(spctx_t* ctx)
sp_messagex(ctx, LOG_DEBUG, "server refused data transfer");
- RETURN(-1);
+ RETURN(0);
}
sp_messagex(ctx, LOG_DEBUG, "sending from cache file: %s", ctx->cachename);