Page 1 of 1

New User Notification e-mail

Posted: Thu Nov 26, 2020 1:44 pm
by marius
Good day.
I'm running forma version 2.3.0 for a client and have an external SMTP mail server setup with the correct settings in the config.php file.

When a new user is created, the user does not receive his notification. I've checked the Event manager and the "user has been created" event is set to Mandatory and the Email tick box is ticked.

All other e-mails from the system is working correctly including the Lost Password / Lost Username e-mails. They are all sent through the mail server and are received by the users. Where could I check for a possible problem or configuration issue?

Re: New User Notification e-mail

Posted: Thu Nov 26, 2020 2:39 pm
by alfa24
What creation are you referring to?
- Self registration by the user himself?
- Registration by admin in the backend?
- Massive registration by admin in the backend?

Is the mail notification missing in all three cases?

Re: New User Notification e-mail

Posted: Thu Nov 26, 2020 2:51 pm
by marius
I'm referring to Registration by admin in both single user creation as well as csv upload. The users are created but the notification is not sent.

I've just set the smtp_debug value to 1 - as below and received the following response when importing a CSV:

Mail config:
cfg['use_smtp_database'] = 'off';
$cfg['use_smtp'] = 'on';
$cfg['smtp_host'] = 'mailserver.domain.com'; //changed for security
$cfg['smtp_port'] = '465';
$cfg['smtp_secure'] = 'ssl';
$cfg['smtp_auto_tls'] = 'false';
$cfg['smtp_user'] = 'noreply@domain.com'; //changed for security
$cfg['smtp_pwd'] = 'emails/password';
$cfg['smtp_debug'] = '1'; // Options: debug level 0,1,2,3,...

debug response:
2020-11-26 13:39:47 CLIENT -> SERVER: EHLO mailserver.domain.com
2020-11-26 13:39:47 CLIENT -> SERVER: AUTH LOGIN
2020-11-26 13:39:47 CLIENT -> SERVER: bm9yZXBseUBlbnNpbm8uY28uemE=
2020-11-26 13:39:48 CLIENT -> SERVER: REBya00wMG4vZW5zaW5v
2020-11-26 13:39:48 CLIENT -> SERVER: MAIL FROM:
2020-11-26 13:39:48 CLIENT -> SERVER: RCPT TO:
2020-11-26 13:39:48 SMTP ERROR: RCPT TO command failed: 550-Verification failed for 550-No Such User Here 550 Sender verify failed
2020-11-26 13:39:48 CLIENT -> SERVER: QUIT
2020-11-26 13:39:48 SMTP Error: The following recipients failed: marius@agrikey.co.za: Verification failed for No Such User Here Sender verify failed

Re: New User Notification e-mail

Posted: Thu Nov 26, 2020 3:03 pm
by marius
I was able to fix the issue. I set all the communication e-mail addresses within the System Configuration -> Settings page on the admin site to exactly the same address as specified within the SMTP config in the config.php file. This seems to have fixed the Verification failed issue.

Thx

Re: New User Notification e-mail

Posted: Thu Nov 26, 2020 3:08 pm
by max
Hi Marius,

glad that you solved, let me just specify one thing: when uploading from a .csv, the email can only be sent if you tick the appropriate box upon uploading.

Re: New User Notification e-mail

Posted: Thu Nov 26, 2020 3:15 pm
by alfa24
MAIL FROM should be set to a bounce address at your domain, with the destination email encoded in VERP.
RCPT TO gets set to the destination email, <shot@localhost>.

This said, those errors comes from your smtp server and you have to investigate there. Raise the debug level for your mailer, and ensure the mail from is within the domain of the user is authenticating.

Re: New User Notification e-mail

Posted: Thu Nov 26, 2020 3:18 pm
by marius
Thank you for the responses - I'll continue to test on our test server with various debug levels. I'd like to keep the responding e-mail addresses separate according to function (as in the System Configuration page) and will update this page with any valuable info.