Config: command not found

NethServer release 7.3.1611

  • fresh install as an email server (thanks devs/supporters !); tweaking to get gmail users not get bounce backs to my domain

  • first tweak is modifying the HELO response; per the docs:

config setprop postfix HeloHost myhelo.example.com
signal-event nethserver-mail-common-save

  • response is:

bash: config: command not found

Any ideas ?

The config command is in /sbin/e-smith/ directory. It is added to root’s $PATH. If Bash does not find that command it’s for one of the following reasons

  • the shell is not Bash
  • the current user is not root
  • the PATH has been modified

Please paste here the output of the following commands:

echo $BASH_VERSION
id
echo $PATH
1 Like

Fresh install with just the email module added

[admin@mail ~]$ su
Password:
[root@mail admin]# config setprop postfix HeloHost xxx-xxxx.com
bash: config: command not found
[root@mail admin]# echo $BASH_VERSION
4.2.46(1)-release
[root@mail admin]# id
uid=0(root) gid=0(root) groups=0(root)
[root@mail admin]# echo $PATH
/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/admin/.local/bin:/home/admin/bin

Hi, as @davidep pointed, just add e-smith to the PATH, issue the command:
PATH=/sbin/e-smith:$PATH

Cheers

1 Like

The correct command is

su -

The “-” (minus) character is important: it runs a login shell where PATH is correctly evaluated.

…and the shell runs with su and is not a login one

/sigh

Thanks !