Thomas,

> Amavisd-new seems to use localhost_name for it's own EHLO,
> but is using $myheloname for it's own SMTP greeting banner
> (and 250 reply to HELO)...

> I agree that localhost is a safe option if amavisd-new is running on the
> very same host as the MTA is running on. In larger setups this is not
> the case, so having this configurable would be great - don't you think
> so?

Instead of the default greeting templates:

$smtpd_greeting_banner = '${helo-name} ${protocol} ${product} service ready';
$smtpd_quit_banner = '${helo-name} ${product} closing transmission channel';

you may provide your own, e.g.:

$smtpd_greeting_banner = '${myhostname} ${protocol} ${product} service ready';
$smtpd_quit_banner = '${myhostname} ${product} closing transmission channel';

or just using some fixed names:

$smtpd_greeting_banner = '[EMAIL PROTECTED] ${protocol} ${product} service 
ready';
$smtpd_quit_banner = '[EMAIL PROTECTED] ${product} closing transmission 
channel';

Currently the following substitutions are hard-wired:

  $smtpd_greeting_banner_tmp =~
    s{ \$ (?: \{ ([^\}]+) \} |
              ([a-zA-Z](?:[a-zA-Z0-9_-]*[a-zA-Z0-9])?\b) ) }
     { { 'helo-name'    => $myheloname,
         'myhostname'   => c('myhostname'),
         'version'      => $myversion,
         'version-id'   => $myversion_id,
         'version-date' => $myversion_date,
         'product'      => $myproduct_name,
         'protocol'     => $lmtp?'LMTP':'ESMTP' }->{lc($1.$2)}
     }egx;

Mark

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to