This commit is contained in:
Roger Rutishauser 2024-10-16 22:12:45 +02:00
parent 421cad3e3c
commit cfaa79175e

View File

@ -13,7 +13,8 @@ apt install sendmail
- change first line of `/etc/hosts` to:\ - change first line of `/etc/hosts` to:\
`127.0.0.1 localhost.localdomain localhost backup`\ `127.0.0.1 localhost.localdomain localhost backup`\
("backup" is the hostname. Get it with: $ hostname ("backup" is the hostname. Get it with: $ hostname
- config\ `sudo sendmailconfig # answer "Y" to everything` - config\
`sudo sendmailconfig # answer "Y" to everything`
## custom "from: " address ## custom "from: " address
@ -28,7 +29,7 @@ in order to have a custom "from: " email address (instead of `user@localhost.loc
- create `genericstable.db`\ - create `genericstable.db`\
`makemap hash /etc/mail/genericstable < /etc/mail/genericstable` `makemap hash /etc/mail/genericstable < /etc/mail/genericstable`
- modify `/etc/mail/sendmail.mc`\ - modify `/etc/mail/sendmail.mc`\
add following lines right before `MAILER_DEFINITIONS`:\ add following lines right before `MAILER_DEFINITIONS`:
``` ```
FEATURE(`genericstable')dnl` FEATURE(`genericstable')dnl`
GENERICS_DOMAIN(`localhost.localdomain')dnl GENERICS_DOMAIN(`localhost.localdomain')dnl