ports/50866: [PATCH] Introduce patch to qmail-1.03 to send mail through SMTP-AUTH

Alex Kiesel kiesel at schlund.de
Sat Apr 12 14:40:06 UTC 2003


>Number:         50866
>Category:       ports
>Synopsis:       [PATCH] Introduce patch to qmail-1.03 to send mail through SMTP-AUTH
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr 12 07:40:04 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Alex Kiesel
>Release:        FreeBSD 4.8-RELEASE i386
>Organization:
>Environment:
System: FreeBSD alex.i.schlund.de 4.8-RELEASE FreeBSD 4.8-RELEASE #0: Fri Apr 11 16:29:20 CEST 2003 root at alex.i.schlund.de:/usr/obj/usr/src/sys/KNORKE i386


	
>Description:
    This pr introduces a new Makefile-define to enable a patch that makes qmail
    send mail going to a remote relaying server through AUTH SMTP.
	
>How-To-Repeat:
    cd /usr/ports/mail/qmail && patch < qmail.diff
	
>Fix:

	

--- qmail.diff begins here ---
diff -urN qmail-old/Makefile qmail/Makefile
--- qmail-old/Makefile	Wed Mar  5 05:07:35 2003
+++ qmail/Makefile	Sat Apr 12 15:48:38 2003
@@ -118,6 +118,10 @@
 .if defined(WITH_OUTGOINGIP_PATCH)&&!defined(MAIN_QMAIL_PORT_WITH_OUTGOINGIP_PATCH_BARRIER)
 PATCHFILES+=	outgoingip.patch
 .endif # WITH_OUTGOINGIP_PATCH && !MAIN_QMAIL_PORT_WITH_OUTGOINGIP_PATCH_BARRIER
+.if defined(WITH_CLIENT_SMTPAUTH)
+PATCH_SITES+=	http://document-root.de/patch/qmail-client-smtp-auth/:csa
+PATCHFILES+=	qmail-smtp-auth.patch:csa
+.endif # WITH_CLIENT_SMTPAUTH
 
 MAINTAINER=	lioux at FreeBSD.org
 COMMENT?=	A SECURE, reliable, efficient, simple, and FAST MTA for UNIX systems
@@ -238,6 +242,12 @@
 	@${ECHO_MSG} "				used by qmail when sending"
 	@${ECHO_MSG} "				outgoing messages"
 .endif # MAIN_QMAIL_PORT_WITH_OUTGOINGIP_PATCH_BARRIER
+.if !defined(WITH_CLIENT_SMTPAUTH)
+	@${ECHO_MSG} "WITH_CLIENT_SMTPAUTH=yes  enable patch to qmail to"
+	@${ECHO_MSG} "                          send outgoing relayed mail for"
+	@${ECHO_MSG} "                          one or all users with given"
+	@${ECHO_MSG} "                          credential by SMTP AUTH"
+.endif
 	@${ECHO_MSG} "#"
 .endif # MAIN_QMAIL_PORT_BUILD_WITH_OPTIONS_ADVERTISE_BARRIER
 
@@ -320,6 +330,9 @@
 	@${ECHO}
 	@${SED} s!/var/qmail!${PREFIX}!g ${PKGMESSAGE} | ${FMT}
 
+.if defined(WITH_CLIENT_SMTPAUTH)
+	@${INSTALL_DATA} ${FILESDIR}/smtproutes_users ${PREFIX}/control/
+.endif
 # hack to allow slave ports to include bsd.port.pre.mk and then this file
 .if defined(_PREMKINCLUDED)
 .include <bsd.port.post.mk>
diff -urN qmail-old/distinfo qmail/distinfo
--- qmail-old/distinfo	Wed Mar  5 05:07:35 2003
+++ qmail/distinfo	Sat Apr 12 15:51:04 2003
@@ -7,3 +7,4 @@
 MD5 (big-todo.103.patch) = 39b6f70f65056472ff97ab40c1dba7b4
 MD5 (big-concurrency.patch) = 2ff58c3570870a8ff9a1d9eb9aec05a6
 MD5 (outgoingip.patch) = 4286231d925105b6c71a91d668778eb5
+MD5 (qmail-smtp-auth.patch) = 458133d17dcfc6aae4ce894b349716d7
diff -urN qmail-old/files/smtproutes_users qmail/files/smtproutes_users
--- qmail-old/files/smtproutes_users	Thu Jan  1 01:00:00 1970
+++ qmail/files/smtproutes_users	Sat Apr 12 15:09:01 2003
@@ -0,0 +1,6 @@
+#adress:mailserver|username|password
+#example:
+mail at example.com:smtp.example.com|example.com1|examplePasswd
+info at example.com:smtp.example.com|example.com2|anotherPasswd
+anotherport at example.com:smtp.example.com:26|example.com3|justfoobar
+
--- qmail.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list