On Wed, Jul 24, 2013 at 01:34:02AM +0400, ??????? ????????? wrote:
> Hello all, can't find which variables I could use in smtpd_banner
> except of $myhostname/$mail_name? Is that possible to use
> $client_address?
There are no variables in smtpd_banner. You're confused by generic
support for recursive main.cf variable expansion. By the time
smtpd(8) sees smptd_banner it is a string constant.
Best practice is to largely leave smtpd_banner alone. The default
is just fine. If you prefer whatever legal advantage denouncing
unsolicited commericial email may confer:
smtpd_banner = $myhostname ESMTP ($mail_name) NO UCE.
The "$myhostname" is expanded once by the generic main.cf parser,
not separately for each connecting client.
--
Viktor.