blob: 57db251724ed71fab15a968ff51da57ec339b672 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
{pkgs, ...}: {
environment = {
systemPackages = with pkgs; [
mailutils
];
etc."smtpd/aliases" = {
text = ''
root: manolis@netriin.net
abuse: root
noc: root
security: root
postmaster: root
hostmaster: root
webmaster: root
www: webmaster
ftp: root
'';
mode = "0644";
};
};
services.opensmtpd = {
enable = true;
serverConfiguration = ''
listen on 0.0.0.0
table aliases file:/etc/smtpd/aliases
action "local" maildir alias <aliases>
action "relay" relay
match for local action "local"
match from local for any action "relay"
match from any for any action "relay"
'';
};
}
|