postfix service: make SMTP services optional using enableSmtp option
This commit is contained in:
parent
550fe7f233
commit
8fad959b15
@ -108,10 +108,14 @@ let
|
|||||||
flush unix n - n 1000? 0 flush
|
flush unix n - n 1000? 0 flush
|
||||||
proxymap unix - - n - - proxymap
|
proxymap unix - - n - - proxymap
|
||||||
proxywrite unix - - n - 1 proxymap
|
proxywrite unix - - n - 1 proxymap
|
||||||
|
''
|
||||||
|
+ optionalString cfg.enableSmtp ''
|
||||||
smtp unix - - n - - smtp
|
smtp unix - - n - - smtp
|
||||||
relay unix - - n - - smtp
|
relay unix - - n - - smtp
|
||||||
-o smtp_fallback_relay=
|
-o smtp_fallback_relay=
|
||||||
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
|
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
|
||||||
|
''
|
||||||
|
+ ''
|
||||||
showq unix n - n - - showq
|
showq unix n - n - - showq
|
||||||
error unix - - n - - error
|
error unix - - n - - error
|
||||||
retry unix - - n - - error
|
retry unix - - n - - error
|
||||||
@ -154,6 +158,11 @@ in
|
|||||||
description = "Whether to run the Postfix mail server.";
|
description = "Whether to run the Postfix mail server.";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
enableSmtp = mkOption {
|
||||||
|
default = true;
|
||||||
|
description = "Whether to enable smtp in master.cf.";
|
||||||
|
};
|
||||||
|
|
||||||
setSendmail = mkOption {
|
setSendmail = mkOption {
|
||||||
default = true;
|
default = true;
|
||||||
description = "Whether to set the system sendmail to postfix's.";
|
description = "Whether to set the system sendmail to postfix's.";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user