View Single Post
Old 15th September 2010, 17:46
rare rare is offline
Junior Member
Join Date: May 2007
Posts: 12
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via Skype™ to rare


can anybody that succeded in setting amavisd to sign outgoing mail with dkim send me conf files for postfix ( and master.cs).

We tried something with dkim-milter so there is many config lines, I am not sure which one is for what, probably because of that we can achieve dkim signing using amavisd.

Dns settings are ok, there is an record, and amavisd is configured according to this forum thread, but it is still not working.

There are some settings:
$ dig -t TXT 86400 IN  TXT     "v=DKIM1\;p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC/r50PSUTLQLdqjEoHaK/K8FJIcunp93vEdw5HbBJPwwZDWQfWHRJ0ato6VTcwUU+fvpGJDSKaLFcgtFmWpSybLOoM/CovTpPz/sWbQ2LsEGthAA0gmJVsWfbI7ewCYHHTRdH7UKdBc1tVDQnBZpo5Ttltig0+a5dRQwFexrdxSwIDAQAB"
$ tail /etc/amavisdamavisd.conf                                                                                                                              
dkim_key('', 'foo', '/var/db/dkim/odmorise-foo.key.pem');
@dkim_signature_options_bysender_maps = (
    { '.' => { ttl => 21*24*3600, c => 'relaxed/simple' } } );
$interface_policy{'10024'} = 'DKIM_ALWAYS';
$policy_bank{'DKIM_ALWAYS'} = { originating => 1, };
#@mynetworks = qw(;  # list your internal networks                                                                                         
#$enable_dkim_verification = 1;                                                                                                                                                  
$enable_dkim_signing = 1;
$ tail -f /etc/postfix/

#smtpd_milters = inet:
#non_smtpd_milters = inet:
$ tail -f /etc/postfix/ -n 100
#  ${nexthop} ${user}

amavis unix - - - - 2 smtp
        -o smtp_data_done_timeout=1200
        -o smtp_send_xforward_command=yes inet n - - - - smtpd
        -o content_filter=
        -o local_recipient_maps=
        -o relay_recipient_maps=
        -o smtpd_restriction_classes=
        -o smtpd_client_restrictions=
        -o smtpd_helo_restrictions=
        -o smtpd_sender_restrictions=
        -o smtpd_recipient_restrictions=permit_mynetworks,reject
        -o mynetworks=
        -o strict_rfc821_envelopes=yes
        -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
        -o smtpd_bind_address=

smtp      inet  n       -       n       -       -       smtpd
    -o smtpd_proxy_filter=
    -o smtpd_client_connection_count_limit=10
.... and many more lines like this
I am not sure how it should be set

Thanks for help in advance
My world of web design.
Reply With Quote