Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 153922 - ebuild for mail-filter/dkim-milter
Summary: ebuild for mail-filter/dkim-milter
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Other
: High enhancement
Assignee: Daniel Black (RETIRED)
URL: http://sourceforge.net/projects/dkim-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-03 05:04 UTC by Eray Aslan
Modified: 2007-10-08 20:33 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild for dkim-milter-0.5.2 (dkim-milter-0.5.2.ebuild,1.94 KB, text/plain)
2006-12-28 08:10 UTC, Eray Aslan
Details
generic conf.d file to be placed under files directory for the dkim-milter ebuild (dkim-filter.conf,453 bytes, text/plain)
2006-12-28 08:12 UTC, Eray Aslan
Details
generic init.d file to be placed under files directory for the dkim-milter ebuild (dkim-filter.init,1.99 KB, text/plain)
2006-12-28 08:13 UTC, Eray Aslan
Details
helps the user create keys. taken from dk-milter ebuild. place under files dir as wel (gentxt.sh,1.45 KB, text/plain)
2006-12-28 08:14 UTC, Eray Aslan
Details
patch file for dkim-milter/Makefile.m4 (dkim-milter-0.5.2-Makefile.patch,970 bytes, text/plain)
2006-12-28 08:16 UTC, Eray Aslan
Details
patch file for libdkim/Makefile.m4 (libdkim-0.5.2-Makefile.patch,425 bytes, text/plain)
2006-12-28 08:19 UTC, Eray Aslan
Details
patch file for libdkim/Makefile.m4 (libdkim-0.5.2-Makefile.patch,425 bytes, text/plain)
2006-12-28 08:19 UTC, Eray Aslan
Details
ebuild for dkim-milter 0.7.1 (dkim-milter-0.7.1.ebuild,1.88 KB, text/plain)
2007-05-14 09:50 UTC, Eray Aslan
Details
/etc/conf.d/dkim-filter file (dkim-filter.conf,453 bytes, text/plain)
2007-05-14 09:51 UTC, Eray Aslan
Details
/etc/init.d/dkim-filter file (dkim-filter.init,2.00 KB, text/plain)
2007-05-14 09:52 UTC, Eray Aslan
Details
config file for gentoo (site.config.m4,4.65 KB, text/plain)
2007-05-14 09:52 UTC, Eray Aslan
Details
dkim-milter-1.0.0.ebuild (dkim-milter-1.0.0.ebuild,2.17 KB, text/plain)
2007-06-10 18:24 UTC, Eray Aslan
Details
files/site.config.m4 file (site.config.m4,4.84 KB, text/plain)
2007-06-10 18:24 UTC, Eray Aslan
Details
dkim-milter-1.0.0.ebuild (dkim-milter-1.0.0.ebuild,2.01 KB, text/plain)
2007-06-11 06:49 UTC, Eray Aslan
Details
files/dkim-filter.conf (dkim-filter.conf,831 bytes, text/plain)
2007-06-11 06:49 UTC, Eray Aslan
Details
files/dkim-filter.init (dkim-filter.init,2.11 KB, text/plain)
2007-06-11 06:50 UTC, Eray Aslan
Details
version bump (dkim-milter-1.2.0.ebuild,2.01 KB, text/plain)
2007-07-11 09:21 UTC, Eray Aslan
Details
site.config.m4 version bump (site.config.m4,4.78 KB, text/plain)
2007-07-11 09:21 UTC, Eray Aslan
Details
dkim-milter-2.0.0.ebuild (dkim-milter-2.0.0.ebuild,2.01 KB, text/plain)
2007-08-01 15:36 UTC, Eray Aslan
Details
site.config.m4 for version 2.0.0 (site.config.m4,5.21 KB, text/plain)
2007-08-01 15:37 UTC, Eray Aslan
Details
dkim-filter.conf (dkim-filter.conf,1.13 KB, text/plain)
2007-10-08 20:33 UTC, Eray Aslan
Details
dkim-filter.init (dkim-filter.init,2.57 KB, text/plain)
2007-10-08 20:33 UTC, Eray Aslan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eray Aslan gentoo-dev 2006-11-03 05:04:54 UTC
With added support in Postfix 2.3 for a milter protocol, it became possible to use with Postfix many of existing milters (mail filters) that were originally developed with sendmail in mind.  Two popular ones are dkim-milter offering support for DomainKeys Identified Mail (DKIM) Signatures, and dk-milter, offering support for Domain-based Email Authentication (DomainKeys). 

Gentoo has an ebuild for dk-milter but not for the (more advanced?) dkim-milter.
Comment 1 Eray Aslan gentoo-dev 2006-12-28 08:10:15 UTC
Created attachment 104854 [details]
ebuild for dkim-milter-0.5.2
Comment 2 Eray Aslan gentoo-dev 2006-12-28 08:12:51 UTC
Created attachment 104855 [details]
generic conf.d file to be placed under files directory for the dkim-milter ebuild
Comment 3 Eray Aslan gentoo-dev 2006-12-28 08:13:23 UTC
Created attachment 104856 [details]
generic init.d file to be placed under files directory for the dkim-milter ebuild
Comment 4 Eray Aslan gentoo-dev 2006-12-28 08:14:49 UTC
Created attachment 104857 [details]
helps the user create keys.  taken from dk-milter ebuild.  place under files dir as wel
Comment 5 Eray Aslan gentoo-dev 2006-12-28 08:16:34 UTC
Created attachment 104859 [details]
patch file for dkim-milter/Makefile.m4
Comment 6 Eray Aslan gentoo-dev 2006-12-28 08:19:33 UTC
Created attachment 104860 [details]
patch file for libdkim/Makefile.m4
Comment 7 Eray Aslan gentoo-dev 2006-12-28 08:19:33 UTC
Created attachment 104861 [details]
patch file for libdkim/Makefile.m4
Comment 8 Eray Aslan gentoo-dev 2006-12-28 22:50:26 UTC
(In reply to comment #7)
> Created an attachment (id=104861) [edit]
> patch file for libdkim/Makefile.m4

Sorry for the duplicate file.  Anyway that is all the files needed for the ebuild.
Comment 9 Tomislav Filipcic 2007-01-03 15:01:15 UTC
Are the Domainkeys and DKIM keys the same? I'm asking since you included the key generator from dk-milter.

also it would be good the change the bug summary to "mail-filter/dkim-milter ebuild" or something like that.
Comment 10 Eray Aslan gentoo-dev 2007-01-03 22:40:59 UTC
(In reply to comment #9)
> Are the Domainkeys and DKIM keys the same? I'm asking since you included the
> key generator from dk-milter.

The key specs are the same AFAIK.  I don't see any reason why one would want to use different keys for dk-milter and dkim-milter.  It would result in an extra DNS lookup on the receiving side.  gentxt.sh is just a shell script to generate the keys.  Run it twice with different $selector values if you want to use different keys for dk-milter and dkim-milter.

> also it would be good the change the bug summary to "mail-filter/dkim-milter
> ebuild" or something like that.

Done.
Comment 11 Benny Pedersen 2007-05-10 00:57:43 UTC
can you get the dkim-filter to sign and verify ?

i have setup domainkey and only domainkeys signs here even dkim have -b sv

there is a 0.6.0 now if that matters with my problem, nice you maked the hardwork on initial ebuild here, let make it stable together
Comment 12 Eray Aslan gentoo-dev 2007-05-14 09:48:52 UTC
(In reply to comment #11)
> can you get the dkim-filter to sign and verify ?

You can use dkim-milter to sign and verify DKIM signatures.  If you cannot, check your mail flow and mta settings.

If on the other hand, you want to use dkim-milter to verify domainkeys signatures, you need to copy libdk directory (from dk-milter) and change a few config files.  In other words, it is possible but I didn't bother with it because I ran into problems with dk-milter on amd64.  Another mail server with x86 arch is signing the domainkeys signatures for us.

You can also use dev-perl/Mail-DKIM to verify domainkeys signatures if you are using spamassassin.

> i have setup domainkey and only domainkeys signs here even dkim have -b sv
> there is a 0.6.0 now if that matters with my problem, nice you maked the
> hardwork on initial ebuild here, let make it stable together

Attached is the ebuild I use for dkim-milter-0.7.1
Comment 13 Eray Aslan gentoo-dev 2007-05-14 09:50:17 UTC
Created attachment 119194 [details]
ebuild for dkim-milter 0.7.1
Comment 14 Eray Aslan gentoo-dev 2007-05-14 09:51:21 UTC
Created attachment 119196 [details]
/etc/conf.d/dkim-filter file
Comment 15 Eray Aslan gentoo-dev 2007-05-14 09:52:06 UTC
Created attachment 119198 [details]
/etc/init.d/dkim-filter file
Comment 16 Eray Aslan gentoo-dev 2007-05-14 09:52:52 UTC
Created attachment 119202 [details]
config file for gentoo
Comment 17 Andrew Ross (RETIRED) gentoo-dev 2007-06-10 09:27:24 UTC
Instead of passing MANROOT=/usr/share/man/man to make during src_install, consider setting confMANROOT in the site config file - see http://www.erikberg.com/notes/dkimsiteconfigm4.html for an example of this.
Comment 18 Eray Aslan gentoo-dev 2007-06-10 18:22:15 UTC
(In reply to comment #17)
> Instead of passing MANROOT=/usr/share/man/man to make during src_install,
> consider setting confMANROOT in the site config file - see
> http://www.erikberg.com/notes/dkimsiteconfigm4.html for an example of this.

Right.  See the attached files and thanks for the comment.
Comment 19 Eray Aslan gentoo-dev 2007-06-10 18:24:10 UTC
Created attachment 121684 [details]
dkim-milter-1.0.0.ebuild
Comment 20 Eray Aslan gentoo-dev 2007-06-10 18:24:52 UTC
Created attachment 121685 [details]
files/site.config.m4 file
Comment 21 Tomislav Filipcic 2007-06-10 19:05:14 UTC
I think the configuration directory should be set to dkim-filter. If anyone is using dk-filter they can use a symbolic link.
Comment 22 Eray Aslan gentoo-dev 2007-06-11 06:46:14 UTC
(In reply to comment #21)
> I think the configuration directory should be set to dkim-filter. If anyone is
> using dk-filter they can use a symbolic link.

Well, it's up to the devs really but I agree now that dkim-milter looks like the way to go rather than dk-milter.  Trivial change.  Will upload the files.
Comment 23 Eray Aslan gentoo-dev 2007-06-11 06:49:00 UTC
Created attachment 121726 [details]
dkim-milter-1.0.0.ebuild
Comment 24 Eray Aslan gentoo-dev 2007-06-11 06:49:45 UTC
Created attachment 121727 [details]
files/dkim-filter.conf
Comment 25 Eray Aslan gentoo-dev 2007-06-11 06:50:13 UTC
Created attachment 121728 [details]
files/dkim-filter.init
Comment 26 Eray Aslan gentoo-dev 2007-06-11 07:45:35 UTC
Also please check http://bugs.gentoo.org/show_bug.cgi?id=178501 for an updated libmilter ebuild with possible poll() support.
Comment 27 Tomislav Filipcic 2007-06-11 13:45:29 UTC
Works for me(tm) on amd64.
Comment 28 Eray Aslan gentoo-dev 2007-07-11 09:21:08 UTC
Created attachment 124532 [details]
version bump
Comment 29 Eray Aslan gentoo-dev 2007-07-11 09:21:58 UTC
Created attachment 124534 [details]
site.config.m4 version bump
Comment 30 Eray Aslan gentoo-dev 2007-08-01 15:36:25 UTC
Created attachment 126618 [details]
dkim-milter-2.0.0.ebuild
Comment 31 Eray Aslan gentoo-dev 2007-08-01 15:37:04 UTC
Created attachment 126619 [details]
site.config.m4 for version 2.0.0
Comment 32 Daniel Black (RETIRED) gentoo-dev 2007-10-06 13:41:19 UTC
many thanks Eray,

Added with a couple of changes. please tell me if you disagree with any.

thoughts - given it could be an incoming only service there is really no need
to enforce a key creation in the init script?
Comment 33 Daniel Black (RETIRED) gentoo-dev 2007-10-06 13:41:56 UTC
enjoy
Comment 34 Eray Aslan gentoo-dev 2007-10-08 06:07:43 UTC
(In reply to comment #32)
> many thanks Eray,
> Added with a couple of changes. please tell me if you disagree with any.

Thanks for the commit.  Version 2.3.0 is out by the way.

> thoughts - given it could be an incoming only service there is really no need
> to enforce a key creation in the init script?

Perhaps you can make key creation optional with a local USE flag?  Anyway, I think either way is fine.
Comment 35 Daniel Black (RETIRED) gentoo-dev 2007-10-08 08:48:31 UTC
> Thanks for the commit.  Version 2.3.0 is out by the way.
k added. must have justed missed that release.
> 
> > thoughts - given it could be an incoming only service there is really no need
> > to enforce a key creation in the init script?
> 
> Perhaps you can make key creation optional with a local USE flag?  Anyway, I
> think either way is fine.

My preference would be an init script that does a warning (disabled with a conf.d option) when validating only.

Haven't had the effort to implement this of course.
Comment 36 Eray Aslan gentoo-dev 2007-10-08 20:31:37 UTC
(In reply to comment #35)
> > Perhaps you can make key creation optional with a local USE flag?  Anyway, I
> > think either way is fine.
> My preference would be an init script that does a warning (disabled with a
> conf.d option) when validating only.

I am not sure if I understand you correctly but attached (lighly tested) dkim-filter.init and dkim-filter.conf files will not refuse to start with key file missing error if dkim-milter is in verify only mode.

You will have to comment out the line that forces key generation for all users in the dkim ebuild.  Hence key generation will be optional and will be left to the sysadmin.

Please comment if this was not what you were asking.
Comment 37 Eray Aslan gentoo-dev 2007-10-08 20:33:06 UTC
Created attachment 132961 [details]
dkim-filter.conf
Comment 38 Eray Aslan gentoo-dev 2007-10-08 20:33:32 UTC
Created attachment 132962 [details]
dkim-filter.init