Hello, do you think that implementing ETRN in a way to qmail's autoturn would be harmful for courier? This the courieresmtpd will only log ETRN message with source IP, and implementing the functionality is up to external scripts watching logs...
the following patch should do that: --- courieresmtpd.c.orig 2011-04-04 15:01:20.000000000 +0200 +++ courieresmtpd.c 2012-04-12 11:35:37.214907303 +0200 @@ -156,6 +156,7 @@ "250-PIPELINING\r\n" "250-8BITMIME\r\n" "250-SIZE\r\n" +"250-ETRN\r\n" "250 DSN\r\n"; const char *me=config_me(); const char *p, *q; @@ -1393,6 +1394,17 @@ iovflush(); continue; } + if (strncmp(line, "ETRN", 4) == 0) + { + addiovec("250 Ok\r\n", 8); + iovflush(); + clog_msg_start_info(); + clog_msg_str("started,ip=["); + clog_msg_str(tcpremoteip); + clog_msg_str("], ETRN"); + clog_msg_send(); + continue; + } if (strncmp(line, "MAIL", 4) == 0 && (p=strchr(line, ':')) != 0 && !seenmailfrom) { -- Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/ Warning: I wish NOT to receive e-mail advertising to this address. Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. Remember half the people you know are below average. ------------------------------------------------------------------------------ For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 _______________________________________________ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users