]> Cypherpunks.ru repositories - nncp.git/blobdiff - src/cypherpunks.ru/nncp/cmd/nncp-newnode/main.go
Configure sendmail command per node
[nncp.git] / src / cypherpunks.ru / nncp / cmd / nncp-newnode / main.go
index eb12d1dd27201fad96e5baea1dac467a524b1088..ada5af0a4cf3457b5d8335cafd16691b4d2ea7ce 100644 (file)
@@ -71,14 +71,14 @@ func main() {
                                ExchPub:  nncp.ToBase32(nodeOur.ExchPub[:]),
                                SignPub:  nncp.ToBase32(nodeOur.SignPub[:]),
                                NoisePub: nncp.ToBase32(nodeOur.NoisePub[:]),
+                               Sendmail: []string{nncp.DefaultSendmailPath},
                                Incoming: &incoming,
                                Freq:     &freq,
                                Addrs:    map[string]string{"main": "localhost:5400"},
                        },
                },
-               Spool:    "/path/to/spool",
-               Log:      "/path/to/log.file",
-               Sendmail: []string{nncp.DefaultSendmailPath},
+               Spool: "/path/to/spool",
+               Log:   "/path/to/log.file",
                Notify: &nncp.NotifyYAML{
                        File: &nncp.FromToYAML{
                                From: "nncp@localhost",