Hello Mark! >> I'm implementing DKIM signing into amavisd-new and I am quite successful >> until now. Everything works just fine. >> But can I avoid entering hundrets of domains into the amavis >> configuration file by reading the domains out of a text file with >> read_hash? > Yes, but not with read_hash.
Ahhh. :) >> I tried but it did not work. I would like to use the same DKIM key for >> all our domains because I think this is not a problem and much easier. > Remember that a config file is just a perl program. Write a short > loop that reads your domains and calls dkim_key for each of them: > open(IN,'/etc/amavisd-domains-to-sign.txt') > or die "Can't open domains file: $!"; > while (<IN>) { > chomp; s/\s*#.*$//; next if $_ eq ''; > dkim_key($_, 'sel', '/var/db/dkim/good-for-most.key.pem'); > } > close(IN) or die "Can't close: $!"; Great, thank you so much! :) I tried it and it worked perfectly! :) Isn't it useful to put your code into the official howto or documentation for amavis? >> Or is it a real problem and useless using the same key for a bunch of >> domains? > It is supported and valid to use the same signing key for multiple > domains. Starting with 2.6.2 this is also memory efficient, only one copy > of a key is stored in memory when the same key file is specified with > multiple dkim_key calls. Perfect, so everything is as it should with my setup. Thanks again! Kindest regards, Martin ------------------------------------------------------------------------------ _______________________________________________ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/