grafana, prometheus
This commit is contained in:
parent
e94686a940
commit
5ee0a9c5cf
6 changed files with 69 additions and 30 deletions
|
|
@ -15,9 +15,10 @@ in {
|
|||
rspamd = {
|
||||
enable = true;
|
||||
postfix.enable = true;
|
||||
locals."redis.conf".text = ''
|
||||
servers = "${config.services.redis.servers.rspamd.unixSocket}";
|
||||
'';
|
||||
locals = {
|
||||
"classifier-bayes.conf".text = "autolearn = true;";
|
||||
"redis.conf".text = ''servers = "${config.services.redis.servers.rspamd.unixSocket}";'';
|
||||
};
|
||||
};
|
||||
postfix = {
|
||||
enable = true;
|
||||
|
|
@ -26,24 +27,23 @@ in {
|
|||
mapFiles.smtp_passwd = "/secrets/smtp_passwd";
|
||||
virtual = "/.*@bogaledev.ru/ mail@bogaledev.ru";
|
||||
submissionsOptions = {
|
||||
smtpd_sasl_type = "dovecot";
|
||||
smtpd_tls_wrappermode = true;
|
||||
smtpd_sasl_auth_enable = "yes";
|
||||
smtpd_sasl_path = "${postfixDir}/auth";
|
||||
milter_macro_daemon_name = "ORIGINATING";
|
||||
smtpd_client_restrictions = "permit_sasl_authenticated,reject";
|
||||
smtpd_tls_chain_files = "${sslCertDir}/key.pem,${sslCertDir}/fullchain.pem";
|
||||
};
|
||||
settings.main = {
|
||||
smtpd_sasl_type = "dovecot";
|
||||
smtp_tls_wrappermode = true;
|
||||
smtp_sasl_auth_enable = true;
|
||||
smtpd_sasl_auth_enable = true;
|
||||
smtp_tls_security_level = "verify";
|
||||
relayhost = [ "smtp.resend.com:2465" ];
|
||||
smtpd_sasl_path = "${postfixDir}/auth";
|
||||
virtual_mailbox_domains = "bogaledev.ru";
|
||||
smtp_sasl_tls_security_options = "noanonymous";
|
||||
virtual_transport = "lmtp:unix:${postfixDir}/lmtp";
|
||||
smtp_sasl_password_maps = "hash:/etc/postfix/smtp_passwd";
|
||||
virtual_transport = "lmtp:unix:${postfixDir}/dovecot-lmtp";
|
||||
smtpd_tls_chain_files = [ "${sslCertDir}/key.pem" "${sslCertDir}/fullchain.pem" ];
|
||||
};
|
||||
};
|
||||
dovecot2 = {
|
||||
|
|
@ -66,22 +66,22 @@ in {
|
|||
user = "postfix";
|
||||
group = "postfix";
|
||||
};
|
||||
"service lmtp"."unix_listener ${postfixDir}/dovecot-lmtp" = {
|
||||
"service lmtp"."unix_listener ${postfixDir}/lmtp" = {
|
||||
mode = "0600";
|
||||
user = "postfix";
|
||||
group = "postfix";
|
||||
};
|
||||
"namespace inbox" = let
|
||||
mailbox = name: {
|
||||
auto = "create";
|
||||
auto = "subscribe";
|
||||
mailbox_special_use = "\\${name}";
|
||||
};
|
||||
in {
|
||||
inbox = true;
|
||||
"mailbox Sent" = mailbox "Sent";
|
||||
"mailbox Archive" = mailbox "Archive";
|
||||
"mailbox Flagged" = mailbox "Flagged";
|
||||
"mailbox Junk" = mailbox "Junk" // { mailbox_autoexpunge = "45d"; };
|
||||
"mailbox Important" = mailbox "Flagged";
|
||||
"mailbox Spam" = mailbox "Junk" // { mailbox_autoexpunge = "45d"; };
|
||||
"mailbox Trash" = mailbox "Trash" // { mailbox_autoexpunge = "45d"; };
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue