Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
lwc:linux:postfix [2021/09/25 10:17] – created John Harrison | lwc:linux:postfix [2021/11/11 05:59] (current) – John Harrison | ||
---|---|---|---|
Line 11: | Line 11: | ||
sudo postconf -e ' | sudo postconf -e ' | ||
sudo cp / | sudo cp / | ||
- | sed -e ' | + | sudo sh -c 'echo inet_interfaces = loopback-only >> / |
- | sudo sh -c 'echo inet_interfaces = loopback-only >> / | + | |
sudo postfix stop; sudo postfix start; sudo postfix reload | sudo postfix stop; sudo postfix start; sudo postfix reload | ||
</ | </ | ||
Line 25: | Line 24: | ||
sudo postfix stop; sudo postfix start; sudo postfix reload | sudo postfix stop; sudo postfix start; sudo postfix reload | ||
</ | </ | ||
+ | === Remap root@localhost to another to address === | ||
+ | * add '' | ||
+ | * '' | ||
=== test === | === test === | ||
+ | Test with sendmail: | ||
< | < | ||
sendmail -f sender@example.com recipient@example.com # -f allows you to specify from and is not required | sendmail -f sender@example.com recipient@example.com # -f allows you to specify from and is not required | ||
Line 33: | Line 36: | ||
. | . | ||
</ | </ | ||
+ | or [[https:// | ||
=== Tips === | === Tips === | ||
* postfix should be set up with no configuration. When you do this, there are instructions given at the end to copy some sort of sample configuration. | * postfix should be set up with no configuration. When you do this, there are instructions given at the end to copy some sort of sample configuration. | ||
Line 38: | Line 42: | ||
* to reload the settings: '' | * to reload the settings: '' | ||
* when testing '' | * when testing '' | ||
+ | * view queued mail: '' | ||
+ | * flush queued mail: '' | ||
+ | * purge all queued mail: '' | ||
==== Optional ==== | ==== Optional ==== | ||
* get current hostname: '' | * get current hostname: '' | ||
* set hostname with '' | * set hostname with '' | ||