Created attachment 164021 [details] mail/postfix-dovecot2 slave Add a slave port for mail/postfix with dovecot2 option selected. Quick postfix+freebsd Google query suggests that this is a common setup. This is the only holdout from being able to use official binary packages on several of my email systems.
Created attachment 164022 [details] poudriere testport log
Created attachment 166408 [details] mail/postfix-dovecot2 slave
Created attachment 166409 [details] mail/postfix: add postfix-dovecot2 slave port
Created attachment 166994 [details] [patch] dovecot is supported out of the box After study the postfix HISTORY and knowing dovecot is not needed to build dovecot SASL support I will commit something like the new patch. At the moment my main issue is to find good short SASL_DESC so users are to much confused about the removal of the DOVECOT(2) OPTION. Additional help for SASL will be provided via pkg-help, there we have the ability to write more text the in the ${OPTION}_DESC line. Let me know what you think, any help with better wording is welcome.
I love this approach. As a note, in CentOS, postfix package comes with both Cyrus and Dovecot SASL support enabled: $ postconf -a cyrus dovecot If Cyrus SASL doesn't generate additional compile-time dependencies, can we enable this also? If not, Dovecot option would suit most users. I am able to test the new package with Dovecot 2.
Providing Cyrus support requires libsasl2.so (security/cyrus-sasl2). Unfortunately this is also on postfix-current not modular like cdb,pcre,*sql and a reference to libsasl2.so is linked into most every postfix binary.
I thought as much (about Cyrus). Please proceed with your plan of enabling Dovecot support universally. Could you also bump port revision so that official packages are rebuilt?
Also, tiny nit about patch: HISOTRY should probably be HISTORY.
Created attachment 167095 [details] mail/postfix: reroll ohauer's patch This is just like the other patch attached to this PR, but rerolled to apply cleanly to mail/postfix (instead of -current). One minor content change: s/always build in/always built in/.
The patch against mail/postfix that I posted passes "poudriere testport" and is currently running on one of my MTAs, sending and receiving mail with Dovecot 2 SASL.
A commit references this bug: Author: ohauer Date: Thu Feb 25 20:09:57 UTC 2016 New revision: 409551 URL: https://svnweb.freebsd.org/changeset/ports/409551 Log: - rework SASL OPTIONS Dovecot SASL does not need any dependency, from now it will be always build into postfix and the default SASL unless Cyrus is also added (there is no conflict between them) - 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 - bump PORTREVISION Many Thanks to all testers! PR: 195662 PR: 205162 Changes: head/mail/postfix/Makefile head/mail/postfix/files/pkg-install.in head/mail/postfix/files/pkg-message.in head/mail/postfix/files/postfix.in head/mail/postfix/pkg-help
A commit references this bug: Author: ohauer Date: Thu Feb 25 20:26:09 UTC 2016 New revision: 409556 URL: https://svnweb.freebsd.org/changeset/ports/409556 Log: - 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 Changes: head/mail/postfix-current/Makefile head/mail/postfix-current/distinfo head/mail/postfix-current/files/pkg-install.in head/mail/postfix-current/files/pkg-message.in head/mail/postfix-current/files/postfix.in head/mail/postfix-current/pkg-help
A commit references this bug: Author: ohauer Date: Thu Feb 25 20:33:43 UTC 2016 New revision: 409557 URL: https://svnweb.freebsd.org/changeset/ports/409557 Log: - add postfix SASL slave port to the tree Requested by many PR: 195662 PR: 205162 Changes: head/mail/Makefile head/mail/postfix-current-sasl/ head/mail/postfix-current-sasl/Makefile head/mail/postfix-sasl/ head/mail/postfix-sasl/Makefile
Hope I haven't overlooked something! Thanks for your patience!