> As a total noob and a future potential user of this, I'm curious if
> there's a way to specify $ID on the command-line, in an environment
> variable or something like that? Or if it would be relatively painless
> to add support for this? Overwriting a config file seems a little
> hackish, especially if multiple qpsmtpds may be started in parallel...
It never occured to me to do other than make a file, but an env-var
wouldn't be difficult to support. I use a separate checkout of qpsmtpd for
each running instance, but at the moment I can't think of a reason that
running all out of one checkout with the env-var $ID wouldn't be safe.
I'll include this or a similar change in my next patch version:
- my $id = $self->_perhost_config_from_file("$basedir/PERHOST/id",
'perhost/id');
+ my $id = $ENV{QPSMTPD_PERHOST_ID} ||
$self->_perhost_config_from_file("$basedir/PERHOST/id", 'perhost/id');
Brian