Koozali.org: home of the SME Server

Problems with Pseudonyms and Email

Offline j_radue

  • **
  • 31
  • +0/-0
Problems with Pseudonyms and Email
« on: December 08, 2017, 09:55:10 PM »
I reinstalled my SME 9.2 on a new server and used my backup to restore.  Everything seems to work fine except pseudonyms are no longer recognized by Zarafa.  An email sent using the account name works fine, but pseudonyms are diverted to the admin email.  Where do I look to find the cause?  Also, when I try to modify an existing pseudonym, I get an error from the server panel.



Any idea where I need to look to solve this?  Also,  I have received a similar error while trying to modify mail settings in the panel also.

Offline mmccarn

  • *
  • 2,656
  • +10/-0
Re: Problems with Pseudonyms and Email
« Reply #1 on: December 09, 2017, 12:48:34 PM »
I discovered on my SME 9.2 system that none of the old-style pseudonyms had been created -- but I don't use them, so I never knew.

Running this command re-created all of the expected pseudonyms:
Code: [Select]
/etc/e-smith/events/actions/update-user-pseudonyms
Creating new users in server-manager does create the expected pseudonyms, so this seems to be a backup/restore issue.


Offline j_radue

  • **
  • 31
  • +0/-0
Re: Problems with Pseudonyms and Email
« Reply #2 on: December 09, 2017, 02:30:50 PM »
Thanks for the reply.  I tried that command and it still does not work.  I also get the error above when I try to modify the list.  Do I need to reboot the system after that command?

Online Stefano

  • *
  • 10,894
  • +3/-0
Re: Problems with Pseudonyms and Email
« Reply #3 on: December 09, 2017, 02:47:18 PM »
Take a look in /var/log/messages, you'd find the error

Offline j_radue

  • **
  • 31
  • +0/-0
Re: Problems with Pseudonyms and Email
« Reply #4 on: December 09, 2017, 02:53:30 PM »
Here's a segment that appears to deal with pseudos

 Dec  9 07:29:07 athlon-server esmith::event[3170]: expanding /var/qmail/control/badrcptto
Dec  9 07:29:07 athlon-server esmith::event[3170]: expanding /var/qmail/control/virtualdomains
Dec  9 07:29:07 athlon-server esmith::event[3170]: generic_template_expand=action|Event|pseudonym-modify|Action|generic_template_expand|Start|1512826147 701447|End|1512826147 925779|Elapsed|0.224332
Dec  9 07:29:07 athlon-server esmith::event[3170]: Running event handler: /etc/e-smith/events/pseudonym-modify/S55email-assign
Dec  9 07:29:07 athlon-server esmith::event[3170]: qmail-newu: fatal: bad format in users/assign
Dec  9 07:29:07 athlon-server esmith::event[3170]: S55email-assign=action|Event|pseudonym-modify|Action|S55email-assign|Start|1512826147 925941|End|1512826147 934867|Elapsed|0.008926|Status|28416
Dec  9 07:29:07 athlon-server esmith::event[3170]: Running event handler: /etc/e-smith/events/actions/adjust-services
Dec  9 07:29:07 athlon-server esmith::event[3170]: adjusting supervised qmail (sighup)
Dec  9 07:29:07 athlon-server esmith::event[3170]: adjusting supervised qmail (up)
Dec  9 07:29:07 athlon-server esmith::event[3170]: adjust-services=action|Event|pseudonym-modify|Action|adjust-services|Start|1512826147 935093|End|1512826147 988335|Elapsed|0.053242

Offline j_radue

  • **
  • 31
  • +0/-0
Re: Problems with Pseudonyms and Email
« Reply #5 on: December 09, 2017, 02:57:22 PM »
And here is what happens when I try to change mail settings and get the error above.

Dec  9 07:55:16 athlon-server esmith::event[4145]: generic_template_expand=action|Event|email-update|Action|generic_template_expand|Start|1512827714 444767|End|1512827716 718976|Elapsed|2.274209
Dec  9 07:55:16 athlon-server esmith::event[4145]: Running event handler: /etc/e-smith/events/email-update/S20qmail-update-user
Dec  9 07:55:16 athlon-server esmith::event[4145]: Can't call method "dir" on an undefined value at /etc/e-smith/events/email-update/S20qmail-update-user line 57.
Dec  9 07:55:16 athlon-server esmith::event[4145]: S20qmail-update-user=action|Event|email-update|Action|S20qmail-update-user|Start|1512827716 719124|End|1512827716 773609|Elapsed|0.054485|Status|65280
Dec  9 07:55:16 athlon-server esmith::event[4145]: Running event handler: /etc/e-smith/events/email-update/S30domains-update-dkim
Dec  9 07:55:16 athlon-server esmith::event[4145]: S30domains-update-dkim=action|Event|email-update|Action|S30domains-update-dkim|Start|1512827716 773734|End|1512827716 819249|Elapsed|0.045515
Dec  9 07:55:16 athlon-server esmith::event[4145]: Running event handler: /etc/e-smith/events/actions/adjust-services

Offline j_radue

  • **
  • 31
  • +0/-0
Re: Problems with Pseudonyms and Email
« Reply #6 on: December 09, 2017, 04:51:46 PM »
I discovered on my SME 9.2 system that none of the old-style pseudonyms had been created -- but I don't use them, so I never knew.

Running this command re-created all of the expected pseudonyms:
Code: [Select]
/etc/e-smith/events/actions/update-user-pseudonyms
Creating new users in server-manager does create the expected pseudonyms, so this seems to be a backup/restore issue.


I tried creating a new user and received the following error:



However, the new user appears in the list.  There are pseudo's created for the new  account, but when I try to modify them I get the following in the log file.

 generic_template_expand=action|Event|pseudonym-create|Action|generic_template_expand|Start|1512834586 48013|End|1512834586 140295|Elapsed|0.092282
Dec  9 09:49:46 athlon-server esmith::event[8519]: Running event handler: /etc/e-smith/events/pseudonym-create/S55email-assign
Dec  9 09:49:46 athlon-server esmith::event[8519]: qmail-newu: fatal: bad format in users/assign
Dec  9 09:49:46 athlon-server esmith::event[8519]: S55email-assign=action|Event|pseudonym-create|Action|S55email-assign|Start|1512834586 140443|End|1512834586 141305|Elapsed|0.000862|Status|28416
Dec  9 09:49:46 athlon-server esmith::event[8519]: Running event handler: /etc/e-smith/events/actions/adjust-services
Dec  9 09:49:46 athlon-server esmith::event[8519]: adjusting supervised qmail (sighup)
Dec  9 09:49:46 athlon-server esmith::event[8519]: adjusting supervised qmail (up)
Dec  9 09:49:46 athlon-server esmith::event[8519]: adjust-services=action|Event|pseudonym-create|Action|adjust-services|Start|1512834586 141399|End|1512834586 182526|Elapsed|0.041127

Offline Jean-Philippe Pialasse

  • *
  • 2,912
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Problems with Pseudonyms and Email
« Reply #7 on: December 09, 2017, 06:16:46 PM »
Dec  9 07:55:16 athlon-server esmith::event[4145]: Can't call method "dir" on an undefined value at /etc/e-smith/events/email-update/S20qmail-update-user line 57.


This seems like where to look for your issue

How did you populate/restore the server?

Offline j_radue

  • **
  • 31
  • +0/-0
Re: Problems with Pseudonyms and Email
« Reply #8 on: December 09, 2017, 06:34:15 PM »
I used restore from desktop from the server console.  How can I fix this?????

Offline j_radue

  • **
  • 31
  • +0/-0
Re: Problems with Pseudonyms and Email
« Reply #9 on: December 10, 2017, 12:26:41 AM »
Problem solved by brute force. I deleted the users having trouble and recreated them.  A bit of a pain but it fixed the problem.

Offline Jean-Philippe Pialasse

  • *
  • 2,912
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Problems with Pseudonyms and Email
« Reply #10 on: December 10, 2017, 03:13:25 AM »
Problem solved by brute force. I deleted the users having trouble and recreated them.  A bit of a pain but it fixed the problem.

my guess is that the users have not been recreated and were not in the unix files.

Offline j_radue

  • **
  • 31
  • +0/-0
Re: Problems with Pseudonyms and Email
« Reply #11 on: December 10, 2017, 03:19:24 AM »
Thanks for your input in to this ...