SmarterMail 100.x +...
 
Notifications
Clear all

[Solved] SmarterMail 100.x + Provider Bugs

94 Posts
4 Users
6 Reactions
281 Views
Posts: 132
Topic starter
(@enguard)
Estimable Member
Joined: 6 years ago

It was due to the other mail servers missing the defaultdomainhostname and mail.[DOMAIN_NAME] rows. I've manually entered them and it is working now.

Posts: 132
Topic starter
(@enguard)
Estimable Member
Joined: 6 years ago

I'm running into an issue trying to import a mail domain. Nothing is happening in the GUI and there is an error message in the Event Viewer:

[11/25/2024 1:26:02 PM] ERROR: 'SmarterMail 100.x +' DomainAliasExists

System.Exception: Could not get the list of mail domain aliases ---> System.NullReferenceException: Object reference not set to an instance of an object.

   at SolidCP.Providers.Mail.SmarterMail100.GetDomainAliases(String domainName)

   --- End of inner exception stack trace ---

   at SolidCP.Providers.Mail.SmarterMail100.GetDomainAliases(String domainName)

   at SolidCP.Server.MailServer.GetDomainAliases(String domainName)

3 Replies
(@enguard)
Joined: 6 years ago

Estimable Member
Posts: 132

From my testing so far, importing a mail domain from the smartermail server only works if there is a Domain Alias attached to it. 

Screenshot 2024 11 25 at 1.54.24 PM

 

Admin
(@trobinson)
Joined: 9 years ago

Noble Member
Posts: 1500

@enguard This should be fixed now in the latest code. It wasnt correctly handling no aliases.

(@enguard)
Joined: 6 years ago

Estimable Member
Posts: 132
Posts: 132
Topic starter
(@enguard)
Estimable Member
Joined: 6 years ago

We are unable to detach and re-import "some" (not all) domains that contain a lot of mail aliases and groups.

 

Here is the error messages from Event Viewer:

[11/26/2024 11:44:30 AM] ERROR: 'SmarterMail 100.x +' GetGroups

System.Exception: Could not get the list of mail domain groups ---> System.NullReferenceException: Object reference not set to an instance of an object.

   at SolidCP.Providers.Mail.SmarterMail100.GetGroups(String domainName)

   --- End of inner exception stack trace ---

   at SolidCP.Providers.Mail.SmarterMail100.GetGroups(String domainName)

   at SolidCP.Server.MailServer.GetGroups(String domainName)

 

Here is the error from SolidCP error log:

SolidCP.EnterpriseServer.MailServerController.IsQuotasWillExceed(Int32 packageId, MailServer mailServer, String domainName)

 

The workaround right now is to temporarily change to the SM10 provider in order to re-import the domain. But once I switch it back to the SM100 provider, I am unable to modify any of the existing groups, forcing us to go back to the SM10 in order for the customer to modify their groups.

2 Replies
(@enguard)
Joined: 6 years ago

Estimable Member
Posts: 132

Heres another error log from SolidCP:

Can't import item
Server was unable to process request. ---> Could not get the list of mail domain groups ---> Object reference not set to an instance of an object.
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at SolidCP.Providers.Mail.MailServer.GetGroups(String domainName)
at SolidCP.EnterpriseServer.MailServerController.IsQuotasWillExceed(Int32 packageId, MailServer mailServer, String domainName)
at SolidCP.EnterpriseServer.MailServerController.ImportItem(Int32 packageId, Int32 itemTypeId, Type itemType, ResourceGroupInfo group, String itemName)
at SolidCP.EnterpriseServer.ImportController.ImportItemsInternal(String taskId, Int32 packageId, String[] items)

(@enguard)
Joined: 6 years ago

Estimable Member
Posts: 132

It's not just an importing issue. The SM100 Provider is not working with "existing" groups on the SM server. It doesn't pull in the correct list of email addresses from SM into SCP. I am able to add an email address to some groups in SCP and it reflects in SM but not others. There are no error messages but I am pretty sure it's related to above.

Posts: 19
 jack
(@jack)
Eminent Member
Joined: 6 years ago

yes, same error

[11/27/2024 4:22:58 PM] ERROR: 'SmarterMail 100.x +' GetGroups
System.Exception: Could not get the list of mail domain groups ---> System.NullReferenceException: Object reference not set to an instance of an object.
at SolidCP.Providers.Mail.SmarterMail100.GetGroups(String domainName)
--- End of inner exception stack trace ---
at SolidCP.Providers.Mail.SmarterMail100.GetGroups(String domainName)
at SolidCP.Server.MailServer.GetGroups(String domainName)

 

 

 

10 Replies
Admin
(@trobinson)
Joined: 9 years ago

Noble Member
Posts: 1500

@jack @enguard Are you both using the same build of Smartermail 100.0.9088.25586?

 

I did check this during the last import bug and confirmed groups worked. The only thing i never checked was if a group/mail alias (They both work the same except alias only has 1 target) contains no targets.

 

Do you have any of those? If you have logging set to 4 a information log should be in the Event viewer -> SolidCP starting with: INFO: ExecDomainGetCommand: URL: http://localhost:9998/api/v1/settings/domain/aliases/   and a result. Its normally just before the error.

 

Regards,

 

Trevor

(@enguard)
Joined: 6 years ago

Estimable Member
Posts: 132

@trobinson I dont see an option to set it to 4. can you provide instructions for this?

Screenshot 2024 11 27 at 2.59.46 PM
Admin
(@trobinson)
Joined: 9 years ago

Noble Member
Posts: 1500

@enguard In your SolidCP Server web.config (Normaly C:\SolidCP\Server asp.net v4.5\web.config) You will need to find and set the following:

 

  <system.diagnostics>
    <switches>
      <add name="Log" value="2" />
      <!-- 0 - Off, 1 - Error, 2 - Warning, 3 - Info, 4 - Verbose -->
    </switches>

to:

 

  <system.diagnostics>
    <switches>
      <add name="Log" value="4" />
      <!-- 0 - Off, 1 - Error, 2 - Warning, 3 - Info, 4 - Verbose -->
    </switches>

 

This will then output alot more information in the event viewer which can be used to debug. Do note that some of this maybe more sensertive customer information you may not want to share on the forum.

(@enguard)
Joined: 6 years ago

Estimable Member
Posts: 132

@trobinson I have tested this with Build 9056 (the most stable version) as well as 9088 and 9091. All the same. See attached.

 jack
(@jack)
Joined: 6 years ago

Eminent Member
Posts: 19

@trobinson 

I am importing 1 domain with 3 email accounts so the error occurs.

The domain has no aliases or groups, there are only 3 email accounts.

 

 

(@enguard)
Joined: 6 years ago

Estimable Member
Posts: 132

@trobinson I guessing you can maybe use the SM10 Provider to create a bunch of Mail Aliases and Groups. Then switch to the SM100 Provider to see if you can replicate this problem?

Admin
(@trobinson)
Joined: 9 years ago

Noble Member
Posts: 1500

@enguard I am not sure if i can solve this one without seeing the data. Once you have enabled verbose would you be able to clear the log and recreate the issue. Then save a copy of the log and send it in a ticket for me to look at?

(@enguard)
Joined: 6 years ago

Estimable Member
Posts: 132
Admin
(@trobinson)
Joined: 9 years ago

Noble Member
Posts: 1500

@enguard I have made a fix for this. The new URL for the dll will be https://installer.solidcp.com/Files/1.5.0/BETA-SolidCP.Providers.Mail.SmarterMail100.zip

Do note: This requires v1.5.0 of SolidCP.

 

Regards,

 

Trevor

(@enguard)
Joined: 6 years ago

Estimable Member
Posts: 132

@trobinson We are running SCP 1.5.0 now. The pulling of Group data is now correct and we can modify/update groups in SCP. So this is fixed. 

However, the issue of not being able to import a domain with SM100 Provider and able to import with SM10 Provider persists. 

Let's move to GitHub: https://github.com/FuseCP/SolidCP/issues/205

Posts: 132
Topic starter
(@enguard)
Estimable Member
Joined: 6 years ago

BUG: Pausing in SCP and pressing play resets Disk space setting in SM to 0 (unlimited)

Expected Behavior: Be able to pause and re-enable account in SCP without changing ANY settings in SM

 

3 Replies
(@enguard)
Joined: 6 years ago

Estimable Member
Posts: 132

We discovered today that setting the disk limit to 0 is actually not unlimited and breaks the domain. Users are unable to receive email and senders get a bounce:

Remote Server returned: 'The domain size limit has been exceeded'

Admin
(@trobinson)
Joined: 9 years ago

Noble Member
Posts: 1500

Fix commited and included in latest 1.5.0 beta dll.

(@enguard)
Joined: 6 years ago

Estimable Member
Posts: 132
Page 4 / 5
Share: