On 06/12/2020 16:44, Chris Green wrote: > On Sun, Dec 06, 2020 at 04:18:13PM +0100, Julian Kippels wrote: >> Am Sun, 6 Dec 2020 15:10:12 +0000 >> schrieb Chris Green <c...@isbd.net>: >> >>> I run postfix on my main desktop machine both for sending mail (via my >>> hosting provider 'smarthost') and for receiving mail. >>> >>> I want to use postfix to provide /usr/bin/sendmail on a laptop and >>> some other machines. These machines won't be receiving E-Mail. >>> >>> I've considered the 'send only' programs such as esmtp and msmtp but >>> having to maintain *different* configurations is a downside with these >>> and I'm already (fairly) familiar with postfix. >>> >>> So, is there an easy way to copy my existing postfix configuration >>> (in /etc/postfix) to other machines? What actually needs to be >>> different on each machine for it to work? Does *anything* need to be >>> different? >>> >> Might be a bit overkill for your use case, but I'd have a look at >> keeping your configuration(s) in sync using Ansible or something >> similar. >> > Yes, but I still need to know which bits are the same on all systems > and which bits are different don't I?
Seconded on using a config management package. Saltstack is a good choice, too. (Your case is simple enough, though, that shell scripts that copy from a private git repo is also reasonable. That avoids the learning curve of something like salt/ansible/puppet/etc.) You have one config (on your desktop) that receives and passes to an MDA and that also sends to a smarthost. You have on config (maybe on multiple machines) that sends to a smarthost but doesn't receive, not even if you cc yourself. So I'd start by copying your config to your laptop, then just ask yourself what you need to change so that mail to "local" users is sent to the smarthost. Once mail to yourself goes to smarthost, you're probably almost there. -- Jeff Abrahamson +33 6 24 40 01 57 +44 7920 594 255 http://p27.eu/jeff/ http://transport-nantes.com/