Re: Add --version option to postfix

2014-09-29 Thread Peter
On 09/28/2014 04:07 AM, Wietse Venema wrote: > Would an updated postfinger command help? Would it be asking too much for a simple -v (or -V) flag to be added to postconf, and if possible, the "postfix" binary, and other binaries included with postfix that would output something like the following:

Re: Add --version option to postfix

2014-09-29 Thread Charles Marcus
On 9/29/2014 9:02 AM, Eray Aslan wrote: > On Mon, Sep 29, 2014 at 08:13:38AM -0400, Charles Marcus wrote: >> On 9/28/2014 3:01 PM, LuKreme wrote: >>> Yes, it’s (postfinger) a separate package. >> Yeah, and unavailable in gentoo repo... :( > It is a shell script. You can just download and run i

Re: Add --version option to postfix

2014-09-29 Thread Eray Aslan
On Mon, Sep 29, 2014 at 08:13:38AM -0400, Charles Marcus wrote: > On 9/28/2014 3:01 PM, LuKreme wrote: > > Yes, it’s (postfinger) a separate package. > > Yeah, and unavailable in gentoo repo... :( It is a shell script. You can just download and run it on your system. -- Eray

Re: Add --version option to postfix

2014-09-29 Thread Charles Marcus
On 9/28/2014 3:01 PM, LuKreme wrote: > Yes, it’s (postfinger) a separate package. Yeah, and unavailable in gentoo repo... :(

Re: Add --version option to postfix

2014-09-28 Thread LuKreme
> On 28 Sep 2014, at 09:53 , Charles Marcus wrote: > > On 9/28/2014 10:57 AM, LuKreme wrote: >> On 27 Sep 2014, at 09:19 , Charles Marcus wrote: On 9/27/2014 11:07 AM, wie...@porcupine.org (Wietse Venema) wrote: >> Would an updated postfinger command help? Wietse We

Re: Add --version option to postfix

2014-09-28 Thread Charles Marcus
On 9/28/2014 10:57 AM, LuKreme wrote: > On 27 Sep 2014, at 09:19 , Charles Marcus wrote: >> > On 9/27/2014 11:07 AM, wie...@porcupine.org (Wietse Venema) >> > wrote: >>> >> Would an updated postfinger command help? Wietse >> > >> > Well... if it could provide the output I described, then cert

Re: Add --version option to postfix

2014-09-28 Thread LuKreme
On 27 Sep 2014, at 09:19 , Charles Marcus wrote: > On 9/27/2014 11:07 AM, wie...@porcupine.org (Wietse Venema) > wrote: >> Would an updated postfinger command help? Wietse > > Well... if it could provide the output I described, then certainly. The > suggestion for a new command was just to il

Re: Add --version option to postfix

2014-09-27 Thread Viktor Dukhovni
On Sat, Sep 27, 2014 at 03:14:11PM -0400, Wietse Venema wrote: > Viktor Dukhovni: > > On Sat, Sep 27, 2014 at 02:51:37PM -0400, Wietse Venema wrote: > > > > > > In other respects, is the rest of the patch sound (correct and > > > > useful)? I am not advocating that the patch be adopted, just usin

Re: Add --version option to postfix

2014-09-27 Thread Wietse Venema
Viktor Dukhovni: > On Sat, Sep 27, 2014 at 02:51:37PM -0400, Wietse Venema wrote: > > > > In other respects, is the rest of the patch sound (correct and > > > useful)? I am not advocating that the patch be adopted, just using > > > > postconf does not suppress parameters based on string compariso

Re: Add --version option to postfix

2014-09-27 Thread Viktor Dukhovni
On Sat, Sep 27, 2014 at 02:51:37PM -0400, Wietse Venema wrote: > > In other respects, is the rest of the patch sound (correct and > > useful)? I am not advocating that the patch be adopted, just using > > postconf does not suppress parameters based on string comparison. > Instead, suppression is

Re: Add --version option to postfix

2014-09-27 Thread Wietse Venema
Viktor Dukhovni: > On Sat, Sep 27, 2014 at 02:23:12PM -0400, Wietse Venema wrote: > > > > +if ((config_dir = safe_getenv(CONF_ENV_PATH)) != 0 && > > > + strcmp(config_dir, DEF_CONFIG_DIR) != 0) { > > > > I prefer not to lie in software. Thus, config_dir will show up in > > "postconf -n" outp

Re: Add --version option to postfix

2014-09-27 Thread Viktor Dukhovni
On Sat, Sep 27, 2014 at 02:23:12PM -0400, Wietse Venema wrote: > > +if ((config_dir = safe_getenv(CONF_ENV_PATH)) != 0 && > > +strcmp(config_dir, DEF_CONFIG_DIR) != 0) { > > I prefer not to lie in software. Thus, config_dir will show up in > "postconf -n" output when there is any override

Re: Add --version option to postfix

2014-09-27 Thread Wietse Venema
Viktor Dukhovni: > On Sat, Sep 27, 2014 at 11:41:08AM -0400, b...@bitrate.net wrote: > > > you read my mind. thanks for this detail. > > If nevertheless it is desirable to have "postconf -n" suppress any > "external" value of "config_directory" for the primary instance, > then the patch below ma

Re: Add --version option to postfix

2014-09-27 Thread Viktor Dukhovni
On Sat, Sep 27, 2014 at 11:41:08AM -0400, b...@bitrate.net wrote: > you read my mind. thanks for this detail. If nevertheless it is desirable to have "postconf -n" suppress any "external" value of "config_directory" for the primary instance, then the patch below may do the job. It is not clear

Re: Add --version option to postfix

2014-09-27 Thread btb
On Sep 27, 2014, at 11.20, Viktor Dukhovni wrote: > On Sat, Sep 27, 2014 at 10:42:27AM -0400, Wietse Venema wrote: > >>> [root@mail-gw:~]$ postconf -n | grep config_directory >>> config_directory = /etc/postfix >> >> You're welcome to fix that. I'm now working on other things, >> supporting p

Re: Add --version option to postfix

2014-09-27 Thread btb
On Sep 27, 2014, at 10.32, Wietse Venema wrote: > b...@bitrate.net: >> On Sep 27, 2014, at 07.48, Wietse Venema wrote: >> >>> Use "postconf -d", not "postconf -n". -n is for settings in the >>> configuration file, -d is for the built-in settings which include >>> the version, release date, and

Re: Add --version option to postfix

2014-09-27 Thread Viktor Dukhovni
On Sat, Sep 27, 2014 at 10:42:27AM -0400, Wietse Venema wrote: > > [root@mail-gw:~]$ postconf -n | grep config_directory > > config_directory = /etc/postfix > > You're welcome to fix that. I'm now working on other things, > supporting per-milter and per-policy service settings. There's a subtle

Re: Add --version option to postfix

2014-09-27 Thread Charles Marcus
On 9/27/2014 11:07 AM, wie...@porcupine.org (Wietse Venema) wrote: Would an updated postfinger command help? Wietse Well... if it could provide the output I described, then certainly. The suggestion for a new command was just to illustrate I was saying it didn't have to be a postconf command

Re: Add --version option to postfix

2014-09-27 Thread btb
On Sep 27, 2014, at 10.42, Viktor Dukhovni wrote: > On Sat, Sep 27, 2014 at 10:24:13AM -0400, b...@bitrate.net wrote: > >> On Sep 27, 2014, at 07.48, Wietse Venema wrote: >> >>> Use "postconf -d", not "postconf -n". -n is for settings in the >>> configuration file, -d is for the built-in setti

Re: Add --version option to postfix

2014-09-27 Thread Wietse Venema
Charles Marcus: > On 9/27/2014 7:48 AM, wie...@porcupine.org (Wietse Venema) > wrote: > > Use "postconf -d", not "postconf -n". -n is for settings in the > > configuration file, -d is for the built-in settings which include > > the version, release date, and so on. > > Thanks Wietse... > > Plea

Re: Add --version option to postfix

2014-09-27 Thread Charles Marcus
On 9/27/2014 7:48 AM, wie...@porcupine.org (Wietse Venema) wrote: Use "postconf -d", not "postconf -n". -n is for settings in the configuration file, -d is for the built-in settings which include the version, release date, and so on. Thanks Wietse... Please understand that what follows is jus

Re: Add --version option to postfix

2014-09-27 Thread Wietse Venema
li...@rhsoft.net: > >> i suppose the question was why it is part of "postconf -n" > >> output while it is not mentioned in "main.cf" and so should > >> only appear in "postconf -d" > >> > >> [root@mail-gw:~]$ cat main.cf | grep config_directory > >> [root@mail-gw:~]$ postconf -n | grep config_direc

Re: Add --version option to postfix

2014-09-27 Thread li...@rhsoft.net
Am 27.09.2014 um 16:42 schrieb Wietse Venema: > li...@rhsoft.net: >> Am 27.09.2014 um 16:32 schrieb Wietse Venema: >>> b...@bitrate.net: On Sep 27, 2014, at 07.48, Wietse Venema wrote: > Use "postconf -d", not "postconf -n". -n is for settings in the > configuration file, -d is

Re: Add --version option to postfix

2014-09-27 Thread Viktor Dukhovni
On Sat, Sep 27, 2014 at 10:24:13AM -0400, b...@bitrate.net wrote: > On Sep 27, 2014, at 07.48, Wietse Venema wrote: > > > Use "postconf -d", not "postconf -n". -n is for settings in the > > configuration file, -d is for the built-in settings which include > > the version, release date, and so on

Re: Add --version option to postfix

2014-09-27 Thread Wietse Venema
li...@rhsoft.net: > Am 27.09.2014 um 16:32 schrieb Wietse Venema: > > b...@bitrate.net: > >> On Sep 27, 2014, at 07.48, Wietse Venema wrote: > >> > >>> Use "postconf -d", not "postconf -n". -n is for settings in the > >>> configuration file, -d is for the built-in settings which include > >>> the

Re: Add --version option to postfix

2014-09-27 Thread li...@rhsoft.net
Am 27.09.2014 um 16:32 schrieb Wietse Venema: > b...@bitrate.net: >> On Sep 27, 2014, at 07.48, Wietse Venema wrote: >> >>> Use "postconf -d", not "postconf -n". -n is for settings in the >>> configuration file, -d is for the built-in settings which include >>> the version, release date, and so o

Re: Add --version option to postfix

2014-09-27 Thread Wietse Venema
b...@bitrate.net: > On Sep 27, 2014, at 07.48, Wietse Venema wrote: > > > Use "postconf -d", not "postconf -n". -n is for settings in the > > configuration file, -d is for the built-in settings which include > > the version, release date, and so on. > > this reminds me - some time long ago, i ha

Re: Add --version option to postfix

2014-09-27 Thread btb
On Sep 27, 2014, at 07.48, Wietse Venema wrote: > Use "postconf -d", not "postconf -n". -n is for settings in the > configuration file, -d is for the built-in settings which include > the version, release date, and so on. this reminds me - some time long ago, i happened to notice that config_di

Re: Add --version option to postfix

2014-09-27 Thread Wietse Venema
Use "postconf -d", not "postconf -n". -n is for settings in the configuration file, -d is for the built-in settings which include the version, release date, and so on. Wietse Charles Marcus: > I asked a long time ago if the postfix version could be added to the > postconf -n output (like

Re: Add --version option to postfix

2014-09-27 Thread Charles Marcus
I asked a long time ago if the postfix version could be added to the postconf -n output (like dovecot does), but was told it wasn't possible for some technical reason I didn't understand... On 9/26/2014 9:42 PM, Karl-Philipp wrote: Hi together, In order to figure out the version of a program

Re: Add --version option to postfix

2014-09-27 Thread phil
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 27/09/14 12:07, Viktor Dukhovni wrote: > On Sat, Sep 27, 2014 at 03:50:24AM +0200, Benny Pedersen wrote: > >> .> In order to figure out the version of a program it is common >> to make >>> the binary print it to stdout if it is invoked with the >>

Re: Add --version option to postfix

2014-09-26 Thread Viktor Dukhovni
On Sat, Sep 27, 2014 at 03:50:24AM +0200, Benny Pedersen wrote: > .> In order to figure out the version of a program it is common to make > >the binary print it to stdout if it is invoked with the `--version` > >option. The `postfix` binary should provide it as well. Sorry, Postfix does not suppo

Re: Add --version option to postfix

2014-09-26 Thread Benny Pedersen
On September 27, 2014 3:42:50 AM Karl-Philipp wrote: .> In order to figure out the version of a program it is common to make the binary print it to stdout if it is invoked with the `--version` option. The `postfix` binary should provide it as well. Stop postfix, see syslog, postfix version xx

Add --version option to postfix

2014-09-26 Thread Karl-Philipp
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi together, In order to figure out the version of a program it is common to make the binary print it to stdout if it is invoked with the `--version` option. The `postfix` binary should provide it as well. - -Kalle -BEGIN PGP SIGNATURE- Versio