aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorgarga <garga@FreeBSD.org>2006-01-31 17:38:25 +0800
committergarga <garga@FreeBSD.org>2006-01-31 17:38:25 +0800
commit934ae03e711e71e0fb0b68b5478c4b857fdfda3f (patch)
tree2e88551cf91e24682081eb06a4383bc5c53167a1 /mail
parent76355312507ea5df5fdb20f1b77f1b8a0c46c825 (diff)
downloadfreebsd-ports-gnome-934ae03e711e71e0fb0b68b5478c4b857fdfda3f.tar.gz
freebsd-ports-gnome-934ae03e711e71e0fb0b68b5478c4b857fdfda3f.tar.zst
freebsd-ports-gnome-934ae03e711e71e0fb0b68b5478c4b857fdfda3f.zip
- qmail-tls is not working fine with auth, fix it printing STATTLS alone in
one line on EHLO command [1] - Add ECHO_CMD to SUB_LIST, it's necessary to boot files PR: ports/92574 [1] Submitted by: Cristiano Deana <cris@gufi.org> [1]
Diffstat (limited to 'mail')
-rw-r--r--mail/qmail/Makefile1
-rw-r--r--mail/qmail/files/auth.patch.patch-tls14
2 files changed, 9 insertions, 6 deletions
diff --git a/mail/qmail/Makefile b/mail/qmail/Makefile
index 0fa4474078d3..306e6faf83e7 100644
--- a/mail/qmail/Makefile
+++ b/mail/qmail/Makefile
@@ -238,6 +238,7 @@ SLAVEPORT_LINE= spamcontrol
.endif
SUB_FILES+= mailer.conf.sample bootfiles.sed enable-qmail
+SUB_LIST+= ECHO_CMD=${ECHO_CMD}
PKGINSTALL?= ${WRKDIR}/pkg-install
.if defined(PKGMESSAGE_SUFFIX)
diff --git a/mail/qmail/files/auth.patch.patch-tls b/mail/qmail/files/auth.patch.patch-tls
index 7e59739051a4..e0ccd8b361bc 100644
--- a/mail/qmail/files/auth.patch.patch-tls
+++ b/mail/qmail/files/auth.patch.patch-tls
@@ -35,7 +35,7 @@
socket.lib`
qmail-smtpd.0: \
-@@ -174,30 +176,38 @@
+@@ -174,30 +176,40 @@
stralloc greeting = {0};
***************
@@ -55,7 +55,7 @@
- void smtp_rset()
---- 241,255 ----
- }
-+--- 277,298 ----
++--- 277,300 ----
void smtp_ehlo(arg) char *arg;
{
-! smtp_greet("250-");
@@ -63,16 +63,18 @@
+ smtp_greet("250-");
++ #ifdef AUTHCRAM
+ #ifdef TLS
-+! if (!ssl) out("\r\n250-STARTTLS AUTH LOGIN CRAM-MD5 PLAIN");
-+! if (!ssl) out("\r\n250-STARTTLS AUTH=LOGIN CRAM-MD5 PLAIN");
++! if (!ssl) out("\r\n250-AUTH LOGIN CRAM-MD5 PLAIN");
++! if (!ssl) out("\r\n250-AUTH LOGIN CRAM-MD5 PLAIN");
++! if (!ssl) out("\r\n250-STARTTLS");
+! #else
! out("\r\n250-AUTH LOGIN CRAM-MD5 PLAIN");
! out("\r\n250-AUTH=LOGIN CRAM-MD5 PLAIN");
+! #endif
+! #else
+! #ifdef TLS
-+! if (!ssl) out("\r\n250-STARTTLS AUTH LOGIN PLAIN");
-+! if (!ssl) out("\r\n250-STARTTLS AUTH=LOGIN PLAIN");
++! if (!ssl) out("\r\n250-AUTH LOGIN PLAIN");
++! if (!ssl) out("\r\n250-AUTH=LOGIN PLAIN");
++! if (!ssl) out("\r\n250-STARTTLS");
! #else
! out("\r\n250-AUTH LOGIN PLAIN");
! out("\r\n250-AUTH=LOGIN PLAIN");