Friday, October 18, 2013

Fedora 19 - DKiM & sendmaiL


# rpm -qa | grep dkim
   dkim-milter-2.8.3-13.fc19.x86_64

#which dkim-genkey
   /usr/sbin/dkim-genkey

systemctl is-enabled dkim-milter
# systemctl enable dkim-milter.service
dkim-milter.service is not a native service, redirecting to /sbin/chkconfig.
Executing /sbin/chkconfig dkim-milter on

# systemctl is-enabled dkim-milter.service
dkim-milter.service is not a native service, redirecting to /sbin/chkconfig.
Executing /sbin/chkconfig dkim-milter --level=5
enabled

#dkim-genkey -d mymailserver.com
#cat default.txt >> /var/named/chroot/var/named/mymailserver.com

mv default.private /etc/mail/dkim-milter/mymailserver.com_default.key.pem

chown dkim-milter:dkim-milter /etc/mail/dkim-milter/mymailserver.com_default.key.pem



# cat /var/log/maillog | grep dkim

~ ~ ~ 

www.rickwargo.com/2010/11/19/configuring-dkim-and-sendmail-on-fedora-13/

[root@nut ~]# yum install dkim-milter

Loaded plugins: langpacks, refresh-packagekit
adobe-linux-x86_64                                                                           
fedora-chromium-stable                                                                       
google-chrome                                                                                  
updates/19/x86_64/metalink                                                                
Resolving Dependencies
--> Running transaction check
---> Package dkim-milter.x86_64 0:2.8.3-13.fc19 will be installed
--> Processing Dependency: libmilter.so.1.0()(64bit) for package: dkim-milter-2.8.3-13.fc19.x86_64
--> Running transaction check
---> Package sendmail-milter.x86_64 0:8.14.7-1.fc19 will be installed
--> Finished Dependency Resolution

Dependencies Resolved


==========================================================================

 Package                           Arch                     Version                           Repository                Size
==========================================================================
Installing:
 dkim-milter                       x86_64                   2.8.3-13.fc19                     fedora                   166 k
Installing for dependencies:
 sendmail-milter                   x86_64                   8.14.7-1.fc19                     fedora                    69 k

Transaction Summary

==========================================================================
Install  1 Package (+1 Dependent package)

Total download size: 235 k

Installed size: 567 k
Is this ok [y/d/N]: y
Downloading packages:
(1/2): sendmail-milter-8.14.7-1.fc19.x86_64.rpm                                              
(2/2): dkim-milter-2.8.3-13.fc19.x86_64.rpm                                                   
-----------------------------------------------------------------------------------------------------------------------------
Total                                                                                   
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : sendmail-milter-8.14.7-1.fc19.x86_64                                                                      1/2
  Installing : dkim-milter-2.8.3-13.fc19.x86_64                                                                           2/2
  Verifying  : dkim-milter-2.8.3-13.fc19.x86_64                                                                           1/2
  Verifying  : sendmail-milter-8.14.7-1.fc19.x86_64                                                                      2/2

Installed:

  dkim-milter.x86_64 0:2.8.3-13.fc19

Dependency Installed:

  sendmail-milter.x86_64 0:8.14.7-1.fc19

Complete!

[root@nut ~]#

dkim-milter package comes with dkim-genkey utility located in /usr/sbin : 

[root@nut ~]# which dkim-genkey
/usr/sbin/dkim-genkey
[root@nut ~]#

[root@nut ~]# ls /etc/mail/dkim-milter/
dkim-filter.conf  keys
[root@nut ~]#

[root@nut ~]# ls /etc/mail/dkim-milter/keys/
keylist
[root@nut ~]#

[root@nut ~]#
[root@nut ~]# cat /etc/mail/dkim-milter/keys/keylist
# sender-pattern:signing-domain:keypath
# *:example.com:selector
[root@nut ~]#


Configuring DKIM and Sendmail on Fedora 13


www.cesafaci.ro/tutoriale/sendmail-cu-dkim-pe-centos-fedora-19.html
www.mylinuxtips.info/linuxtipstutorials/setup-dkim-keys-with-sendmail/


No comments:

Post a Comment