Commit graph

80 commits

Author SHA1 Message Date
Bernard Spil
2a0aada168 mail/postfix-current: Fix x25519 kex with LibreSSL
- Add patches for LibreSSL

PR:		216790
Obtained from:	OpenBSD ports
Approved by:	ohauer (maintainer)
2017-05-20 18:49:10 +00:00
Olli Hauer
3b482a5cd9 - update to 20170129
- fix build with libressl < 2.5.x

Release Notes:
ftp://ftp.porcupine.org/mirrors/postfix-release/experimental/postfix-3.2-20170129.RELEASE_NOTES

PR:		216732
Submitted by:	Bernard Spil
Reported by:	Piotr Kubaj
Obtained from:	OpenBSD
2017-02-04 07:55:29 +00:00
Bernard Spil
2afe7aa63d mail/postfix-current: Fix runtime TLS failure with LibreSSL
- Add LibreSSL checks to <> 1.1.0 OpenSSL checks
   - Bump portrevision

PR:		212223
Submitted by:	Markus Kohlmeier <rootservice@gmail.com>
Reported by:	Markus Kohlmeier <rootservice@gmail.com>
Approved by:	ohauer (via mail)
MFH:		2016Q3
2016-08-30 06:07:10 +00:00
Olli Hauer
f7a7d51c2f - fix build on FreeBSD 12
- s/USE_OPENSSL=yes/USES=ssl/
2016-07-09 20:18:29 +00:00
Olli Hauer
b4c8d95b80 - update to 3.2-20160612
- fix build with LibreSSL [1]

20160601
        Cleanup: moved parsing of '!' operators from cidr_match.c
        to dict_cidr.c. Files: util/cidr_match.[hc], util/dict_cidr.c,
        util/match_ops.c.

20160604
        Cleanup: made parsing of '!' operators in regexp and pcre
        tables consistent with cidr tables. Files: util/dict_regexp.c,
        util/dict_pcre.c.

20160605
        Cleanup: integer wrap-around detection in the MySQL and
        PostgreSQL clients. This is totally non-critical because
        Postfix strings are size-limited by design. Files:
        global/dict_mysqql.c, global/dict_pgsql.c.

20160607
        Documentation: dnsblog.

20160609
        Documentation: postsuper(1) manpage text for multiple -[dhH]
        options.  File: postsuper/postsuper.c.

20160611
        Cleanup: Postfix SMTP server local IP address and port
        attributes in the policy delegation protocol (attribute
        names: server_address, server_port), in the Milter protocol
        (macro names: {daemon_addr}, {daemon_port}) and in the
        XCLIENT protocol (attribute names: DESTADDR, DESTPORT).
        Files: proto/MILTER_README.html, proto/SMTPD_POLICY_README.html,
        cleanup/cleanup.h, cleanup/cleanup_milter.c, global/mail_proto.h,
        milter/milter.h, smtpd/smtpd.c, smtpd/smtpd.h, smtpd/smtpd_check.c,
        smtpd/smtpd_haproxy.c, smtpd/smtpd_milter.c, smtpd/smtpd_peer.c.

20140612
        Bugfix: missing server address/port conversion. File:
        smtpd/smtpd_peer.c.

Submitted by:	brnrd@ [1]
Obtained from:	http://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/mail/postfix/stable/patches/ [1]
2016-06-12 19:04:57 +00:00
Olli Hauer
0891faea7c - update to 3.0.4
- rework SASL OPTIONS
  Dovecot SASL does not need any dependency, from now it will be always build into postfix

- EAI is now mandantory, else mails can be lost
- add support for FreeBSD 10.3 mailwrapper (install mailer.conf into LOCALBASE/mail instead /etc/mail)
- add better reload support to rc script
- display correct path in pkg-message
- add support for postfix-sasl slave port
- remove nativ SPF support, patch is no longer maintained and there are alternatives in the ports tree
- remove VDA support (seems VDA project is dead and unmaintaned)

Many Thanks to all testers!

PR:	195662
PR: 	205162
2016-02-25 20:26:08 +00:00
Olli Hauer
28eb67e0f7 - rework pkg-install and pkg-message [1]
- install postfix specific mailer.conf.postfix into DATADIR [2]

- make EAI the default, postfix will reject messages if build
  w.o. EAI and compatibility_level is set to a value >=1 [3]

- use new notation instead PATCH_DIST_STRIP

- bump PORTREVISION

1) detect if the port is installed without TERM, in this case
   do not ask the to make postfix the default mailer and respect
   the env POSTFIX_DEFAULT_MTA. This helps tools like salt,
   ansible, cfengine and puppet during the first package installation.

2) $DATADIR/mailer.conf.postfix can be used by the tools in 1)

3) Issue noted by Melissa Pilgrim by PM
   Short description of the issue:
    If compatibility_level is set to a value >= 1, then postfix set
    smtputf8_enable=yes.  For more information see
     $ postconf -d | grep compatibility_level
    and
     http://www.postfix.org/SMTPUTF8_README.html

MFH:		2016Q1
2016-01-04 10:31:51 +00:00
Olli Hauer
f11c883807 - update to version 3.0.1
- rename OPTIONS to match default name of most ports
  - SASL2 -> SASL
  - OPENLDAP -> LDAP
- install main.cf and master.cf with the @sample macro
- rework pkg-install
- fix wrong permission for /var/db/postfix [1]
- sets WANT_OPENLDAP_SASL option for openldap port when
  postfix LDAP_SASL option is set [2]
- make usage of new ${opt}_DEPENDS notation

Release 3.0.1 or 3.0.2 is now a strong candidate to become the new
default mail/postfix port (missing components are VDA and SPF).

Changelog:
20150211
	Cleanup: strncasecmp_utf8() streamlining. Files: util/stringops.h,
	util/allascii.c, util/strcasecmp_utf8.c.

20150214
	Bugfix (introduced: Postfix 3.0): missing #ifdef USE_TLS
	inside #ifdef USE_SASL_AUTH.  Viktor Dukhovni. File:
	smtpd/smtpd.c.

20150217
	Cleanup: missing <string.h> include. File: util/allascii.c.

20150221
	Bugfix (introduced: Postfix 3.0): don't append '.' to the
	DNS resource record value, when converting TXT records to
	the string form that is used used by xxx_dns_reply_filter.
	File: dns/dns_strrecord.c.

20150313
	Documentation: incorrect Postfix version number for
	postscreen_dnsbl_timeout. Quanah Gibson-Mount. File:
	postscreen/postscreen.c.

20150324
	Bugfix (introduced: Postfix 2.6): sender_dependent_relayhost_maps
	ignored the relayhost setting in the case of a DUNNO lookup
	result.  It would use the recipient domain instead.  Viktor
	Dukhovni. Wietse took the pieces of code that enforce the
	precedence of a sender-dependent relayhost, the global
	relayhost, and the recipient domain, and put that code
	together in once place so that it is easier to maintain.
	File: trivial-rewrite/resolve.c.

20150328
	Bugfix (introduced: Postfix 1.1.0): post-install expanded
	macros in parameter values when trying to detect parameter
	overrides, causing unnecessary main.cf updates during Postfix
	start-up. Julian Reich, Viktor Dukhovni, and Wietse.  File:
	conf/post-install.

20150330
	Bitrot: prepare for future changes in OpenSSL API. Viktor
	Dukhovni. File: tls_dane.c.

PR:	198215 [1]
PR:	198857 [2]
2015-05-10 15:24:31 +00:00
Olli Hauer
dfa67c29c6 - update to postfix-3.0-20150129
- fix build on FreeBSD 11 [1]
- use OPENSSL=yes instead including Mk/bsd.openssl.mk

- enable TLS as default option.
  Postfix uses a secure default configuration if TLS is not configured.

	$ postconf -d | grep use_tls
	lmtp_use_tls = no
	postscreen_use_tls = $smtpd_use_tls
	smtp_use_tls = no
	smtpd_use_tls = no
	tlsproxy_use_tls = $smtpd_use_tls

Changes:
Many fixes, improvements and cleanups. The list is really to long,
please read the original Changelog on your favor postfix mirror.

[1] Noted by sbruno@
2015-01-31 16:59:33 +00:00
Olli Hauer
803871c6ee - update to 2.12-20141228
- use new AUXLIBS_(CDB|LDAP|LMDB|MYSQL|PCRE|PGSQL) build instructions
- use OPTIONS_SUB
- install posttls-finger
- build dynamic AUXLIBS (shared=yes and dynamicmaps=yes)
- set META_DIRECTORY to DAEMONDIR (this may change in future to ETCDIR)

Parts from HISTORY (heavily shortened)

20141126
	Cleanup: report nullmx DNS records as "domain does not
	accept mail", instead of "invalid DNS response".  The Postfix
	SMTP client already bounced mail for such domains, and the
	Postfix SMTP server already rejected such domains with
	reject_unknown_sender/recipient_domain. This introduces a
	new SMTP server configuration parameter nullmx_reject_code
	(default: 556).

20141127
	Feature: DNS reply filter, configured with smtp_dns_reply_filter,

20141130
	Cleanup: when searching multiple DNS record types for a
	specific name, and not all queries return the same result
	status, do not blindly return the last query's rcode and
	diagnostic text.  Instead, return rcode and text that is
	consistent with the aggregate result status.

	Documentation: added note on Milter-signing bounces.

20141202
	Cleanup: to increase clarity. rename DNS result status from
	DNS_UNAVAIL to DNS_NULLMX. If someone uses the same zero-length
	name trick with some other resource type, then we will worry
	about that later.

20141203
	Feature: support to match UTF8 domain names against ASCII
	names in TLS certificates.

20141212
	Cleanup: nullmx SMTP reply codes 550 and 556, and enhanced
	status codes X.1.10 and X.7.27. The nullmx SMTP reply codes
	are no longer configurable.

20141224
	Cleanup: the compile-time argument typechecks for attribute-value
	APIs are now by default implemented with inline functions.
	Compile with -DNO_INLINE to implement the argument typechecks
	with ternary operators and unreachable assignments.

20141227
	Feature: smtp_address_verify_target (default: rcpt) that
	determines what protocol stage decides if a recipient is
	valid. Specify "data" for servers that reject recipients
	after the DATA command.

20141228
	Cleanup: the IDNA conversion routines now accept both
	ASCII and UTF8 inputs. The functions als verify that
	either their result is a valid ASCII domain name or that
	it converts into a valid ASCII domain name.

Approved by:	sahil (implicit)
2015-01-11 21:05:21 +00:00
Olli Hauer
03e1baa871 - update to 2.12-20141020
- use PORTDOCS macro
- remove check for OSVERSION >= 800037
- fix OPENLDAP_VER usage
- always call set-permissions in post-install to set correct spool/postfix/* permissions
  this is required with pkg to support non interrupted upgrade

Approved by:	sahil (explicit)
2014-11-02 21:09:26 +00:00
Sahil Tandon
bb4b3c10ff - Update to Postfix 2.12 snapshot 20140709 2014-07-13 16:24:44 +00:00
Sahil Tandon
050e6f6b71 - Update to Postfix 2.12 Snapshot 20140109
- Set INVALID_BDB_VER [1]
- Adopt new LIB_DEPENDS syntax [2]
- Add option to support LMDB databases [2]
- Modify shell command to quiet warnings on 10+ [3]
- Respect upstream Makefile's warning suppression [4]

PR:		[1]: ports/185446
		[2]: ports/185860
		[3]: ports/185857

Submitted by:	[1]: Eero Hanninen <fax@nohik.ee>
		[2]: Yasuhiro KIMURA <yasu@utahime.org>
		[3]: adamw
		[4]: koobs (via email)
2014-01-21 01:17:26 +00:00
Sahil Tandon
30b3d0d121 - Update to Postfix 2.11 Snapshot 20131001 2013-10-27 03:30:06 +00:00
Sahil Tandon
714053470a Update to Postfix 2.10 Snapshot 20121031 and document
incompatible changes in UPDATING.  Also, revise the
PKGINSTALL script to distinguish upgrades from fresh
installs.

Feature safe:	yes
2012-11-05 02:19:57 +00:00
Doug Barton
9aac569eaa Move the rc.d scripts of the form *.sh.in to *.in
Where necessary add $FreeBSD$ to the file

No PORTREVISION bump necessary because this is a no-op
2012-08-05 23:19:36 +00:00
Sahil Tandon
b42d22d58a - Update to 2.10-20120308
Feature safe:	yes
2012-03-10 04:11:39 +00:00
Doug Barton
83eb2c3700 In the rc.d scripts, change assignments to rcvar to use the
literal name_enable wherever possible, and ${name}_enable
when it's not, to prepare for the demise of set_rcvar().

In cases where I had to hand-edit unusual instances also
modify formatting slightly to be more uniform (and in
some cases, correct). This includes adding some $FreeBSD$
tags, and most importantly moving rcvar= to right after
name= so it's clear that one is derived from the other.
2012-01-14 08:57:23 +00:00
Sahil Tandon
c4417a4505 Update to 2.9-20120102 and eliminate a now unnecessary
part of recent UPDATING entry for this port.
2012-01-04 01:57:22 +00:00
Sahil Tandon
e3d8bcddb5 - Update to 2.9-20111219
- Modify pkg-install to handle situations in which
  /etc/mail/mailer.conf does not exist, e.g. when
  FreeBSD is built WITHOUT_MAILWRAPPER. [1]

Requested by:	miwi [1]
2011-12-21 22:45:17 +00:00
Pav Lucistnik
a0914a0295 - Remove pointyhat specific debugging
Ok'ed by:	sahil (maintainer)
Feature safe:	yes
2011-11-21 10:21:04 +00:00
Pav Lucistnik
82ad506b8d - Unmark BROKEN on amd64, the build failure observed on pointyhat is largely
unknown in real world.  Increase verbosity in postconf tool error messaging
  to aid diagnose on pointyhat

Submitted by:	Jase Thew
Feature safe:	yes
2011-11-17 19:35:14 +00:00
Martin Wilke
70c8dd6023 - Fix build on FreeBSD 10 2011-11-05 16:53:01 +00:00
Sahil Tandon
37a0b93267 - Update to 2.9-20111012 2011-10-18 01:50:41 +00:00
Sahil Tandon
b1638e7c6e - Update to 2.9-20110706
- Use ports framework to create USERS and GROUPS
- Remove unused replace() function from pkg-install
2011-07-30 01:34:47 +00:00
Sahil Tandon
4dda070150 - Update to 2.9-20110228 and modify patching for
src/util/sys_defs.h, which is updated upstream
  to be aware of the FreeBSD closefrom() support
  time window [1]

- Take maintainership [2]

PR:		ports/155176 [1]
Submitted by:	sahil (myself)
Approved by:	portmgr (linimon) [2]
2011-03-02 03:10:49 +00:00
Sahil Tandon
d188c90c03 Update to 2.9-20110219, update CONFLICTS, alphabetically
sort packing list, and tweak PKGNAMESUFFIX when INST_BASE
is defined.  Also, sync OPTIONS with mail/postfix to warn
users trying to build this port with unsupported options.

Finally, modify pkg-install script to check if Postfix is
already enabled in mailer.conf.

PR:		ports/154495
Submitted by:	ohauer
Approved by:	maintainer timeout
2011-02-20 06:21:36 +00:00
Sahil Tandon
b38c6b6747 - Update to 2.8-20100707
- Fix whitespace in Makefile header
- Refactor port to ease maintenance (adopted from mail/postfix)
- Remove unnecessary patches
- Add option to install into base

PR:		ports/147732
Submitted by:	olli hauer <ohauer@gmx.de>
Approved by:	maintainer timeout (> 14 days)
2010-07-30 03:39:18 +00:00
Doug Barton
1d6b4b3f91 Begin the process of deprecating sysutils/rc_subr by
s#. %%RC_SUBR%%#. /etc/rc.subr#
2010-03-27 00:15:24 +00:00
Marcus Alves Grando
c0b6c668ec - Update to 2.7-20091115 2009-12-04 11:52:18 +00:00
Marcus Alves Grando
ce5abe443c - Fixed build to FreeBSD 9.
- Mark as jobs safe.

PR:		138916
Submitted by:	Sylvio Cesar <scjamorim___bsd.com.br>
Feature safe:	yes
2009-09-27 16:54:58 +00:00
Marcus Alves Grando
692d72e08b - Update to 2.7-20090712
- Fix build with new closefrom(2)

Reported by:	Jorge Medina <jorge__bsdchile.cl>
2009-07-30 00:21:14 +00:00
Doug Barton
0175383f0a Fix a few "bad example" problems in the rc.d scripts that have been
propogated by copy and paste.

1. Primarily the "empty variable" default assignment, which is mostly
${name}_flags="", but fix a few others as well.
2. Where they are not already documented, add the existence of the _flags
(or other deleted empties) option to the comments, and in some cases add
comments from scratch.
3. Replace things that look like:
prefix=%%PREFIX%%
command=${prefix}/sbin/foo
to just use %%PREFIX%%. In many cases the $prefix variable is only used
once, and in some cases it is not used at all.
4. In a few cases remove ${name}_flags from command_args
5. Remove a long-stale comment about putting the port's rc.d script in
/etc/rc.d (which is no longer necessary).

No PORTREVISION bumps because all of these changes are noops.
2009-07-15 16:56:10 +00:00
Marcus Alves Grando
4333fe8951 - Update to 2.6-20090125 2009-01-26 19:51:56 +00:00
Marcus Alves Grando
84788bce1a - Update to 2.6-20080629
- Change default data_directory parameter to /var/db/postfix [1]

PR:		125133 [1]
Submitted by:	Sahil Tandon <sahil__tandon.net> [1]
2008-07-20 23:38:19 +00:00
Marcus Alves Grando
ce9f4228f6 - Update to 2.6-20080411 2008-04-13 04:03:05 +00:00
Marcus Alves Grando
47f4f0b4fc - Fix milter macros (patch from Wietse Venema) 2008-03-24 20:27:42 +00:00
Marcus Alves Grando
e574980279 - Fix data_directory. Backported from mail/postfix 2008-03-01 01:50:08 +00:00
Marcus Alves Grando
2430edd76d - Update to 2.5-20071006
- Teach postfix to 8.0 [1]

PR:		117304 [1]
Submitted by:	Oliver Peter <hoschi___mouhaha.de> [1]
2007-10-22 18:50:27 +00:00
Marcus Alves Grando
bae2311116 - Update to 2.4-20070221
- Backport PROVIDE from mail/postfix [1]

Reported by:	rafan [1]
2007-02-22 13:27:29 +00:00
Jeremy Chadwick
b9aaa3bdbe Addition of postfix_flags variable to rc.subr startup script.
This variable is passed to postfix-script on startup, allowing
administrators to do things like postfix_flags="-c /my/place/postfix"
(alternate location of main.cf and master.cf), or postfix_flags="-v"
(for verbose logging).  See postfix(1) manpage for flags.

PR:		ports/109137
Reviewed by:	Vivek Khera <vivek@khera.org>
Approved by:	philip
2007-02-20 22:36:40 +00:00
Marcus Alves Grando
86836956e1 - Update to 2.3-20060430 2006-05-09 04:46:11 +00:00
Marcus Alves Grando
f85d2ab0d4 - Update to 2.3-20060325
- Remove extra TABs in Makefile
- In default main.cf trust in host instead of subnet. [1]

Notified by:	Anton Yuzhaninov <citrin__citrin.ru>
2006-03-27 19:02:49 +00:00
Marcus Alves Grando
89bd724a1b Update to 2.3-20060112
Modify rc.d script like example in Porters Handbook.
2006-01-16 21:47:02 +00:00
Marcus Alves Grando
fd4e3518e9 Fix rc.d/postfix.sh restart adding pidfile and procname
Bump PORTREVISION

PR:		91721
Submitted by:	NIIMI Satoshi <sa2c@sa2c.net>
2006-01-12 20:38:27 +00:00
Marcus Alves Grando
dde4999407 Update to 2.3-20060103
Add rcNG script to start postfix
Update pkg-message to reflect rcNG script
2006-01-12 16:23:47 +00:00
Pav Lucistnik
0791b31d18 - Fix build on FreeBSD 7
PR:		ports/83415
Submitted by:	Marcus Grando <marcus@corp.grupos.com.br> (maintainer)
2005-07-13 21:20:08 +00:00
Pav Lucistnik
bd970779fb - Update to 2.3.20050422
PR:		ports/80235
Submitted by:	Marcus Grando <marcus@corp.grupos.com.br> (maintainer)
2005-04-23 11:24:40 +00:00
Pav Lucistnik
5d8242cb07 - Update to 2.3-20050404
PR:		ports/79777
Submitted by:	Marcus Grando <marcus@corp.grupos.com.br> (maintainer)
2005-04-11 19:22:18 +00:00
Sergey Matveychuk
436617d664 - Update to 2.3-20050308
- Changes in scripts/configure.postfix

PR:		ports/78647
Submitted by:	maintainer
2005-03-10 13:27:58 +00:00