From: Timo Sirainen Date: Tue, 13 Aug 2013 17:57:41 +0000 (+0300) Subject: lib-lda: Don't alow %variables for hostname setting after all. X-Git-Tag: 2.2.6~133 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c9b225d28d8b36f2260464731d351a845a416407;p=thirdparty%2Fdovecot%2Fcore.git lib-lda: Don't alow %variables for hostname setting after all. I was thinking maybe %d could be used there, but with LMTP the hostname is used already in the greeting message before any RCPT TO is even done. --- diff --git a/src/lib-lda/lda-settings.c b/src/lib-lda/lda-settings.c index 64cbc3c601..9deecde8f7 100644 --- a/src/lib-lda/lda-settings.c +++ b/src/lib-lda/lda-settings.c @@ -19,7 +19,7 @@ static bool lda_settings_check(void *_set, pool_t pool, const char **error_r); static const struct setting_define lda_setting_defines[] = { DEF(SET_STR_VARS, postmaster_address), - DEF(SET_STR_VARS, hostname), + DEF(SET_STR, hostname), DEF(SET_STR_VARS, submission_host), DEF(SET_STR_VARS, sendmail_path), DEF(SET_STR, rejection_subject),