[Nix-dev] NixOS Postfix service module config: why emptylocal_recipient_maps value?

Michael Raskin 7c6f434c at mail.ru
Thu Jan 1 14:46:30 CET 2015


>On 31 December 2014 at 14:11, aldiyen <aldiyen at gmail.com> wrote:
>> Hello,
>>
>> I just started trying to use NixOS a little under a week ago, and after
>> installing the Postfix service I found that I was having trouble preventing
>> my server from sending backscatter. After some searches, I found that when
>> the local_recipient_maps setting is empty (which it always is with the
>> config that is created), Postfix will accept email for unknown local
>> recipients and then send a delayed bounce notification. (See
>> http://www.postfix.org/LOCAL_RECIPIENT_README.html)
>>
>> What is the reasoning behind the decision to set it up this way, without the
>> option to override it? Is there some expected configuration or use case that
>> I'm missing here?
>>
>> Thanks! Hopefully I'm following proper etiquette here -- I just joined the
>> mailing list today
>>
>> -aldiyen
>
>(+Michael Raskin, who git blames for that line of postfix.nix)

I am not completely sure. 

It may be that at the time when I wrote postfix service definition, it
was simpler to make +-addresses work that way.

>I don't use postfix, but if that's not configurable, it's probably
>just because nobody bothered to add a configuration variable.  It
>should be easy to add it (nixos/modules/services/mail/postfix.nix).

Yes, lack of option was just because I was adding a ton of options and
missed a few. This part defeinitely had no deliberate choice behind it.





More information about the nix-dev mailing list