diff --git a/README.md b/README.md index af2efea..011dbe4 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ dovecot pam.d postfix procmailrc skel systemd opendkim 4. Set the hostname of the server with `hostnamectl set-hostname SOMETHING.REPLACEME.TLD` where `SOMETHING.REPLACEME.TLD` is the server hostname 5. Add the hostname of the server to the end of the line starting with `127.0.0.1` in `/etc/hosts` 6. In `/etc/dovecot/dovecot.conf` and `/etc/opendkim/opendkim.conf` replace occurances of `REPLACEME.TLD` and occurances of `REPLACEME` with the first part of the hostname -7. In `/etc/postfix/main.cf` replace occurances of `REPLACEME.TLD` with the hostname (not the name) +7. In `/etc/postfix/main.cf` replace `SOMETHING` with the hostname of the server and occurrences of `REPLACEME.TLD` with the domain 8. Run `opendkim-genkey -r -s REPLACEME -d REPLACEME.TLD` where `REPLACEME` is the first part of the hostname 9. In `/etc/postfix/aliases`, replace the instance of `REPLACEME` with the user that should receive domain-level emails 10. Run `newaliases` to update the aliases database with the contents of `/etc/postfix/aliases` diff --git a/postfix/main.cf b/postfix/main.cf index 61e0ea1..7206c87 100644 --- a/postfix/main.cf +++ b/postfix/main.cf @@ -1,4 +1,4 @@ -myhostname = somehostname.REPLACEME.TLD +myhostname = SOMETHING.REPLACEME.TLD compatibility_level = 2 mail_owner = postfix setgid_group = postdrop