Compare commits

..

No commits in common. "8b04cfa06b53fef358923212f8aa423cf994816a" and "8e0c407224dfffdcd2c1733634fd356dfc1e3d22" have entirely different histories.

3 changed files with 1 additions and 20 deletions

View file

@ -1,7 +1,6 @@
+++ +++
draft = false draft = false
title = 'Blog' title = 'Blog'
framed = true
[params] [params]
Toc = false Toc = false

View file

@ -386,25 +386,6 @@ mailbox_size_limit = 0
By default, `mailbox_size_limit` is `51200000`. This number is in bytes. You can similarly set a `message_size_limit`. By default, `mailbox_size_limit` is `51200000`. This number is in bytes. You can similarly set a `message_size_limit`.
Let's hide some sensitive info that tends to get attached to email headers by clients. Edit
`/etc/postfix/header_checks`, or create it if it doesn't already exist, and add the following lines:
```plaintext
/^Received: .*/ IGNORE
/^User-Agent: .*/ IGNORE
/^X-Originating-IP: .*/ IGNORE
/^X-Mailer: .*/ IGNORE
/^Mime-Version: .*/ IGNORE
```
Now add the following to your `/etc/postfix/main.cf`:
```conf
header_checks = regexp:/etc/postfix/header_checks
smtp_header_checks = $header_checks
mime_header_checks = $header_checks
```
Finally, here are some various hardening settings you can add to your `/etc/postfix/main.conf`: Finally, here are some various hardening settings you can add to your `/etc/postfix/main.conf`:
```conf ```conf

View file

@ -67,6 +67,7 @@ theme = 'terminal'
# can be overridden in a page's front-matter # can be overridden in a page's front-matter
# TocTitle = "Table of Contents" # default # TocTitle = "Table of Contents" # default
[params.twitter] [params.twitter]
# set Twitter handles for Twitter cards # set Twitter handles for Twitter cards
# see https://developer.twitter.com/en/docs/tweets/optimize-with-cards/guides/getting-started#card-and-content-attribution # see https://developer.twitter.com/en/docs/tweets/optimize-with-cards/guides/getting-started#card-and-content-attribution