diff options
author | 2008-07-23 07:59:32 +0000 | |
---|---|---|
committer | 2008-07-23 07:59:32 +0000 | |
commit | a68dbcf0c1020257d3d849e784f15a6e554f3866 (patch) | |
tree | 6e2bdc0864a8a0811f8f9c8dbda280084779b59f /mail-filter/postwhite/postwhite-0.1.0.ebuild | |
parent | No longer required, because the version bump is not hard masked (diff) | |
download | sunrise-a68dbcf0c1020257d3d849e784f15a6e554f3866.tar.gz sunrise-a68dbcf0c1020257d3d849e784f15a6e554f3866.tar.bz2 sunrise-a68dbcf0c1020257d3d849e784f15a6e554f3866.zip |
mail-filter/postwhite: New ebuild mail-filter/postwhite for bug 232647
svn path=/sunrise/; revision=6556
Diffstat (limited to 'mail-filter/postwhite/postwhite-0.1.0.ebuild')
-rw-r--r-- | mail-filter/postwhite/postwhite-0.1.0.ebuild | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/mail-filter/postwhite/postwhite-0.1.0.ebuild b/mail-filter/postwhite/postwhite-0.1.0.ebuild new file mode 100644 index 000000000..c98f1f95e --- /dev/null +++ b/mail-filter/postwhite/postwhite-0.1.0.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils + +DESCRIPTION="Per-recipient whitelist policy server for Postfix MTA managed entirely by emails." +HOMEPAGE="http://www.bitcetera.com/products/postwhite" +SRC_URI="http://www.bitcetera.com/download/${P}.tgz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="mail-mta/postfix + >=dev-lang/ruby-1.8.6 + dev-ruby/rubygems + dev-ruby/facets + dev-ruby/trollop" + +pkg_setup() { + enewgroup ${PN} + enewuser ${PN} -1 -1 /dev/null ${PN} +} + +src_install() { + dosbin ${PN} || die "installing binary failed" + newinitd "${FILESDIR}"/${PVR}/${PN}.init ${PN} + newconfd "${FILESDIR}"/${PVR}/${PN}.conf ${PN} + "${S}"/${PN} --prefix "${D}" configure + keepdir /etc/postfix/postwhite +} + +pkg_postinst() { + elog + elog "The following steps are necessary to hook Postwhite into the Postfix" + elog "workflow:" + elog + elog "1) List all email addresses that should be protected by Postwhite in:" + elog " /etc/postfix/postwhite/recipients.yml" + elog "2) Start the Postwhite daemon:" + elog " /etc/init.d/postwhite start" + elog "3) Add the line 'check_policy_service inet:127.0.0.1:10035,' to the" + elog " 'smtpd_recipient_restrictions' block which you find somewhere in" + elog " /etc/postfix/main.cf. You should place it near the end of the block" + elog " after all basic services (like 'reject_unauth_destination,') and" + elog " the greylist service (like Postgrey) but before the anti-SPAM services" + elog " (like DSPAM or SpamAssassin) in order to prevent unnecessary workload." + elog "4) Reload Postfix to bring your changes into effect:" + elog " /etc/init.d/postfix reload" + elog "5) Make the Postwhite daemon start at boot time:" + elog " rc-update add postwhite default" + elog + epause 5 +} |