diff options
Diffstat (limited to 'modules/private')
-rw-r--r-- | modules/private/mail/postfix.nix | 11 | ||||
-rw-r--r-- | modules/private/mail/relay.nix | 11 | ||||
-rw-r--r-- | modules/private/monitoring/objects_immae-eu.nix | 4 |
3 files changed, 4 insertions, 22 deletions
diff --git a/modules/private/mail/postfix.nix b/modules/private/mail/postfix.nix index 2af1849..d8640f8 100644 --- a/modules/private/mail/postfix.nix +++ b/modules/private/mail/postfix.nix | |||
@@ -292,7 +292,7 @@ | |||
292 | ### Virtual mailboxes config | 292 | ### Virtual mailboxes config |
293 | virtual_alias_maps = "hash:/etc/postfix/virtual mysql:${config.secrets.fullPaths."postfix/mysql_alias_maps"} ldap:${config.secrets.fullPaths."postfix/ldap_ejabberd_users_immae_fr"}"; | 293 | virtual_alias_maps = "hash:/etc/postfix/virtual mysql:${config.secrets.fullPaths."postfix/mysql_alias_maps"} ldap:${config.secrets.fullPaths."postfix/ldap_ejabberd_users_immae_fr"}"; |
294 | virtual_mailbox_domains = config.myEnv.mail.postfix.additional_mailbox_domains | 294 | virtual_mailbox_domains = config.myEnv.mail.postfix.additional_mailbox_domains |
295 | ++ lib.remove "localhost.immae.eu" (lib.remove null (lib.flatten (map | 295 | ++ lib.remove null (lib.flatten (map |
296 | (zone: map | 296 | (zone: map |
297 | (e: if e.receive | 297 | (e: if e.receive |
298 | then "${e.domain}${lib.optionalString (e.domain != "") "."}${zone.name}" | 298 | then "${e.domain}${lib.optionalString (e.domain != "") "."}${zone.name}" |
@@ -301,7 +301,7 @@ | |||
301 | (zone.withEmail or []) | 301 | (zone.withEmail or []) |
302 | ) | 302 | ) |
303 | config.myEnv.dns.masterZones | 303 | config.myEnv.dns.masterZones |
304 | ))); | 304 | )); |
305 | virtual_mailbox_maps = "hash:/etc/postfix/host_dummy_mailboxes mysql:${config.secrets.fullPaths."postfix/mysql_mailbox_maps"}"; | 305 | virtual_mailbox_maps = "hash:/etc/postfix/host_dummy_mailboxes mysql:${config.secrets.fullPaths."postfix/mysql_mailbox_maps"}"; |
306 | dovecot_destination_recipient_limit = "1"; | 306 | dovecot_destination_recipient_limit = "1"; |
307 | virtual_transport = "dovecot"; | 307 | virtual_transport = "dovecot"; |
@@ -379,13 +379,6 @@ | |||
379 | milter_macro_daemon_name = "ORIGINATING"; | 379 | milter_macro_daemon_name = "ORIGINATING"; |
380 | smtpd_milters = "unix:${config.myServices.mail.milters.sockets.opendkim}"; | 380 | smtpd_milters = "unix:${config.myServices.mail.milters.sockets.opendkim}"; |
381 | }; | 381 | }; |
382 | # FIXME: Mail adressed to localhost.immae.eu will still have mx-1 as | ||
383 | # prioritized MX, which provokes "mail for localhost.immae.eu loops | ||
384 | # back to myself" errors. This transport entry forces to push | ||
385 | # e-mails to its right destination. | ||
386 | transport = '' | ||
387 | localhost.immae.eu smtp:[immae.eu]:25 | ||
388 | ''; | ||
389 | destination = ["localhost"]; | 382 | destination = ["localhost"]; |
390 | # This needs to reverse DNS | 383 | # This needs to reverse DNS |
391 | hostname = config.hostEnv.fqdn; | 384 | hostname = config.hostEnv.fqdn; |
diff --git a/modules/private/mail/relay.nix b/modules/private/mail/relay.nix index 6ac3df8..18d6bc3 100644 --- a/modules/private/mail/relay.nix +++ b/modules/private/mail/relay.nix | |||
@@ -161,7 +161,7 @@ | |||
161 | relay_domains = let | 161 | relay_domains = let |
162 | backups = lib.flatten (lib.attrsets.mapAttrsToList (n: v: v.domains or []) config.myEnv.mail.postfix.backup_domains); | 162 | backups = lib.flatten (lib.attrsets.mapAttrsToList (n: v: v.domains or []) config.myEnv.mail.postfix.backup_domains); |
163 | virtual_domains = config.myEnv.mail.postfix.additional_mailbox_domains | 163 | virtual_domains = config.myEnv.mail.postfix.additional_mailbox_domains |
164 | ++ lib.remove "localhost.immae.eu" (lib.remove null (lib.flatten (map | 164 | ++ lib.remove null (lib.flatten (map |
165 | (zone: map | 165 | (zone: map |
166 | (e: if e.receive | 166 | (e: if e.receive |
167 | then "${e.domain}${lib.optionalString (e.domain != "") "."}${zone.name}" | 167 | then "${e.domain}${lib.optionalString (e.domain != "") "."}${zone.name}" |
@@ -170,7 +170,7 @@ | |||
170 | (zone.withEmail or []) | 170 | (zone.withEmail or []) |
171 | ) | 171 | ) |
172 | config.myEnv.dns.masterZones | 172 | config.myEnv.dns.masterZones |
173 | ))); | 173 | )); |
174 | in | 174 | in |
175 | backups ++ virtual_domains; | 175 | backups ++ virtual_domains; |
176 | relay_recipient_maps = let | 176 | relay_recipient_maps = let |
@@ -217,13 +217,6 @@ | |||
217 | enable = true; | 217 | enable = true; |
218 | enableSmtp = true; | 218 | enableSmtp = true; |
219 | enableSubmission = false; | 219 | enableSubmission = false; |
220 | # FIXME: Mail adressed to localhost.immae.eu will still have mx-1 as | ||
221 | # prioritized MX, which provokes "mail for localhost.immae.eu loops | ||
222 | # back to myself" errors. This transport entry forces to push | ||
223 | # e-mails to its right destination. | ||
224 | transport = '' | ||
225 | localhost.immae.eu smtp:[immae.eu]:25 | ||
226 | ''; | ||
227 | destination = ["localhost"]; | 220 | destination = ["localhost"]; |
228 | # This needs to reverse DNS | 221 | # This needs to reverse DNS |
229 | hostname = config.hostEnv.fqdn; | 222 | hostname = config.hostEnv.fqdn; |
diff --git a/modules/private/monitoring/objects_immae-eu.nix b/modules/private/monitoring/objects_immae-eu.nix index cffb180..70459fc 100644 --- a/modules/private/monitoring/objects_immae-eu.nix +++ b/modules/private/monitoring/objects_immae-eu.nix | |||
@@ -77,10 +77,6 @@ in | |||
77 | } | 77 | } |
78 | 78 | ||
79 | { | 79 | { |
80 | service_description = "postfix SSL is up to date"; | ||
81 | } | ||
82 | |||
83 | { | ||
84 | service_description = "mailq is empty"; | 80 | service_description = "mailq is empty"; |
85 | servicegroups = "webstatus-email"; | 81 | servicegroups = "webstatus-email"; |
86 | } | 82 | } |