Postfix: Difference between revisions
init |
add category |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 10: | Line 10: | ||
Warning: this Postfix configuration is a minimal working example and | Warning: this Postfix configuration is a minimal working example and | ||
not hardened. That means, if port 25 is not blocked, spammers might | not hardened. That means, if outgoing traffic on port 25 is not blocked, spammers might hijack your Postfix instance for spamming activities. Refer to | ||
hijack your Postfix instance for spamming activities. Refer to | |||
internet literature for hardening tips. | internet literature for hardening tips. | ||
| Line 54: | Line 53: | ||
# hostname of mail server, should be fqdn | # hostname of mail server, should be fqdn | ||
hostname = "mail.${domainName}"; | hostname = "mail.${domainName}"; | ||
# domain of the email address that this postfix is hosting | |||
domain = "${domainName}"; | |||
sslCert = "${sslCertDir}/fullchain.pem"; | sslCert = "${sslCertDir}/fullchain.pem"; | ||
| Line 59: | Line 61: | ||
}; | }; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
You also need to set proper file permissions on the cert directory and key files. | |||
See [[ACME#Integration_with_service_modules]]. | |||
= Setup virtual map with regex = | = Setup virtual map with regex = | ||
| Line 78: | Line 83: | ||
# Example line: maps you@example.com to mailbox path | # Example line: maps you@example.com to mailbox path | ||
# you@example.com example.com/you/Maildir/ | # you@example.com example.com/you/Maildir/ | ||
virtual_mailbox_maps = | virtual_mailbox_maps = ./virtual_mailbox_maps; | ||
}; | }; | ||
| Line 108: | Line 113: | ||
}; | }; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
[[Category:Mail Server]] | |||
[[Category:Server]] | |||