Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Installing and configuring dkim-milter for use with postfix
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
echto
Tux's lil' helper
Tux's lil' helper


Joined: 30 Jun 2002
Posts: 107

PostPosted: Sat Aug 30, 2008 11:25 pm    Post subject: Installing and configuring dkim-milter for use with postfix Reply with quote

Installing and configuring dkim-milter for use with Postfix.

Requirements.
1. postfix >=2.3
2. bind
3. dkim-milter

Install.
1. echo "mail-filter/dkim-milter" >> /etc/portage/package.unmask

2. echo "mail-filter/dkim-milter ~x86" >> /etc/portage/package.use

3. emerge mail-filter/dkim-milter

4. During the emerge, the group 'milter' will be added to /etc/group. Edit /etc/group and add postfix to the milter group.

5. Create your domain keys.

emerge --config mail-filter/dkim-milter

6. Edit the following items in /etc/mail/dkim-filter/dkim-filter.conf
Domain my-domain.com
Keyfile /etc/mail/dkim-filter/my-domain.com.private <- this private key was created during the above step.
Selector my-domain.com

7. Edit /etc/postfix/mail.cf and add the following.

smtpd_milters = unix:/var/run/dkim-filter/dkim-filter.sock
non_smtpd_milters = unix:/var/run/dkim-filter/dkim-filter.sock

8. Edit your dns record and add the TXT record displayed after executing step 5 above.

my-domain.com._domainkey IN TXT "v=DKIM1; g=*; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDPFbk/QnQy5ojAFZzngtCagVkIUZGSEx0z112e5GL5ZUakk1rlgOKsUKWcT54kC4cDcpyxp7ptHtnJWTdEd69s2aiOxVdSaoL2wnNVgnNqdSOThtJoBpAchFxhIYJ+wVJ8vpi99X/wm+wyOi39sP+d8BbNaQLHCq2d3sA45ziGjQIDAQAB" ; ----- DKIM my-domain.com for example.com

9. Restart bind

/etc/init.d/named restart

10. Add dkim-milter to the default profile

rc-update add dkim-milter default

10. Start dkim-milter

/etc/init.d/dkim-milter start

11. Restart postfix

/etc/init.d/postfix restart

Troubleshooting.

Q. When sending email I see the following error message in /var/log/mail.log

postfix/smtpd[27052]: warning: connect to Milter service unix:/var/run/dkim-filter/dkim-filter.sock: No such file or directory

A. Make sure postfix has been added to the milter group in /etc/group. See step 4 above.
Back to top
View user's profile Send private message
Casshan
n00b
n00b


Joined: 07 May 2004
Posts: 53

PostPosted: Mon Sep 01, 2008 9:15 am    Post subject: Reply with quote

Can this be done with multiple domains (configured in mysql)?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum