postfix
This commit is contained in:
@@ -23,18 +23,14 @@
|
|||||||
"[::1]/128"
|
"[::1]/128"
|
||||||
myData.subnets.tailscale.cidr
|
myData.subnets.tailscale.cidr
|
||||||
];
|
];
|
||||||
hostname = "${config.networking.hostName}.${config.networking.domain}";
|
hostname = "relay.jakstys.lt";
|
||||||
relayHost = "smtp.sendgrid.net";
|
|
||||||
relayPort = 587;
|
|
||||||
mapFiles = {
|
|
||||||
sasl_passwd = config.mj.services.postfix.saslPasswdPath;
|
|
||||||
};
|
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
smtp_sasl_auth_enable = yes
|
mydestination =
|
||||||
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
|
smtpd_relay_restrictions = permit_mynetworks, reject
|
||||||
smtp_sasl_security_options = noanonymous
|
smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination
|
||||||
smtp_sasl_tls_security_options = noanonymous
|
smtp_tls_security_level = may
|
||||||
smtp_tls_security_level = encrypt
|
smtpd_helo_required = yes
|
||||||
|
disable_vrfy_command = yes
|
||||||
header_size_limit = 4096000
|
header_size_limit = 4096000
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user