Пароли новых ящиков — ещё и в лог: видно в Jambotron без консоли
После передеплоя (новая база) владелец видит пароли admin@ и trap@ в проект → Сервисы → mail → Логи; файл /app/data/initial-passwords.txt остаётся. α Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -28,8 +28,8 @@ import java.util.Locale;
|
||||
* <li>the catch-all mailbox ({@code mailserver.catch-all}) if it does not exist yet — mail to unknown addresses is
|
||||
* stored there, so it must exist.</li>
|
||||
* </ul>
|
||||
* A generated password is appended to {@code mailserver.passwords-file} (mode 600, in the data volume) — read it once
|
||||
* and change the password. Without the file setting it is printed to the log once.
|
||||
* A generated password is printed to the log once (visible in Jambotron: project → Services → mail → Logs) and appended
|
||||
* to {@code mailserver.passwords-file} (mode 600, in the data volume) — change it after the first login.
|
||||
*/
|
||||
@Configuration
|
||||
public class DataInitializer {
|
||||
@@ -63,7 +63,8 @@ public class DataInitializer {
|
||||
log.info("Mailbox created: {}", address);
|
||||
} else if (file != null) {
|
||||
appendPassword(file, address, secret);
|
||||
log.warn("Mailbox created: {} — password in {} (change it)", address, file);
|
||||
// also in the log: the owner sees it in Jambotron (project → Services → mail → Logs) without a shell
|
||||
log.warn("Mailbox created: {} — password: {} (also in {}; change it)", address, secret, file);
|
||||
} else {
|
||||
log.warn("Mailbox created: {} — password: {} (shown once, change it)", address, secret);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user