X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FConfig%2FNix.git;a=blobdiff_plain;f=modules%2Fprivate%2Fmail%2Fpostfix.nix;h=dfe6129af9ef847db361a819a69ec8b96f833388;hp=53bf6501bc0fb1b85623d2748fff5bb1ae91c67b;hb=afcc5de071dfffdc507995d1845372ba40dc1dc2;hpb=2f16a987d306cdb7bf9b4e80fa4af173373719bd diff --git a/modules/private/mail/postfix.nix b/modules/private/mail/postfix.nix index 53bf650..dfe6129 100644 --- a/modules/private/mail/postfix.nix +++ b/modules/private/mail/postfix.nix @@ -190,6 +190,13 @@ milter_macro_daemon_name = "ORIGINATING"; smtpd_milters = "unix:${config.myServices.mail.milters.sockets.opendkim}"; }; + # FIXME: Mail adressed to localhost.immae.eu will still have mx-1 as + # prioritized MX, which provokes "mail for localhost.immae.eu loops + # back to myself" errors. This transport entry forces to push + # e-mails to its right destination. + transport = '' + localhost.immae.eu smtp:[immae.eu]:25 + ''; destination = ["localhost"]; # This needs to reverse DNS hostname = "eldiron.immae.eu";