Xueron Nee wrote:
> Is there any macros can be used in log_templ point to the Helo/Ehlo
> domain passed from upstream?
Not currently, but it is trivial to add it, as all information
is already provided. The following patch to 2.6.4 implements it:
--- amavisd.orig 2009-06-25 14:39:01.000000000 +0200
+++ amavisd 2009-07-10 22:09:15.000000000 +0200
@@ -8925,4 +8925,6 @@
g => sub { # original SMTP session client DNS name
sanitize_str($MSGINFO->client_name) },
+ client_helo => sub { # original SMTP session EHLO/HELO name
+ sanitize_str($MSGINFO->client_helo) },
remote_mta => sub { unique_ref(map {$_->recip_remote_mta}
@{$MSGINFO->per_recip_data}) },
To use it from a $log_templ, add a line like:
, helo=[:client_helo]#
somewhere to the log template.
Mark
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
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/