Alexander,
> I'm currently setting up a new instance of amavisd-new that I will use
> for outbound DKIM signing for myself. I've not found any place that will
> verify my mail yet
Send a test mail to autoresponder: [EMAIL PROTECTED]
> but when looking at the headers of my mail I found
> one issue that I cannot seem to fix.
>
> Postfix and amavisd-new are being run on seperate machines and uses SMTP
> on port 10024/10025 to feed amavisd-new and reinject back to postfix,
> and I get the usual received headers, but when I reinject from amavis
>
> back into postfix I get this:
> > Received: from localhost (my.amavisd.machine.com [1.2.3.4])
> > by my.postfix.machine.com (Postfix) with ESMTP id 061C954003
> > for <[EMAIL PROTECTED]>; Tue, 23 Sep 2008 05:00:00 +0200 (CEST)
>
> even though my amavisd.conf clearly says:
> > $myhostname = 'my.amavisd.machine.com';
>
> Is there any way to get amavis to give off he right hostname when
> presenting itself back to postfix?
# $localhost_name is the name of THIS host running amavisd
# (typically 'localhost'). It is used in HELO SMTP command
# when reinjecting mail back to MTA via SMTP for final delivery,
# and in inserted Received header field
$localhost_name = 'localhost';
...although the HELO name mismatch is not a reason why a DKIM validation would
fail, must be something else.
Btw, you don't need an independent amavisd instance for signing. This can be
accomplished also by using a policy bank and dedicating a port on which
amavisd would only sign mail and skip all other checks if appropriate.
For example, here is my amavisd entry which only receives fanout mail
from our mailing list manager (via Postfix), i.e. messages which have
already been checked and only need still to be signed:
$inet_socket_port = [10024,10028];
$interface_policy{'10028'} = 'NOCHECKS';
$policy_bank{'NOCHECKS'} = {
smtpd_greeting_banner =>
'${helo-name} ${protocol} ${product} NOCHECKS service ready',
originating => 1,
mynetworks_maps => [], # avoids loading MYNETS policy unnecessarily
os_fingerprint_method => undef,
penpals_bonus_score => undef,
bypass_decode_parts => 1,
bypass_header_checks_maps => [1],
bypass_virus_checks_maps => [1],
bypass_spam_checks_maps => [1],
bypass_banned_checks_maps => [1],
spam_lovers_maps => [1],
banned_files_lovers_maps => [1],
archive_quarantine_to_maps => [],
remove_existing_x_scanned_headers => undef,
remove_existing_spam_headers => undef,
forward_method => 'smtp:[127.0.0.1]:10025',
signed_header_fields => { 'Sender' => 1 },
};
Mark
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/