View Single Post
  #16  
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
Default

Hi,

can anybody that succeded in setting amavisd to sign outgoing mail with dkim send me conf files for postfix (main.cf 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:
Code:
$ dig -t TXT foo._domainkey.odmorise.info
foo._domainkey.odmorise.info. 86400 IN  TXT     "v=DKIM1\;p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC/r50PSUTLQLdqjEoHaK/K8FJIcunp93vEdw5HbBJPwwZDWQfWHRJ0ato6VTcwUU+fvpGJDSKaLFcgtFmWpSybLOoM/CovTpPz/sWbQ2LsEGthAA0gmJVsWfbI7ewCYHHTRdH7UKdBc1tVDQnBZpo5Ttltig0+a5dRQwFexrdxSwIDAQAB"
Code:
$ tail /etc/amavisdamavisd.conf                                                                                                                              
dkim_key('odmorise.info', '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(0.0.0.0/8 127.0.0.0/8 188.40.93.84/32);  # list your internal networks                                                                                         
#$enable_dkim_verification = 1;                                                                                                                                                  
$enable_dkim_signing = 1;
Code:
$ tail -f /etc/postfix/main.cf

#smtpd_milters = inet:188.40.93.84:10035
#non_smtpd_milters = inet:188.40.93.84:10035
Code:
$ tail -f /etc/postfix/master.cf -n 100
#  ${nexthop} ${user}

amavis unix - - - - 2 smtp
        -o smtp_data_done_timeout=1200
        -o smtp_send_xforward_command=yes

127.0.0.1:10025 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=127.0.0.0/8
        -o strict_rfc821_envelopes=yes
        -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
        -o smtpd_bind_address=127.0.0.1


smtp      inet  n       -       n       -       -       smtpd
    -o smtpd_proxy_filter=127.0.0.1:10025
    -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.http://www.napravisajt.com/.
Reply With Quote