Sponsored Content
Operating Systems Linux Red Hat Problems getting DKIM to wotk on Red Hat Post 302844659 by caspersgrin on Monday 19th of August 2013 03:19:37 PM
Old 08-19-2013
Problems getting DKIM to wotk on Red Hat

We are setting up DKIM to sign outgoing messages only. We have three mail servers, one is Fedora and the other two are Red Hat. The install was relatively easy on the Fedora system, which handles our bulk mailings to perspective students. It took a bit to get the keys and the DNS entry correct, but we've been successfully signing messages for several weeks now. On Red Hat, had problems. While Fedora came with libmilter.a, Red Hat does not. The the server in question is ES4 but I just checked my ES6 (6.4 to be exact) and it does not include libmilter.a. I finally found it in the sendmail distribution and was thus able to compile opendkim. I matched the configuration (including changes to the Postfix main.cf file) with that of the Fedora system. It comes up but does not sign outgoing email. I also noticed that doing a ps on the Fedora box returns:

Code:
postfix   8776     1  0 Jul31  ?        00:39:01 /usr/local/sbin/opendkim -x  /usr/local/etc/opendkim.conf -P  /usr/local/var/run/opendkim/opendkim.pid

Opendkim is running as postfix so it has the same privileges as Postfi itself. On the Red Hat system, I get:

Code:
dkim      24047     1  0 Aug16 ?        00:00:00 /usr/bin/perl  -I/usr/local/dkimproxy/lib /usr/local/dkimproxy/bin/dkimproxy.out  --user=dkim --group=dkim --daemonize  --pidfile=/usr/local/dkimproxy/var/run/dkimproxy_out.pid  --conf_file=/usr/local/dkimproxy/etc/dkimproxy_out.conf
dkim      24048 24047  0 Aug16 ?        00:00:00 /usr/bin/perl  -I/usr/local/dkimproxy/lib /usr/local/dkimproxy/bin/dkimproxy.out  --user=dkim --group=dkim --daemonize  --pidfile=/usr/local/dkimproxy/var/run/dkimproxy_out.pid  --conf_file=/usr/local/dkimproxy/etc/dkimproxy_out.conf
dkim      24049 24047  0 Aug16 ?        00:00:00 /usr/bin/perl  -I/usr/local/dkimproxy/lib /usr/local/dkimproxy/bin/dkimproxy.out  --user=dkim --group=dkim --daemonize  --pidfile=/usr/local/dkimproxy/var/run/dkimproxy_out.pid  --conf_file=/usr/local/dkimproxy/etc/dkimproxy_out.conf
dkim      24050 24047  0 Aug16 ?        00:00:00 /usr/bin/perl  -I/usr/local/dkimproxy/lib /usr/local/dkimproxy/bin/dkimproxy.out  --user=dkim --group=dkim --daemonize  --pidfile=/usr/local/dkimproxy/var/run/dkimproxy_out.pid  --conf_file=/usr/local/dkimproxy/etc/dkimproxy_out.conf
dkim      24051 24047  0 Aug16 ?        00:00:00 /usr/bin/perl  -I/usr/local/dkimproxy/lib /usr/local/dkimproxy/bin/dkimproxy.out  --user=dkim --group=dkim --daemonize  --pidfile=/usr/local/dkimproxy/var/run/dkimproxy_out.pid  --conf_file=/usr/local/dkimproxy/etc/dkimproxy_out.conf
dkim      24052 24047  0 Aug16 ?        00:00:00 /usr/bin/perl  -I/usr/local/dkimproxy/lib /usr/local/dkimproxy/bin/dkimproxy.out  --user=dkim --group=dkim --daemonize  --pidfile=/usr/local/dkimproxy/var/run/dkimproxy_out.pid  --conf_file=/usr/local/dkimproxy/etc/dkimproxy_out.conf
postfix   24094     1  0 Aug16 ?        00:00:00 /usr/local/sbin/opendkim -x  /usr/local/etc/opendkim.conf -P /usr/local/var/run/opendkim/opendkim.pid

Note that opendkim is running as postfix while the perl based dkimproxy is running as the dkim user.

My first question is why the difference in the ps output between Fedora and Red Hat? Second, are there differnces between the two system that require difference in the configurations between the two systems? I don't see anything that contains either the server address or server name, so I'm confused.

Any suggestions would be greatly appreciated.

Rob Tanner
Linfield College
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Problems with Red Hat 7.1

I tried to use the sndconfig tool to set up my sound card. When it does the probe it finds an acer pci sound card, but I have a trident. This wouldn't bother me so much if it worked. Is there a way to configure my sound card by picking it off a list of cards? The second problem I'm having is... (3 Replies)
Discussion started by: crashman0
3 Replies

2. Filesystems, Disks and Memory

Red Hat Linux Boot Problems

Hi. I have an 81 gig hard drive and split it up into 2 partitions. One for linux and the other for windows. I had my windows up and running and it was doing fine. Then i started my linux. I go Red Hat Linux out and installed it on the partition. This all worked out well. However, when i rebooted... (10 Replies)
Discussion started by: vertigo
10 Replies

3. UNIX for Dummies Questions & Answers

Red Hat 7.2.....

I just installed red hat 7.2 on my laptop. it's dual booted with xp and red hat. when i boot in to linux it boots up to the screen to ask me my name and pass....i put in root and my password. after this it goes to a blue screen and sits there. the after about 2 minutes it comes up with a fatal... (1 Reply)
Discussion started by: muzscman
1 Replies

4. UNIX for Dummies Questions & Answers

Red Hat 7.2 Linux Server - FTP Problems

I have just installed RH7.2 Server and along with apache 1.3 and PHP. I am able to FTP from my linux box to other remote maches, but am unable to FTP to the linux box from other remote machines. The message I get is: A remote host has refused an attempted connect operation. I have done some... (3 Replies)
Discussion started by: jyoung
3 Replies

5. UNIX for Dummies Questions & Answers

Red Hat 9 help

please help me how to install softwares in linux.i have a ethernet internet connection.i try to open the site on LAN to download internet client.but i cannot as our lan supports only internet explorer....i downloaded the linux client by booting thru XP......but i cannot c my NTFS partition thru... (0 Replies)
Discussion started by: shobhit143
0 Replies

6. Linux

red hat ee 2.6.9-42

hello. I would be greatfull if someone could tell me how will i see what dns server and gateway my red hat server uses. I tryied to find out by typing ifconfig command but i got : -bash: ifconfig: command not found , although man ifonconfig gives output with info about using that command. Is... (3 Replies)
Discussion started by: tonijel
3 Replies

7. Red Hat

Red Hat E 3

I'm am working with a Red Hat Enterprise 3 server. This is a dedicated server that is supposedly dedicated to one domain, but I have been tasked with trying to figure out if there are files on this system that are being accessed by other IP's. Does anyone know if how I would go about finding... (0 Replies)
Discussion started by: chrisPlusPlus
0 Replies

8. Red Hat

Red-hat

Hello, How do I see what IP addresses are connected to my machine? thanks (2 Replies)
Discussion started by: sonomao
2 Replies

9. UNIX for Dummies Questions & Answers

how to know if i use "Red Hat Enterprise Linux" or "Red Hat Desktop" ?

how to know if i use "Red Hat Enterprise Linux" or "Red Hat Desktop" ? (2 Replies)
Discussion started by: ahmedamer12
2 Replies
Mail::DKIM(3)						User Contributed Perl Documentation					     Mail::DKIM(3)

NAME
Mail::DKIM - Signs/verifies Internet mail with DKIM/DomainKey signatures SYNOPSIS
# verify a message use Mail::DKIM::Verifier; # create a verifier object my $dkim = Mail::DKIM::Verifier->new(); # read an email from stdin, pass it into the verifier while (<STDIN>) { # remove local line terminators chomp; s/15$//; # use SMTP line terminators $dkim->PRINT("$_1512"); } $dkim->CLOSE; # what is the result of the verify? my $result = $dkim->result; DESCRIPTION
This module implements the various components of the DKIM and DomainKeys message-signing and verifying standards for Internet mail. It currently tries to implement these specifications: RFC4871, for DKIM RFC4870, for DomainKeys The module uses an object-oriented interface. You use one of two different classes, depending on whether you are signing or verifying a message. To sign, use the Mail::DKIM::Signer class. To verify, use the Mail::DKIM::Verifier class. Simple, eh? SEE ALSO
Mail::DKIM::Signer, Mail::DKIM::Verifier http://dkimproxy.sourceforge.net/ KNOWN BUGS
Problems passing `make test' seem to usually point at a faulty DNS configuration on your machine, or something weird about your OpenSSL libraries. The "author signing policy" component is still under construction. The author signing policy is supposed to identify the practice of the message author, so you could for example reject a message from an author who claims they always sign their messages. See Mail::DKIM::Policy. AUTHOR
Jason Long, <jlong@messiah.edu> COPYRIGHT AND LICENSE
Copyright (C) 2006-2007, 2009 by Messiah College This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available. perl v5.16.2 2010-11-14 Mail::DKIM(3)
All times are GMT -4. The time now is 05:34 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy