Hi On 15/01/2010 5:08 PM, Erik Lotspeich wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi, > > The way you're going about things sounds a bit unorthodox. It doesn't > surprise me that the signatures are failing -- even though it may seem > that you're doing everything right. > > I'm not familiar with OpenEMM, and it wasn't clear to me from your > e-mail exactly how your setup works or how messages are sent. > I have to break OpenEMM's chain of execution before the mailings get sent to its own sendmail implementation that doesn't use dkim-milter. I've set up a system-wide sendmail with the dkim-milter plugin which otherwise correctly signs all outgoing mail. I take the mailing files (beginning with df or qf), have them parsed by my perl script and further use the Perl Mail::Sender module to send the message over SMTP to the above mentioned sendmail process that uses dkim-milter. Unfortunately, I see no other possibility how to achieve this. If someone has an idea I'd gladly give it a try.
> Let me give you an example from my situation. Consider an "old > fashioned" simple mailing list software such as majordomo. In a > mojordomo setup configured with dkim-filter, messages sent to the list > would be signed and then messages sent out from the list to all > recipients would be signed again. What I want is for the original > message to be signed/verified, and then for the messages sent from the > list to be signed after the list made any changes to the headers. In > order to accomplish this, I wrote dkim-verify. > > https://www.lotspeich.org/~erik/dkim/ > > dkim-verify can also verify mail delivered locally which I think is nice > (you could make the argument that this is a pointless feature, but I > like it for correctness/completeness). > > dkim-verify works by transparently executing the target program (e.g. > majordomo, etc.) and signing the output. I don't know if OpenEMM can be > used this way -- if it can, dkim-verify might be the solution for you. > I tried to build your program but make exits with the following error messages: g++ -Wall -Werror -O2 -D_REENTRANT -fPIC -Iliblot -I. -DCFG_FILE=\"/usr/local/etc/dkim-verify/dkim-verify-config.xml\" -c -o dkim-verify.o dkim-verify.cc In file included from dkim-rfc2822.h:30, from dkim-libdkim.h:34, from dkim-verify.cc:44: /usr/include/dkim.h:101: error: redefinition of ‘struct DKIMContext_t’ /usr/include/dkim.h:102: error: previous definition of ‘struct DKIMContext_t’ /usr/include/dkim.h:106: error: invalid type in declaration before ‘;’ token /usr/include/dkim.h:106: error: conflicting declaration ‘typedef int DKIMContext’ /usr/include/dkim.h:106: error: ‘DKIMContext’ has a previous declaration as ‘typedef struct DKIMContext_t DKIMContext’ /usr/include/dkim.h:108: error: redefinition of ‘struct DKIMSignOptions_t’ /usr/include/dkim.h:109: error: previous definition of ‘struct DKIMSignOptions_t’ /usr/include/dkim.h:124: error: invalid type in declaration before ‘;’ token /usr/include/dkim.h:124: error: conflicting declaration ‘typedef int DKIMSignOptions’ /usr/include/dkim.h:124: error: ‘DKIMSignOptions’ has a previous declaration as ‘typedef struct DKIMSignOptions_t DKIMSignOptions’ /usr/include/dkim.h:126: error: redefinition of ‘struct DKIMVerifyOptions_t’ /usr/include/dkim.h:127: error: previous definition of ‘struct DKIMVerifyOptions_t’ /usr/include/dkim.h:134: error: invalid type in declaration before ‘;’ token /usr/include/dkim.h:134: error: conflicting declaration ‘typedef int DKIMVerifyOptions’ /usr/include/dkim.h:134: error: ‘DKIMVerifyOptions’ has a previous declaration as ‘typedef struct DKIMVerifyOptions_t DKIMVerifyOptions’ /usr/include/dkim.h:136: error: redefinition of ‘struct DKIMVerifyDetails_t’ /usr/include/dkim.h:137: error: previous definition of ‘struct DKIMVerifyDetails_t’ /usr/include/dkim.h:144: error: invalid type in declaration before ‘;’ token /usr/include/dkim.h:144: error: conflicting declaration ‘typedef int DKIMVerifyDetails’ /usr/include/dkim.h:144: error: ‘DKIMVerifyDetails’ has a previous declaration as ‘typedef struct DKIMVerifyDetails_t DKIMVerifyDetails’ In file included from dkim-verify.cc:44: dkim-libdkim.h:72: error: ISO C++ forbids declaration of ‘DKIM’ with no type dkim-libdkim.h:72: error: expected ‘;’ before ‘*’ token dkim-libdkim.h:73: error: ISO C++ forbids declaration of ‘DKIM_LIB’ with no type dkim-libdkim.h:73: error: expected ‘;’ before ‘*’ token dkim-libdkim.h:74: error: ‘DKIM_STAT’ does not name a type dkim-libdkim.h:94: error: ‘dkim_policy_t’ does not name a type dkim-libdkim.h:103: error: ‘DKIM_STAT’ does not name a type dkim-libdkim.h:104: error: ‘DKIM_STAT’ does not name a type dkim-libdkim.h:114: error: ‘DKIM_STAT’ does not name a type dkim-libdkim.h: In member function ‘int dkim_vrfy::libdkim::dkim_helper::get_presult() const’: dkim-libdkim.h:95: error: ‘dkim’ was not declared in this scope dkim-libdkim.h:95: error: ‘dkim_getpresult’ was not declared in this scope dkim-libdkim.h: In member function ‘std::string dkim_vrfy::libdkim::dkim_helper::get_error() const’: dkim-libdkim.h:97: error: ‘dkim’ was not declared in this scope dkim-libdkim.h:97: error: ‘dkim_geterror’ was not declared in this scope dkim-libdkim.h: At global scope: dkim-libdkim.h:129: error: ISO C++ forbids declaration of ‘DKIM’ with no type dkim-libdkim.h:129: error: expected ‘;’ before ‘*’ token dkim-libdkim.h:130: error: ISO C++ forbids declaration of ‘DKIM_SIGINFO’ with no type dkim-libdkim.h:130: error: expected ‘;’ before ‘*’ token dkim-libdkim.h:139: error: ‘DKIM’ has not been declared dkim-libdkim.h:140: error: ‘DKIM_SIGINFO’ has not been declared dkim-libdkim.h: In constructor ‘dkim_vrfy::libdkim::dkim_sig::dkim_sig()’: dkim-libdkim.h:136: error: class ‘dkim_vrfy::libdkim::dkim_sig’ does not have any field named ‘dkim’ dkim-libdkim.h:136: error: class ‘dkim_vrfy::libdkim::dkim_sig’ does not have any field named ‘sig’ dkim-libdkim.h: In member function ‘void dkim_vrfy::libdkim::dkim_sig::set_dkim(int*)’: dkim-libdkim.h:139: error: ‘dkim’ was not declared in this scope dkim-libdkim.h: In member function ‘void dkim_vrfy::libdkim::dkim_sig::set_sig(int*)’: dkim-libdkim.h:140: error: ‘sig’ was not declared in this scope dkim-libdkim.h: In member function ‘unsigned int dkim_vrfy::libdkim::dkim_sig::get_sig_getflags() const’: dkim-libdkim.h:146: error: ‘sig’ was not declared in this scope dkim-libdkim.h:146: error: ‘dkim_sig_getflags’ was not declared in this scope dkim-libdkim.h: In member function ‘int dkim_vrfy::libdkim::dkim_sig::get_sig_getbh() const’: dkim-libdkim.h:153: error: ‘sig’ was not declared in this scope dkim-libdkim.h:153: error: ‘dkim_sig_getbh’ was not declared in this scope dkim-libdkim.h: At global scope: dkim-libdkim.h:161: error: ‘DKIM_SIGERROR’ does not name a type dkim-libdkim.h:166: error: ‘DKIM_SIGERROR’ does not name a type dkim-libdkim.h: In member function ‘virtual const char* dkim_vrfy::libdkim::dkim_sigerr::what() const’: dkim-libdkim.h:169: error: ‘sigerr’ was not declared in this scope dkim-libdkim.h:169: error: ‘dkim_sig_geterrorstr’ was not declared in this scope dkim-libdkim.h: At global scope: dkim-libdkim.h:177: error: ‘DKIM_STAT’ does not name a type dkim-libdkim.h:180: error: expected `)' before ‘e’ dkim-libdkim.h:183: error: ‘DKIM_STAT’ does not name a type dkim-libdkim.h: In member function ‘virtual const char* dkim_vrfy::libdkim::dkim_stat::what() const’: dkim-libdkim.h:186: error: ‘stat’ was not declared in this scope dkim-verify.cc: In function ‘int main(int, char**)’: dkim-verify.cc:353: error: ‘class dkim_vrfy::libdkim::dkim_helper’ has no member named ‘msg_end’ make: *** [dkim-verify.o] Error 1 > Regards > > Erik > Thanks for your reply and suggestions! :-) Sven-Thorsten ------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev _______________________________________________ dkim-milter-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dkim-milter-discuss
