Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| lwc:linux:postfix [2021/11/11 05:59] – John Harrison | lwc:linux:postfix [2025/10/20 15:40] (current) – John Harrison | ||
|---|---|---|---|
| Line 24: | Line 24: | ||
| sudo postfix stop; sudo postfix start; sudo postfix reload | sudo postfix stop; sudo postfix start; sudo postfix reload | ||
| </ | </ | ||
| + | === Alternative allowing multiple from addresses to map to multiple to addresses (better than above solution?) === | ||
| + | from [[https:// | ||
| + | < | ||
| + | / | ||
| + | smtp_generic_maps = hash:/ | ||
| + | |||
| + | / | ||
| + | user@localdomain.local | ||
| + | @localdomain.local | ||
| + | Then do: | ||
| + | |||
| + | sudo postmap / | ||
| + | sudo / | ||
| + | </ | ||
| + | |||
| === Remap root@localhost to another to address === | === Remap root@localhost to another to address === | ||
| * add '' | * add '' | ||
| Line 37: | Line 52: | ||
| </ | </ | ||
| or [[https:// | 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. | ||
| * to reconfigure: | * to reconfigure: | ||
| Line 45: | Line 62: | ||
| * flush queued mail: '' | * flush queued mail: '' | ||
| * purge all queued mail: '' | * purge all queued mail: '' | ||
| + | * testing smtp connection and credentials from cli | ||
| + | * port 465: '' | ||
| + | * port 587: '' | ||
| + | * //port 465 is legacy and 587 is the better choice for modern systems// | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| ==== Optional ==== | ==== Optional ==== | ||
| * get current hostname: '' | * get current hostname: '' | ||
| * set hostname with '' | * set hostname with '' | ||