summaryrefslogtreecommitdiffabout
path: root/mfd/savsrv.c
Side-by-side diff
Diffstat (limited to 'mfd/savsrv.c') (more/less context) (ignore whitespace changes)
-rw-r--r--mfd/savsrv.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/mfd/savsrv.c b/mfd/savsrv.c
index 4e90d36..34f95b4 100644
--- a/mfd/savsrv.c
+++ b/mfd/savsrv.c
@@ -14,7 +14,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-#define MF_SOURCE_NAME MF_SOURCE_CALLOUT
+#define MF_SOURCE_NAME MF_SOURCE_SAVSRV
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
@@ -23,11 +23,6 @@
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
-#include <stdarg.h>
-#include <syslog.h>
-#include <signal.h>
-#include <pwd.h>
-#include <grp.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
@@ -57,6 +52,7 @@ verify(struct vrfy_queue *qp, FILE *fp)
{
mf_status rc;
+ mf_proctitle_format("callout server: %s", smtp_io_email(qp->io));
if (qp->hostname) {
rc = callout_strict(qp->io, qp->hostname);
if (mf_resolved(rc))
@@ -192,6 +188,7 @@ callout_session_server(const char *id, int fd,
char *buf = NULL;
size_t size = 0;
+ mf_proctitle_format("callout server");
setvbuf(fp, NULL, _IOLBF, 0);
fprintf(fp, "OK mailfromd callout server ready\r\n");
while (getline(&buf, &size, fp) >= 0) {
@@ -201,6 +198,8 @@ callout_session_server(const char *id, int fd,
int rc = 0;
trimcrlf(buf);
+ debug1(2,"C: %s", buf);
+
if (mu_argcv_get(buf, "", NULL, &argc, &argv)) {
fprintf(fp, "NO cannot parse line\r\n");
continue;
@@ -218,7 +217,8 @@ callout_session_server(const char *id, int fd,
break;
}
fclose(fp);
-
+ free(buf);
+
/* Run queued verifications */
run_queue(NULL);
return 0;

Return to:

Send suggestions and report system problems to the System administrator.