diff src/masqmail.c @ 204:5745edd5b769

removed the --disable-smtp-server configure option masqmail will now always have the possibility to listen on a port compiled in if you don't want it to listen on a port add this to your masqmail.conf: listen_addresses = "" also, if you don't start it as daemon it will not listen neither
author meillo@marmaro.de
date Fri, 16 Jul 2010 15:38:53 +0200
parents 89f951be358f
children 4fd237550525
line wrap: on
line diff
--- a/src/masqmail.c	Fri Jul 16 14:48:17 2010 +0200
+++ b/src/masqmail.c	Fri Jul 16 15:38:53 2010 +0200
@@ -177,7 +177,6 @@
 	listen_port(do_listen ? conf.listen_addresses : NULL, queue_interval, argv);
 }
 
-#ifdef ENABLE_SMTP_SERVER
 static void
 mode_smtp()
 {
@@ -204,7 +203,6 @@
 
 	smtp_in(stdin, stderr, peername, NULL);
 }
-#endif
 
 static void
 mode_accept(address * return_path, gchar * full_sender_name, guint accept_flags, char **addresses, int addr_cnt)
@@ -500,7 +498,6 @@
 
 	if (mta_mode == MODE_VERSION) {
 		gchar *with_resolver = "";
-		gchar *with_smtp_server = "";
 		gchar *with_auth = "";
 		gchar *with_maildir = "";
 		gchar *with_ident = "";
@@ -508,9 +505,6 @@
 #ifdef ENABLE_RESOLVER
 		with_resolver = " +resolver";
 #endif
-#ifdef ENABLE_SMTP_SERVER
-		with_smtp_server = " +smtp-server";
-#endif
 #ifdef ENABLE_AUTH
 		with_auth = " +auth";
 #endif
@@ -521,7 +515,7 @@
 		with_ident = " +ident";
 #endif
 
-		printf("%s %s%s%s%s%s%s\n", PACKAGE, VERSION, with_resolver, with_smtp_server,
+		printf("%s %s%s%s%s%s\n", PACKAGE, VERSION, with_resolver,
 		       with_auth, with_maildir, with_ident);
 
 		exit(EXIT_SUCCESS);
@@ -646,11 +640,7 @@
 		break;
 
 	case MODE_SMTP:
-#ifdef ENABLE_SMTP_SERVER
 		mode_smtp();
-#else
-		fprintf(stderr, "smtp server support not compiled in\n");
-#endif
 		break;
 
 	case MODE_LIST: