nmh-workers
[Top] [All Lists]

[Nmh-workers] 1.1rc3 - patch to support sending to port 587

2004-08-09 17:46:37
Here's a short patch that first tries to submit to the "submission" port (587),
and only tries port 25 if that fails.  This is probably going to be needed by
nmh users that use a remote SMTP/POP host, as more and more ISPs
block or hijack port 25.

--- mts/smtp/smtp.c.dist        2003-10-24 16:17:37.000000000 -0400
+++ mts/smtp/smtp.c     2004-08-07 00:49:59.696371114 -0400
@@ -208,8 +208,10 @@ smtp_init (char *client, char *server, i
        client = "localhost";
 #endif
 
-    if ((sd1 = rclient (server, "tcp", "smtp")) == NOTOK)
-       return RP_BHST;
+    if ((sd1 = rclient (server, "tcp", "submission")) == NOTOK) {
+        if ((sd1 = rclient (server, "tcp", "smtp")) == NOTOK)
+           return RP_BHST;
+    }
 
 #ifdef MPOP
     if (sm_ispool) {


Attachment: pgp1xT7u1wamU.pgp
Description: PGP signature

_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
http://lists.nongnu.org/mailman/listinfo/nmh-workers
<Prev in Thread] Current Thread [Next in Thread>