<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-text-flowed" style="font-family: -moz-fixed;
font-size: 12px;" lang="x-western">Hi,
<br>
<br>
I in the process of creating a mailrelay for thousands of email
users and thousands of domains. The idea is to sign the messages
with a DKIM key (and also ARC) in that relay because Exchange 2013
does not have support for it yet.
<br>
I have searched the man pages and net after a answer to this, but
was unable to find it (if it is due to my incompetence or the fact
that amavis does not have that function - I dont know)
<br>
<br>
I know that I can generate the .pem files with amavisd-new genrsa
filename.pem 1024 (for example) and then define the keys in
/etc/amavis/conf.d/50-users like this:
<br>
<br>
<br>
dkim_key("DOMAIN.TLD", "SELECTOR", "/PATH/TO/PEM.FILE");
<br>
<br>
@dkim_signature_options_bysender_maps = ( {
<br>
"DOMAIN.TLD" => { d => "DOMAIN.TLD", a =>
'rsa-sha256', ttl => 10*24*3600 },
<br>
'.' => { a => 'rsa-sha256', c => 'relaxed/simple',
ttl => 30*24*3600 },
<br>
} );
<br>
<br>
<br>
What I want to do is to create separate files containing this:
<br>
<br>
dkim_key("DOMAIN.TLD", "SELECTOR", "/PATH/TO/PEM.FILE");
<br>
<br>
@dkim_signature_options_bysender_maps = ( {
<br>
"DOMAIN.TLD" => { d => "DOMAIN.TLD", a =>
'rsa-sha256', ttl => 10*24*3600 },
<br>
'.' => { a => 'rsa-sha256', c => 'relaxed/simple',
ttl => 30*24*3600 },
<br>
} );
<br>
<br>
Can I make amavis include all the configfiles in a certain
catalogue? For example "<i class="moz-txt-slash"><span
class="moz-txt-tag">/</span>etc/amavis/domains<span
class="moz-txt-tag">/</span></i>*"
<br>
(Like apache does with the "Include" directive, probably the
easiest way to describe it)
<br>
<br>
Many thanks!
<br>
</div>
</body>
</html>