Asterisk maillog errors after freePBX upgrade

NethServer Version: 7.9.2009
Module: FreePBX

I upgraded all of the freePBX modules yesterday and now getting the following error messages in maillog:

Jun 23 02:39:26 server postfix/pickup[26649]: 11230410C1: uid=984 from=<asterisk>
Jun 23 02:39:26 server postfix/cleanup[18907]: 11230410C1: message-id=<20210623003926.11230410C1@server.x>
Jun 23 02:39:26 server opendkim[1568]: 11230410C1: no signing table match for 'asterisk@server.x'
Jun 23 02:39:26 server postfix/qmgr[1679]: 11230410C1: from=<asterisk@server.x>, size=1104, nrcpt=1 (queue active)
Jun 23 02:39:26 server postfix/trivial-rewrite[30026]: warning: do not list domain server.x in BOTH mydestination and virtual_alias_domains
Jun 23 02:39:26 server dovecot: lmtp(31302): Connect from local
Jun 23 02:39:26 server postfix/lmtp[26329]: 11230410C1: to=<asterisk@server.x>, orig_to=<asterisk>, relay=server.x[/var/run/dovecot/lmtp], delay=0.03, delays=0.01/0/0.01/0.01, dsn=5.1.1, status=bounced (host server.x[/var/run/dovecot/lmtp] said: 550 5.1.1 <asterisk@server.x> User doesn't exist: asterisk@server.x (in reply to RCPT TO command))
Jun 23 02:39:26 server dovecot: lmtp(31302): Disconnect from local: Successful quit
Jun 23 02:39:26 server postfix/cleanup[18907]: 182EC35D49E: message-id=<20210623003926.182EC35D49E@server.x>
Jun 23 02:39:26 server postfix/qmgr[1679]: 182EC35D49E: from=<>, size=3307, nrcpt=1 (queue active)
Jun 23 02:39:26 server postfix/bounce[26658]: 11230410C1: sender non-delivery notification: 182EC35D49E
Jun 23 02:39:26 server postfix/trivial-rewrite[30026]: warning: do not list domain server.x in BOTH mydestination and virtual_alias_domains
Jun 23 02:39:26 server postfix/qmgr[1679]: 11230410C1: removed
Jun 23 02:39:26 server dovecot: lmtp(31302): Connect from local
Jun 23 02:39:26 server postfix/lmtp[26329]: 182EC35D49E: to=<asterisk@server.x>, relay=server.x[/var/run/dovecot/lmtp], delay=0.01, delays=0.01/0/0/0, dsn=5.1.1, status=bounced (host server.x[/var/run/dovecot/lmtp] said: 550 5.1.1 <asterisk@server.x> User doesn't exist: asterisk@server.x (in reply to RCPT TO command))
Jun 23 02:39:26 server postfix/qmgr[1679]: 182EC35D49E: removed
Jun 23 02:39:26 server dovecot: lmtp(31302): Disconnect from local: Successful quit

server.x is the internal hostname, where x is the real domain used for real mailing too.

Barely found any useful info online.

One of them was the openDKIM might have CR line endings, but checked it is only only LF (and mailing works fine).

I ran out of ideas :confused:

Shall I make an asterisk user (with what credentials)?

Anyone else having freePBX and Email modules installed: may you please check the error log (after upgrading the freePBX modules - at your own risk of course…)?

Alright, I have added an asterisk@* alias to the Addresses in Emails, which solved this problem.

It was caused by the server tried to send the following cron error message by email:

PHP Parse error:  syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /var/www/html/freepbx/admin/libraries/Composer/vendor/symfony/translation/Translator.php on line 90

I tried to solve it with php scl, but no luck yet.

After adding scl enable rh-php56 to the crontab, it works one and then the crontab gets overwritten to the original value.

It looks like /home/asterisk/.bash_profile has no effect on cron jobs of asterisk. I tried the following there:

source scl_source enable rh-php56

Edit: reinstalled FreePBX and it looks like everything works now.

1 Like