summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mail-mta/postfix/files')
-rw-r--r--mail-mta/postfix/files/CVS/Entries7
-rw-r--r--mail-mta/postfix/files/CVS/Repository1
-rw-r--r--mail-mta/postfix/files/CVS/Root1
-rw-r--r--mail-mta/postfix/files/mailer.conf11
-rw-r--r--mail-mta/postfix/files/postfix-2.0.9-get-FQDN.patch32
-rw-r--r--mail-mta/postfix/files/postfix-2.5.1-strncmp.patch48
-rw-r--r--mail-mta/postfix/files/postfix-master.cf.patch20
-rw-r--r--mail-mta/postfix/files/postfix.rc6.2.2.929
-rw-r--r--mail-mta/postfix/files/postfix.rc6.2.541
-rw-r--r--mail-mta/postfix/files/smtp.pass3
-rw-r--r--mail-mta/postfix/files/smtp.sasl2
11 files changed, 195 insertions, 0 deletions
diff --git a/mail-mta/postfix/files/CVS/Entries b/mail-mta/postfix/files/CVS/Entries
new file mode 100644
index 0000000..9216f52
--- /dev/null
+++ b/mail-mta/postfix/files/CVS/Entries
@@ -0,0 +1,7 @@
+/mailer.conf/1.5/Tue Jul 5 01:04:50 2005//
+/postfix-2.0.9-get-FQDN.patch/1.2/Wed Jun 30 21:07:57 2004//
+/postfix-master.cf.patch/1.1/Fri Apr 7 16:00:47 2006//
+/smtp.pass/1.2/Sun Jul 18 03:26:56 2004//
+/smtp.sasl/1.2/Sun Jul 18 03:26:56 2004//
+/postfix.rc6.2.2.9/1.2/Tue Sep 25 14:25:07 2007//
+D
diff --git a/mail-mta/postfix/files/CVS/Repository b/mail-mta/postfix/files/CVS/Repository
new file mode 100644
index 0000000..587c83f
--- /dev/null
+++ b/mail-mta/postfix/files/CVS/Repository
@@ -0,0 +1 @@
+gentoo-x86/mail-mta/postfix/files
diff --git a/mail-mta/postfix/files/CVS/Root b/mail-mta/postfix/files/CVS/Root
new file mode 100644
index 0000000..7543cd2
--- /dev/null
+++ b/mail-mta/postfix/files/CVS/Root
@@ -0,0 +1 @@
+:ext:falco@cvs.gentoo.org:/var/cvsroot
diff --git a/mail-mta/postfix/files/mailer.conf b/mail-mta/postfix/files/mailer.conf
new file mode 100644
index 0000000..4662958
--- /dev/null
+++ b/mail-mta/postfix/files/mailer.conf
@@ -0,0 +1,11 @@
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/files/mailer.conf,v 1.5 2005/07/05 01:04:50 ticho Exp $
+# $OpenBSD: mailer.conf,v 1.3 2000/04/06 18:24:19 millert Exp $
+
+# Execute the "real" sendmail program from postfix,
+# named /usr/sbin/sendmail.postfix
+#
+sendmail /usr/sbin/sendmail.postfix
+send-mail /usr/sbin/sendmail.postfix
+mailq /usr/sbin/sendmail.postfix
+newaliases /usr/sbin/sendmail.postfix
+rmail /usr/bin/rmail.postfix
diff --git a/mail-mta/postfix/files/postfix-2.0.9-get-FQDN.patch b/mail-mta/postfix/files/postfix-2.0.9-get-FQDN.patch
new file mode 100644
index 0000000..06336d4
--- /dev/null
+++ b/mail-mta/postfix/files/postfix-2.0.9-get-FQDN.patch
@@ -0,0 +1,32 @@
+--- postfix-2.0.9/src/util/get_hostname.c.orig 2003-04-28 13:15:08.000000000 +0200
++++ postfix-2.0.9/src/util/get_hostname.c 2003-04-28 13:36:47.000000000 +0200
+@@ -33,6 +33,7 @@
+ #include <sys/param.h>
+ #include <string.h>
+ #include <unistd.h>
++#include <netdb.h>
+
+ #if (MAXHOSTNAMELEN < 256)
+ #undef MAXHOSTNAMELEN
+@@ -55,6 +56,7 @@
+ const char *get_hostname(void)
+ {
+ char namebuf[MAXHOSTNAMELEN + 1];
++ struct hostent *hp;
+
+ /*
+ * The gethostname() call is not (or not yet) in ANSI or POSIX, but it is
+@@ -66,9 +68,11 @@
+ if (gethostname(namebuf, sizeof(namebuf)) < 0)
+ msg_fatal("gethostname: %m");
+ namebuf[MAXHOSTNAMELEN] = 0;
+- if (valid_hostname(namebuf, DO_GRIPE) == 0)
++ if (!(hp = gethostbyname(namebuf)))
++ msg_fatal("gethostbyname(\"%s\") does not resolve as a fully qualified domain name.", namebuf);
++ if (valid_hostname(hp->h_name, DO_GRIPE) == 0)
+ msg_fatal("unable to use my own hostname");
+- my_host_name = mystrdup(namebuf);
++ my_host_name = mystrdup(hp->h_name);
+ }
+ return (my_host_name);
+ }
diff --git a/mail-mta/postfix/files/postfix-2.5.1-strncmp.patch b/mail-mta/postfix/files/postfix-2.5.1-strncmp.patch
new file mode 100644
index 0000000..7673a98
--- /dev/null
+++ b/mail-mta/postfix/files/postfix-2.5.1-strncmp.patch
@@ -0,0 +1,48 @@
+diff -uNr -r postfix-2.5.1-orig/src/sendmail/sendmail.c postfix-2.5.1/src/sendmail/sendmail.c
+--- postfix-2.5.1-orig/src/sendmail/sendmail.c 2008-01-09 14:59:40.000000000 +0100
++++ postfix-2.5.1/src/sendmail/sendmail.c 2008-03-14 19:23:25.405275019 +0100
+@@ -1046,7 +1046,7 @@
+ mode = SM_MODE_MAILQ;
+ } else if (strcmp(argv[0], "newaliases") == 0) {
+ mode = SM_MODE_NEWALIAS;
+- } else if (strcmp(argv[0], "smtpd") == 0) {
++ } else if (strncmp(argv[0], "smtpd", 5) == 0) {
+ mode = SM_MODE_DAEMON;
+ } else {
+ mode = SM_MODE_ENQUEUE;
+diff -uNr -r postfix-2.5.1-orig/src/smtp/smtp.c postfix-2.5.1/src/smtp/smtp.c
+--- postfix-2.5.1-orig/src/smtp/smtp.c 2008-01-15 01:41:46.000000000 +0100
++++ postfix-2.5.1/src/smtp/smtp.c 2008-03-14 19:23:25.405275019 +0100
+@@ -962,7 +962,7 @@
+ TLS_CLIENT_INIT(&props,
+ log_level = var_smtp_tls_loglevel,
+ verifydepth = var_smtp_tls_scert_vd,
+- cache_type = strcmp(var_procname, "smtp") == 0 ?
++ cache_type = strncmp(var_procname, "smtp", 4) == 0 ?
+ TLS_MGR_SCACHE_SMTP : TLS_MGR_SCACHE_LMTP,
+ cert_file = var_smtp_tls_cert_file,
+ key_file = var_smtp_tls_key_file,
+@@ -1058,7 +1058,7 @@
+ /*
+ * XXX At this point, var_procname etc. are not initialized.
+ */
+- smtp_mode = (strcmp(sane_basename((VSTRING *) 0, argv[0]), "smtp") == 0);
++ smtp_mode = (strncmp(sane_basename((VSTRING *) 0, argv[0]), "smtp", 4) == 0);
+
+ /*
+ * Initialize with the LMTP or SMTP parameter name space.
+diff -uNr -r postfix-2.5.1-orig/src/smtp/smtp_state.c postfix-2.5.1/src/smtp/smtp_state.c
+--- postfix-2.5.1-orig/src/smtp/smtp_state.c 2006-01-06 01:07:36.000000000 +0100
++++ postfix-2.5.1/src/smtp/smtp_state.c 2008-03-14 19:23:44.896995323 +0100
+@@ -86,9 +86,9 @@
+ * form, and then to transform from the internal form to external forms Y
+ * and Z.
+ */
+- if (strcmp(var_procname, "lmtp") == 0) {
++ if (strncmp(var_procname, "lmtp", 4) == 0) {
+ state->misc_flags |= SMTP_MISC_FLAG_USE_LMTP;
+- } else if (strcmp(var_procname, "smtp") == 0) {
++ } else if (strncmp(var_procname, "smtp", 4) == 0) {
+ /* void */
+ } else {
+ msg_fatal("unexpected process name \"%s\" - "
diff --git a/mail-mta/postfix/files/postfix-master.cf.patch b/mail-mta/postfix/files/postfix-master.cf.patch
new file mode 100644
index 0000000..fa53dd1
--- /dev/null
+++ b/mail-mta/postfix/files/postfix-master.cf.patch
@@ -0,0 +1,20 @@
+--- conf/master.cf.orig 2006-03-02 10:57:19.000000000 -0800
++++ conf/master.cf 2006-03-02 11:08:03.000000000 -0800
+@@ -60,11 +60,15 @@
+ # The Cyrus deliver program has changed incompatibly, multiple times.
+ #
+ old-cyrus unix - n n - - pipe
+- flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
++ flags=R user=cyrus argv=/usr/lib/cyrus/deliver -e -m ${extension} ${user}
+ # Cyrus 2.1.5 (Amos Gouaux)
+ # Also specify in main.cf: cyrus_destination_recipient_limit=1
+ cyrus unix - n n - - pipe
+- user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
++ flags=hu user=cyrus argv=/usr/lib/cyrus/deliver -e -r ${sender} -m ${extension} ${user}
++# Cyrus with "virtdomains: yes"
++# Also specify in main.cf: virtual_transport = virt-cyrus
++virt-cyrus unix - n n - - pipe
++ flags=hu user=cyrus argv=/usr/lib/cyrus/deliver -e -r ${sender} -m ${recipient} ${user}
+ #
+ # See the Postfix UUCP_README file for configuration details.
+ #
diff --git a/mail-mta/postfix/files/postfix.rc6.2.2.9 b/mail-mta/postfix/files/postfix.rc6.2.2.9
new file mode 100644
index 0000000..85e6ef0
--- /dev/null
+++ b/mail-mta/postfix/files/postfix.rc6.2.2.9
@@ -0,0 +1,29 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/files/postfix.rc6.2.2.9,v 1.2 2007/07/12 08:45:12 zzam Exp $
+
+opts="${opts} reload"
+
+depend() {
+ use logger dns ypbind amavisd mysql postgresql antivirus postfix_greylist net saslauthd
+ provide mta
+}
+
+start() {
+ ebegin "Starting postfix"
+ /usr/sbin/postfix start >/dev/null 2>&1
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping postfix"
+ /usr/sbin/postfix stop >/dev/null 2>&1
+ eend $?
+}
+
+reload() {
+ ebegin "Reloading postfix"
+ /usr/sbin/postfix reload >/dev/null 2>&1
+ eend $?
+}
diff --git a/mail-mta/postfix/files/postfix.rc6.2.5 b/mail-mta/postfix/files/postfix.rc6.2.5
new file mode 100644
index 0000000..5a05d7d
--- /dev/null
+++ b/mail-mta/postfix/files/postfix.rc6.2.5
@@ -0,0 +1,41 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/files/postfix.rc6.2.2.9,v 1.2 2007/07/12 08:45:12 zzam Exp $
+
+CONF_DIR="/etc/postfix"
+CONF_OPT="${SVCNAME##*.}"
+if [[ -n ${CONF_OPT} && ${SVCNAME} != "postfix" ]]; then
+ CONF_DIR="${CONF_DIR}.${CONF_OPT}"
+fi
+
+opts="${opts} reload"
+
+depend() {
+ use logger dns ypbind amavisd mysql postgresql antivirus postfix_greylist net saslauthd
+ if [ "${SVCNAME}" == "postfix" ]; then
+ provide mta
+ fi
+}
+
+start() {
+ ebegin "Starting postfix (${CONF_DIR})"
+ if [ ! -d ${CONF_DIR} ]; then
+ eend 1 "${CONF_DIR} does not exist"
+ return 1
+ fi
+ /usr/sbin/postfix -c ${CONF_DIR} start &>/dev/null
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping postfix (${CONF_DIR})"
+ /usr/sbin/postfix -c ${CONF_DIR} stop >/dev/null 2>&1
+ eend $?
+}
+
+reload() {
+ ebegin "Reloading postfix (${CONF_DIR})"
+ /usr/sbin/postfix -c ${CONF_DIR} reload >/dev/null 2>&1
+ eend $?
+}
diff --git a/mail-mta/postfix/files/smtp.pass b/mail-mta/postfix/files/smtp.pass
new file mode 100644
index 0000000..3ccf36d
--- /dev/null
+++ b/mail-mta/postfix/files/smtp.pass
@@ -0,0 +1,3 @@
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/files/smtp.pass,v 1.2 2004/07/18 03:26:56 dragonheart Exp $
+#
+# remotehost user:password
diff --git a/mail-mta/postfix/files/smtp.sasl b/mail-mta/postfix/files/smtp.sasl
new file mode 100644
index 0000000..452fafa
--- /dev/null
+++ b/mail-mta/postfix/files/smtp.sasl
@@ -0,0 +1,2 @@
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/files/smtp.sasl,v 1.2 2004/07/18 03:26:56 dragonheart Exp $
+pwcheck_method:pam