]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-lda: Don't alow %variables for hostname setting after all.
authorTimo Sirainen <tss@iki.fi>
Tue, 13 Aug 2013 17:57:41 +0000 (20:57 +0300)
committerTimo Sirainen <tss@iki.fi>
Tue, 13 Aug 2013 17:57:41 +0000 (20:57 +0300)
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.

src/lib-lda/lda-settings.c

index 64cbc3c601b82fde4567bc9f76f3b7cd54a2c531..9deecde8f7c26c253246a1251c5c0d995f81db5d 100644 (file)
@@ -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),