As I said it is a package for users to install and use through the UI and not for sys admins play with the shell :) I must say dovecot looks like does not even provide a way to change prefix at runtime.
I have build an isolated Syncloud package (with few paths hard-coded) so it is not relocatable for now. I hope things will change over time as zero-deps packages (like snap) start to spread and people will tend to build less from source code and these questions will start arising. In case anyone is interested: https://github.com/syncloud/3rdparty/tree/master/postfix https://github.com/syncloud/3rdparty/tree/master/dovecot https://github.com/syncloud/mail Thanks On Mon, Aug 21, 2017 at 2:28 AM, Viktor Dukhovni <postfix-us...@dukhovni.org> wrote: > >> On Aug 20, 2017, at 8:46 PM, Boris Rybalkin <ribal...@gmail.com> wrote: >> >> Let's say I am packaging all those tools myself and I would like to build a >> relocatable package, is it possible to not have null-client? > > Will Postfix be responsible for delivering locally generated email > that is injected not via SMTP, but via /usr/sbin/sendmail? If so, > the sendmail(1) command needs to know where to find the Postfix > configuration files, queue-directory etc. Various things that > send email (like e.g. cron) will not be passing around a non-default > config directory, and in any case you still typically need the default > configuration directory in order to use (another) (non-default) > configuration directory. > > Postfix is not a small relocatable application, it is a system of > multiple interacting components operating at different privilege > levels (including "root" for master(8) and local(8) so it can run > as other users), maintaining state in queue directories, listening > on network ports, ...). > >> Just to explain why do I need all this. >> This is all for syncloud.org open source project where we package popular >> services (mail, files, social network) for end-user's personal use on >> single-board computers (at the moment). > > Postfix should be a core component of the system (even if optional), > that is packaged in a fixed location. > >> So we would like to package with zero paths in binary and be able to change >> location if needed. > > A good idea for various software, especially to support concurrent > multiple versions, but Postfix is not the right software for this > type of deployment. > > -- > Viktor. -- Boris Rybalkin ribal...@gmail.com