[Spce-user] Voicemails are sent from asterisk at spce

Guillem Jover gjover at sipwise.com
Tue Jan 16 10:43:53 EST 2024


Hi!

On Mon, 2024-01-15 at 09:39:29 +0100, Jiri Ptacnik wrote:
> I do not have any "spce" in config.yml but it is always coming back
> after ngcpcfg-apply. In network.yml is nodename=spce but if I change
> it, bad things happens... (invalid schema detected)
> So "spce" is back in "etc/hosts" and probably from there it is taken
> to "/etc/exim4/update-exim4.conf.conf" and also into "etc/mailname".

The system has three different names, there's the system hostname
(from /etc/hostname), there's the ngcp-hostname (from
/etc/ngcp_hostname), and the ngcp-nodename (from /etc/ngcp_nodename).

The hostname in /etc/hostname in theory could be anything you decide,
if that breaks we'd consider that a bug. The distinction between the
ngcp-hostname and ngcp-nodename is mostly relevant on Carriers, were
nodename could be sp1 and hostname web01a; for PRO both would be sp1
for example. The ngcp-* names and the ones in network.yml should not
be changed as these are what the platform uses as rendezvous points.

> In a right way, it should all be generated from config.yml or other
> yml files, but I am not able to find, from where is "spce" coming.
> 
> Another weird thing is, "etc/hosts" is also rewritten after
> ngcpcfg-apply with this "127.0.0.2 spce. spce".
> 
> My mail only works, when I rewrite manualy etc/hosts and when I
> replace "127.0.0.2 spce. spce" with something else, for example with
> "123.123.123.123 my.server.com my"

I looked into this, and the templates for /etc/mailname and
/etc/exim4/update-exim4.conf.conf.tt2 did not handle the email.domain
and email.hostname settings in the same way as in
/etc/exim4/exim4.conf.localmacros, which was making the email headers
use incorrect names. I've prepared fixes for this for trunk, which
should probably appear later today also on previous releases once I've
also prepared backports.

Just a note that, when setting email.domain, then email.hostname
should not contain a FQDN, and only a hostname, which is the other
part that you noticed being duplicate in Vova's mail headers. So
in his config it should have been instead something like:

  ,--- config.yml ---
  email:
    domain: 'spce-test.lab.com'
    hostname: 'test-node'
  `---

Thanks,
Guillem



More information about the Spce-user mailing list