Slackware HowTo

Configure local Postfix aliases on Slackware

Route system mail to real accounts instead of leaving messages stranded under root.

1. When to use it

Use it when backups, cron jobs, and monitoring send local mail that someone actually needs to read.

Postfix | aliases | newaliases | root mail | local delivery

2. Base setup

printf 'root: admin@example.lan\nops: root\n' >> /etc/aliases
newaliases
postalias /etc/aliases

Adjust host names, IPs, interfaces, paths, and versions to the real system before making the change persistent.

3. Quick verification

postalias -q root /etc/aliases
postconf alias_maps
grep -n '^root:' /etc/aliases

Confirm that the output matches the expected state before considering the intervention complete.

4. Operational notes

Aliases are small but important: ignored system mail is often the start of incidents that go unnoticed.

Quick checklist

[ ] Steps completed\n[ ] Config updated\n[ ] Tests executed\n[ ] Rollback ready\n[ ] Logs checked

Back to Linux HowTo