Sending/receiving email Mail Server (Synology Nas)

Sending/receiving email in Mail Server

Hello everyone. I recently got onlyoffice workspace ce installed on my synology nas. I was having some issues with connecting the mx record/hostname, but I got it fixed. According to the compose provided by onlyoffice, ports 25, 143, and 587 are available to the mail server. I’ve made sure to forward port 25. I attempt to send an email out, it says sent successfully, but never receive the email. I check the logs for the mailserver and community server and theres no logs saying that it failed to be sent. I made sure that the ports were open in the firewall as well. I checked docker ps to make sure the ports were correct for each container and they are. Am I missing something? I also verified with telnet on port 25 that its accessable. I also used https://portchecker.co/ to verify that port 25 was open, which it is. Any suggestions? Thanks.

Hello @Keith
Port 25 is used by SMTP for notifications (account creation, password change, portal feed, etc.).
Do I understand it right that you’re able to send\receive emails except portal email notifications? If so, you need to check that 25 port isn’t blocked by firewall or your server hoster.
Additionally, please show us your SMTP settings > try to send test letter > collect entire Community server logs folder.

So I’m able to create an account, setup dns records mx records and all of that, but sending or receiving is a no go. Ill try and grab some logs, but when I have tried before, I never got any errors or any indication that something was sent out.

Community Server after attempt to send email

Failed to look up module alias 'autofs4': Function not implemented
systemd 249.11-0ubuntu3.12 running in system mode (+PAM +AUDIT +SELINUX +APPARMOR +IMA +SMACK +SECCOMP +GCRYPT +GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 -PWQUALITY -P11KIT -QRENCODE +BZIP2 +LZ4 +XZ +ZLIB +ZSTD -XKBCOMMON +UTMP +SYSVINIT default-hierarchy=unified)
Detected virtualization docker.
Detected architecture x86-64.
Failed to create symlink /sys/fs/cgroup/cpu: File exists
Failed to create symlink /sys/fs/cgroup/cpuacct: File exists

Welcome to Ubuntu 22.04.4 LTS!

Queued start job for default target Graphical Interface.
[  OK  ] Reached target Path Units.
[  OK  ] Reached target Slice Units.
[  OK  ] Reached target Swaps.
[  OK  ] Listening on Syslog Socket.
[  OK  ] Listening on Journal Audit Socket.
[  OK  ] Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket.
[  OK  ] Reached target Socket Units.
         Starting Remount Root and Kernel File Systems...
         Starting Create Static Device Nodes in /dev...
systemd-journald.service: unit configures an IP firewall, but the local system does not support BPF/cgroup firewalling.
(This warning is only shown for the first unit using IP firewalling.)
         Starting Journal Service...
[  OK  ] Finished Remount Root and Kernel File Systems.
[  OK  ] Finished Create Static Device Nodes in /dev.
[  OK  ] Reached target Preparation for Local File Systems.
[  OK  ] Reached target Local File Systems.
         Starting Enable support fo…l executable binary formats...
[  OK  ] Finished Enable support fo…nal executable binary formats.
[  OK  ] Started Journal Service.
         Starting Create Volatile Files and Directories...
[  OK  ] Finished Create Volatile Files and Directories.
[  OK  ] Reached target System Initialization.
[  OK  ] Started Run certbot twice daily.
[  OK  ] Started Daily rotation of log files.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Reached target Basic System.
[  OK  ] Reached target Timer Units.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Started Regular background program processing daemon.
[  OK  ] Started Save initial kernel messages after boot.
         Starting God Service...
         Starting LSB: Mono XSP4...
         Starting MySQL Community Server...
         Starting A high performanc… and a reverse proxy server...
         Starting ONLYOFFICE SsoAuth Service...
         Starting ONLYOFFICE Thumb Service...
         Starting Advanced key-value store...
         Starting System Logging Service...
[  OK  ] Started ONLYOFFICE SsoAuth Service.
[  OK  ] Started ONLYOFFICE Thumb Service.
[  OK  ] Started Advanced key-value store.
[  OK  ] Started LSB: Mono XSP4.
[  OK  ] Started A high performance…er and a reverse proxy server.
[  OK  ] Started System Logging Service.
[  OK  ] Started God Service.
[  OK  ] Started MySQL Community Server.
         Starting FastCGI Mono server...
         Starting FastCGI Mono server...
         Starting Start ONLYOFFICE Backup Service...
         Starting ONLYOFFICE Feed Service...
         Starting ONLYOFFICE FilesTrashCleaner Service...
         Starting Start ONLYOFFICE Index Service...
         Starting ONLYOFFICE Jabber Service...
         Starting ONLYOFFICE MailAggregator Service...
         Starting ONLYOFFICE MailCleaner Service...
         Starting ONLYOFFICE MailImap Service...
         Starting ONLYOFFICE MailWatchdog Service...
         Starting ONLYOFFICE Notify Service...
         Starting ONLYOFFICE Radicale Service...
         Starting ONLYOFFICE SocketIO Service...
         Starting Start ONLYOFFICE StorageEncryption Service...
         Starting Start ONLYOFFICE StorageMigrate Service...
         Starting ONLYOFFICE Telegram Service...
         Starting ONLYOFFICE ThumbnailBuilder Service...
         Starting ONLYOFFICE UrlShortener Service...
         Starting ONLYOFFICE WebDav Service...
[  OK  ] Started ONLYOFFICE Radicale Service.
[  OK  ] Started ONLYOFFICE SocketIO Service.
[  OK  ] Started ONLYOFFICE UrlShortener Service.
[  OK  ] Started ONLYOFFICE WebDav Service.
[  OK  ] Started FastCGI Mono server.
[  OK  ] Started FastCGI Mono server.
[  OK  ] Started ONLYOFFICE Feed Service.
[  OK  ] Started Start ONLYOFFICE Backup Service.
[  OK  ] Started ONLYOFFICE FilesTrashCleaner Service.
[  OK  ] Started Start ONLYOFFICE Index Service.
[  OK  ] Started ONLYOFFICE Jabber Service.
[  OK  ] Started ONLYOFFICE Notify Service.
[  OK  ] Started Start ONLYOFFICE StorageEncryption Service.
[  OK  ] Started Start ONLYOFFICE StorageMigrate Service.
[  OK  ] Started ONLYOFFICE Telegram Service.
[  OK  ] Started ONLYOFFICE ThumbnailBuilder Service.
[  OK  ] Started ONLYOFFICE MailImap Service.
[  OK  ] Started ONLYOFFICE MailCleaner Service.
[  OK  ] Started ONLYOFFICE MailWatchdog Service.
[  OK  ] Started ONLYOFFICE MailAggregator Service.
[  OK  ] Reached target Multi-User System.
[  OK  ] Reached target Graphical Interface.

Mail server after attempt to send email

********************************************************************
* Congratulations, mail server setup completed successfully. Please
* read below file for more information:
*
*   - /usr/src/iRedMail/iRedMail.tips
*
* And it's sent to your mail account postmaster@mail.houseofmanns.com.
*
********************* WARNING **************************************
Waiting for external MySql response
[ INFO ] Configure MySQL database server.
Starting crond:                                            [  OK  ]
Starting Dovecot Imap:                                     [  OK  ]
Starting system logger:                                    [  OK  ]
Starting amavisd:                                          [  OK  ]

Starting postfix:                                          [  OK  ]
Starting cbpolicyd:                                        [  OK  ]
Starting Clam AntiVirus Daemon: LibClamAV Warning: **************************************************
LibClamAV Warning: ***  The virus database is older than 7 days!  ***
LibClamAV Warning: ***   Please update it as soon as possible.    ***
LibClamAV Warning: **************************************************
                                                           [  OK  ]
Starting clamd.amavisd: LibClamAV Warning: **************************************************
LibClamAV Warning: ***  The virus database is older than 7 days!  ***
LibClamAV Warning: ***   Please update it as soon as possible.    ***
LibClamAV Warning: **************************************************
                                                           [  OK  ]
Starting httpd:                                            [  OK  ]
Starting OpenDKIM Milter:                                  [  OK  ]
Starting spamd:                                            [  OK  ]
Starting fail2ban:                                         [  OK  ]
Starting server

Its like I don’t get anymore logs after everything is started

So, the situation is related to MailServer in general, not the SMTP only, am I right?
Please reproduce the situations:

  • show us your SMTP settings > try to send test letter (click the ‘Send Test mail’)
  • try to send\receive any mail via mail module.

Once the situation has been reproduced, please collect logs from these folders:
/app/onlyoffice/CommunityServer/logs/
/app/onlyoffice/MailServer/logs/

2024-09-03 21:13:20,241 ERROR [13146] localhost - ASC.Api.Mail - SearchEmails: 
The following exceptions have been thrown by WaitAll():
-------------------------------------------------
System.ApplicationException: Error retrieving response. Check inner details for more info. ---> System.Net.WebException: Error: ConnectFailure (Connection refused) ---> System.Net.Sockets.SocketException: Connection refused
  at System.Net.Sockets.SocketAsyncResult.CheckIfThrowDelayedException () [0x00014] in <88f564ea69dd4dc8ba9bf979e48d5996>:0 
  at System.Net.Sockets.Socket.EndConnect (System.IAsyncResult asyncResult) [0x0002c] in <88f564ea69dd4dc8ba9bf979e48d5996>:0 
  at System.Net.WebConnection+<>c.<Connect>b__16_1 (System.IAsyncResult asyncResult) [0x00006] in <88f564ea69dd4dc8ba9bf979e48d5996>:0 
  at System.Threading.Tasks.TaskFactory`1[TResult].FromAsyncCoreLogic (System.IAsyncResult iar, System.Func`2[T,TResult] endFunction, System.Action`1[T] endAction, System.Threading.Tasks.Task`1[TResult] promise, System.Boolean requiresSynchronization) [0x00019] in <f2b3ab7dfff746f594d2ef5b16ec3c90>:0 
--- End of stack trace from previous location where exception was thrown ---

  at System.Net.WebConnection.Connect (System.Net.WebOperation operation, System.Threading.CancellationToken cancellationToken) [0x001e1] in <88f564ea69dd4dc8ba9bf979e48d5996>:0 
   --- End of inner exception stack trace ---
  at System.Net.WebConnection.Connect (System.Net.WebOperation operation, System.Threading.CancellationToken cancellationToken) [0x0025d] in <88f564ea69dd4dc8ba9bf979e48d5996>:0 
  at System.Net.WebConnection.InitConnection (System.Net.WebOperation operation, System.Threading.CancellationToken cancellationToken) [0x000cc] in <88f564ea69dd4dc8ba9bf979e48d5996>:0 
  at System.Net.WebOperation.Run () [0x0009a] in <88f564ea69dd4dc8ba9bf979e48d5996>:0 
  at System.Net.WebCompletionSource`1[T].WaitForCompletion () [0x00094] in <88f564ea69dd4dc8ba9bf979e48d5996>:0 
  at System.Net.HttpWebRequest.RunWithTimeoutWorker[T] (System.Threading.Tasks.Task`1[TResult] workerTask, System.Int32 timeout, System.Action abort, System.Func`1[TResult] aborted, System.Threading.CancellationTokenSource cts) [0x000f8] in <88f564ea69dd4dc8ba9bf979e48d5996>:0 
  at System.Net.HttpWebRequest.GetResponse () [0x00016] in <88f564ea69dd4dc8ba9bf979e48d5996>:0 
  at RestSharp.Http.<ExecuteRequest>g__GetRawResponse|185_1 (System.Net.WebRequest request) [0x00020] in <4c50e991a27848e79eaad19a5e76e5dd>:0 
  at RestSharp.Http.ExecuteRequest (System.String httpMethod, System.Action`1[T] prepareRequest) [0x00015] in <4c50e991a27848e79eaad19a5e76e5dd>:0 
   --- End of inner exception stack trace ---
  at ASC.Mail.Utils.ApiHelper.Execute (RestSharp.RestRequest request) [0x00097] in <5589d721bfe24808a31de3408d0d1a2d>:0 
  at ASC.Mail.Utils.ApiHelper.SearchPeopleEmails (System.String term, System.Int32 startIndex, System.Int32 count) [0x0004b] in <5589d721bfe24808a31de3408d0d1a2d>:0 
  at ASC.Mail.Core.Engine.ContactEngine+<>c__DisplayClass19_0.<SearchEmails>b__4 () [0x0002d] in <5589d721bfe24808a31de3408d0d1a2d>:0 
  at System.Threading.Tasks.Task`1[TResult].InnerInvoke () [0x0000f] in <f2b3ab7dfff746f594d2ef5b16ec3c90>:0 
  at System.Threading.Tasks.Task.Execute () [0x00000] in <f2b3ab7dfff746f594d2ef5b16ec3c90>:0  
2024-09-03 21:19:42,037 ERROR [14084] ASC.Api.ApiSetup - method error: http://127.0.0.1/api/2.0/mail/conversations.json?folder=2&page_size=25&mailbox_id=1&to_address=dmarc%40houseofmanns.com&sort=date&sortorder=descending&__=395885 - Server error System.NullReferenceException: Object reference not set to an instance of an object
  at ASC.Mail.Core.Dao.MailInfoDao.GetMailInfoList (ASC.Mail.Core.Dao.Expressions.Message.IMessagesExp exp, System.Boolean skipSelectTags) [0x001f3] in <5589d721bfe24808a31de3408d0d1a2d>:0 
  at ASC.Mail.Core.Engine.ChainEngine.GetFilteredConversations (ASC.Mail.Core.Dao.Interfaces.IDaoFactory daoFactory, ASC.Mail.Data.Contracts.MailSearchFilterData filter, System.Boolean& hasMore) [0x00215] in <5589d721bfe24808a31de3408d0d1a2d>:0 
  at ASC.Mail.Core.Engine.ChainEngine.GetConversations (ASC.Mail.Data.Contracts.MailSearchFilterData filterData, System.Boolean& hasMore) [0x00061] in <5589d721bfe24808a31de3408d0d1a2d>:0 
  at ASC.Api.Mail.MailApi.GetFilteredConversations (System.Nullable`1[T] folder, System.Nullable`1[T] unread, System.Nullable`1[T] attachments, System.Nullable`1[T] period_from, System.Nullable`1[T] period_to, System.Nullable`1[T] important, System.String from_address, System.String to_address, System.Nullable`1[T] mailbox_id, System.Collections.Generic.IEnumerable`1[T] tags, System.String search, System.Nullable`1[T] page_size, System.String sortorder, ASC.Specific.ApiDateTime from_date, System.Nullable`1[T] from_message, System.Nullable`1[T] prev_flag, System.Nullable`1[T] with_calendar, System.Nullable`1[T] user_folder_id) [0x00118] in <9c5466acd25a4d09a7f6d5f34f599dd4>:0 
  at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
  at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in <f2b3ab7dfff746f594d2ef5b16ec3c90>:0 

2024-09-03 21:14:03,796 ERROR [13264] localhost - ASC.Mail.ContactEngine - SearchEmails: 
The following exceptions have been thrown by WaitAll():
-------------------------------------------------
System.ApplicationException: Error retrieving response. Check inner details for more info. ---> System.Net.WebException: Error: ConnectFailure (Connection refused) ---> System.Net.Sockets.SocketException: Connection refused
  at System.Net.Sockets.SocketAsyncResult.CheckIfThrowDelayedException () [0x00014] in <88f564ea69dd4dc8ba9bf979e48d5996>:0 
  at System.Net.Sockets.Socket.EndConnect (System.IAsyncResult asyncResult) [0x0002c] in <88f564ea69dd4dc8ba9bf979e48d5996>:0 
  at System.Net.WebConnection+<>c.<Connect>b__16_1 (System.IAsyncResult asyncResult) [0x00006] in <88f564ea69dd4dc8ba9bf979e48d5996>:0 
  at System.Threading.Tasks.TaskFactory`1[TResult].FromAsyncCoreLogic (System.IAsyncResult iar, System.Func`2[T,TResult] endFunction, System.Action`1[T] endAction, System.Threading.Tasks.Task`1[TResult] promise, System.Boolean requiresSynchronization) [0x00019] in <f2b3ab7dfff746f594d2ef5b16ec3c90>:0 
--- End of stack trace from previous location where exception was thrown ---

  at System.Net.WebConnection.Connect (System.Net.WebOperation operation, System.Threading.CancellationToken cancellationToken) [0x001e1] in <88f564ea69dd4dc8ba9bf979e48d5996>:0 
   --- End of inner exception stack trace ---
  at System.Net.WebConnection.Connect (System.Net.WebOperation operation, System.Threading.CancellationToken cancellationToken) [0x0025d] in <88f564ea69dd4dc8ba9bf979e48d5996>:0 
  at System.Net.WebConnection.InitConnection (System.Net.WebOperation operation, System.Threading.CancellationToken cancellationToken) [0x000cc] in <88f564ea69dd4dc8ba9bf979e48d5996>:0 
  at System.Net.WebOperation.Run () [0x0009a] in <88f564ea69dd4dc8ba9bf979e48d5996>:0 
  at System.Net.WebCompletionSource`1[T].WaitForCompletion () [0x00094] in <88f564ea69dd4dc8ba9bf979e48d5996>:0 
  at System.Net.HttpWebRequest.RunWithTimeoutWorker[T] (System.Threading.Tasks.Task`1[TResult] workerTask, System.Int32 timeout, System.Action abort, System.Func`1[TResult] aborted, System.Threading.CancellationTokenSource cts) [0x000f8] in <88f564ea69dd4dc8ba9bf979e48d5996>:0 
  at System.Net.HttpWebRequest.GetResponse () [0x00016] in <88f564ea69dd4dc8ba9bf979e48d5996>:0 
  at RestSharp.Http.<ExecuteRequest>g__GetRawResponse|185_1 (System.Net.WebRequest request) [0x00020] in <4c50e991a27848e79eaad19a5e76e5dd>:0 
  at RestSharp.Http.ExecuteRequest (System.String httpMethod, System.Action`1[T] prepareRequest) [0x00015] in <4c50e991a27848e79eaad19a5e76e5dd>:0 
   --- End of inner exception stack trace ---
  at ASC.Mail.Utils.ApiHelper.Execute (RestSharp.RestRequest request) [0x00097] in <5589d721bfe24808a31de3408d0d1a2d>:0 
  at ASC.Mail.Utils.ApiHelper.SearchPeopleEmails (System.String term, System.Int32 startIndex, System.Int32 count) [0x0004b] in <5589d721bfe24808a31de3408d0d1a2d>:0 
  at ASC.Mail.Core.Engine.ContactEngine+<>c__DisplayClass19_0.<SearchEmails>b__4 () [0x0002d] in <5589d721bfe24808a31de3408d0d1a2d>:0 
  at System.Threading.Tasks.Task`1[TResult].InnerInvoke () [0x0000f] in <f2b3ab7dfff746f594d2ef5b16ec3c90>:0 
  at System.Threading.Tasks.Task.Execute () [0x00000] in <f2b3ab7dfff746f594d2ef5b16ec3c90>:0  
2024-09-03 22:13:30,058 ERROR [55] localhost - ASC - Warmup AppInstall.aspx System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.NullReferenceException: Object reference not set to an instance of an object
  at System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) [0x00187] in <f2b3ab7dfff746f594d2ef5b16ec3c90>:0 
  at System.Collections.Generic.Dictionary`2[TKey,TValue].set_Item (TKey key, TValue value) [0x00000] in <f2b3ab7dfff746f594d2ef5b16ec3c90>:0 
  at System.Web.Optimization.BundleCollection.Add (System.Web.Optimization.Bundle bundle) [0x00059] in <1722374db59b42df883d8c695dc145b3>:0 
  at ASC.Web.Core.Client.Bundling.BundleHelper.AddBundle (System.Web.Optimization.Bundle bundle) [0x00005] in <7a389534a7d84a92994e4f10642f4b04>:0 
  at ASC.Web.Core.Client.Bundling.BundleHelper.AddBundle (ASC.Web.Core.Client.Bundling.BundleData bundleData) [0x00067] in <7a389534a7d84a92994e4f10642f4b04>:0 
  at ASC.Web.Core.Client.Bundling.ResourceBundleControl.GetLink () [0x0003f] in <7a389534a7d84a92994e4f10642f4b04>:0 
  at ASC.Web.Core.Client.Bundling.ResourceBundleControl.Render (System.Web.UI.HtmlTextWriter writer) [0x0001a] in <7a389534a7d84a92994e4f10642f4b04>:0 
  at System.Web.UI.Control.RenderControl (System.Web.UI.HtmlTextWriter writer) [0x0004d] in <ed5a28140a7245099ac6474902196c2e>:0 
  at ASP.masters_basetemplate_master.__Render__control2 (System.Web.UI.HtmlTextWriter __w, System.Web.UI.Control parameterContainer) [0x00147] in <3c326913755043a2bdf29a3f182d3ef5>:0 
  at System.Web.UI.Control.RenderChildren (System.Web.UI.HtmlTextWriter writer) [0x00008] in <ed5a28140a7245099ac6474902196c2e>:0 
  at System.Web.UI.HtmlControls.HtmlHead.RenderChildren (System.Web.UI.HtmlTextWriter writer) [0x00000] in <ed5a28140a7245099ac6474902196c2e>:0 
  at System.Web.UI.HtmlControls.HtmlContainerControl.Render (System.Web.UI.HtmlTextWriter writer) [0x00007] in <ed5a28140a7245099ac6474902196c2e>:0 
  at System.Web.UI.Control.RenderControl (System.Web.UI.HtmlTextWriter writer) [0x0004d] in <ed5a28140a7245099ac6474902196c2e>:0 
  at ASP.masters_basetemplate_master.__Render__control1 (System.Web.UI.HtmlTextWriter __w, System.Web.UI.Control parameterContainer) [0x00017] in <3c326913755043a2bdf29a3f182d3ef5>:0 
  at System.Web.UI.Control.RenderChildren (System.Web.UI.HtmlTextWriter writer) [0x00008] in <ed5a28140a7245099ac6474902196c2e>:0 
  at System.Web.UI.Control.Render (System.Web.UI.HtmlTextWriter writer) [0x00000] in <ed5a28140a7245099ac6474902196c2e>:0 
  at System.Web.UI.Control.RenderControl (System.Web.UI.HtmlTextWriter writer) [0x0004d] in <ed5a28140a7245099ac6474902196c2e>:0 
  at System.Web.UI.Control.RenderChildren (System.Web.UI.HtmlTextWriter writer) [0x00053] in <ed5a28140a7245099ac6474902196c2e>:0 
  at System.Web.UI.Control.Render (System.Web.UI.HtmlTextWriter writer) [0x00000] in <ed5a28140a7245099ac6474902196c2e>:0 
  at System.Web.UI.Page.Render (System.Web.UI.HtmlTextWriter writer) [0x0016f] in <ed5a28140a7245099ac6474902196c2e>:0 
  at System.Web.UI.Control.RenderControl (System.Web.UI.HtmlTextWriter writer) [0x0004d] in <ed5a28140a7245099ac6474902196c2e>:0 
  at System.Web.UI.Page.RenderPage () [0x00032] in <ed5a28140a7245099ac6474902196c2e>:0 
  at System.Web.UI.Page.InternalProcessRequest () [0x001b6] in <ed5a28140a7245099ac6474902196c2e>:0 
  at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x0005f] in <ed5a28140a7245099ac6474902196c2e>:0 
  at System.Web.UI.Page.ProcessException (System.Exception e) [0x0004f] in <ed5a28140a7245099ac6474902196c2e>:0 
  at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x00081] in <ed5a28140a7245099ac6474902196c2e>:0 
  at ASP.appinstall_aspx.ProcessRequest (System.Web.HttpContext context) [0x00000] in <3c326913755043a2bdf29a3f182d3ef5>:0 
  at System.Web.HttpServerUtility.Execute (System.Web.IHttpHandler handler, System.IO.TextWriter writer, System.Boolean preserveForm, System.String exePath, System.String queryString, System.Boolean isTransfer, System.Boolean isInclude) [0x000dc] in <ed5a28140a7245099ac6474902196c2e>:0 
  at System.Web.HttpServerUtility.Execute (System.String path, System.IO.TextWriter writer, System.Boolean preserveForm, System.Boolean isTransfer) [0x000a3] in <ed5a28140a7245099ac6474902196c2e>:0 
  at System.Web.HttpServerUtility.Execute (System.String path, System.IO.TextWriter writer, System.Boolean preserveForm) [0x00000] in <ed5a28140a7245099ac6474902196c2e>:0 
  at System.Web.HttpServerUtility.Execute (System.String path) [0x00000] in <ed5a28140a7245099ac6474902196c2e>:0 
  at ASC.Web.Core.WarmupPage.Page_Load (System.Object sender, System.EventArgs e) [0x000d9] in <7a389534a7d84a92994e4f10642f4b04>:0 

Sep 17 05:47:37 mail opendkim[770]: 3EE5242535: DKIM-Signature field added (s=dkim, d=example.com)
Sep 17 05:47:37 mail postfix/qmgr[643]: 3EE5242535: from=<email address>, size=1560, nrcpt=1 (queue active)
Sep 17 05:47:37 mail postfix/smtpd[93526]: disconnect from localhost[127.0.0.1]
Sep 17 05:47:37 mail amavis[93214]: (93214-01) Passed CLEAN {RelayedInternal}, MYNETS/MYUSERS LOCAL [172.22.0.7]:50162 <email address> -> <test-3vbl0znx2@srv1.mail-tester.com>, Queue-ID: 3DC1E42519, Message-ID: <AU31172409170546575691364928333@8b930ffcc9d9>, mail_id: O0fEn2hYQMWt, Hits: -0.999, size: 1008, queued_as: 3EE5242535, 15651 ms
Sep 17 05:47:39 mail postfix/smtp[93521]: 3DC1E42519: to=<test-3vbl0znx2@srv1.mail-tester.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=35, delays=17/0.01/0.01/18, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 3EE5242535)
Sep 17 05:47:40 mail postfix/qmgr[643]: 3DC1E42519: removed
Sep 17 05:48:07 mail postfix/smtp[93528]: connect to reception.mail-tester.com[94.23.206.89]:25: Connection timed out
Sep 17 05:48:10 mail postfix/smtp[93528]: 3EE5242535: to=<test-3vbl0znx2@srv1.mail-tester.com>, relay=none, delay=31, delays=0.87/0.01/30/0, dsn=4.4.1, status=deferred (connect to reception.mail-tester.com[94.23.206.89]:25: Connection timed out)
Sep 17 05:50:49 mail postfix/anvil[93517]: statistics: max connection rate 1/60s for (submission:172.22.0.7) at Sep 17 05:47:03
Sep 17 05:50:49 mail postfix/anvil[93517]: statistics: max connection count 1 for (submission:172.22.0.7) at Sep 17 05:47:03
Sep 17 05:50:49 mail postfix/anvil[93517]: statistics: max cache size 1 at Sep 17 05:47:03

I see now, part of it is port 25, and thats the fault of my internet provider.

Yes, port 25 is required for proper work of Mail server: Ports which must be opened for ONLYOFFICE Mail - ONLYOFFICE
If it is blocked by the provider, it’s better to contact them to discuss the situation. Please let us know if the situation is resolved and we can check out all things from scratch.

1 Like

So I was able to now send email, but get this when trying to send back to my workspace-ce

2024-09-27 19:57:10,965 ERROR [3784] localhost - ASC.Api.Mail - SearchEmails: 
The following exceptions have been thrown by WaitAll():
-------------------------------------------------
System.ApplicationException: Error retrieving response. Check inner details for more info. ---> System.Net.WebException: Error: ConnectFailure (Connection refused) ---> System.Net.Sockets.SocketException: Connection refused
  at System.Net.Sockets.SocketAsyncResult.CheckIfThrowDelayedException () [0x00014] in <88f564ea69dd4dc8ba9bf979e48d5996>:0 
  at System.Net.Sockets.Socket.EndConnect (System.IAsyncResult asyncResult) [0x0002c] in <88f564ea69dd4dc8ba9bf979e48d5996>:0 
  at System.Net.WebConnection+<>c.<Connect>b__16_1 (System.IAsyncResult asyncResult) [0x00006] in <88f564ea69dd4dc8ba9bf979e48d5996>:0 
  at System.Threading.Tasks.TaskFactory`1[TResult].FromAsyncCoreLogic (System.IAsyncResult iar, System.Func`2[T,TResult] endFunction, System.Action`1[T] endAction, System.Threading.Tasks.Task`1[TResult] promise, System.Boolean requiresSynchronization) [0x00019] in <f2b3ab7dfff746f594d2ef5b16ec3c90>:0 
--- End of stack trace from previous location where exception was thrown ---

  at System.Net.WebConnection.Connect (System.Net.WebOperation operation, System.Threading.CancellationToken cancellationToken) [0x001e1] in <88f564ea69dd4dc8ba9bf979e48d5996>:0 
   --- End of inner exception stack trace ---
  at System.Net.WebConnection.Connect (System.Net.WebOperation operation, System.Threading.CancellationToken cancellationToken) [0x0025d] in <88f564ea69dd4dc8ba9bf979e48d5996>:0 
  at System.Net.WebConnection.InitConnection (System.Net.WebOperation operation, System.Threading.CancellationToken cancellationToken) [0x000cc] in <88f564ea69dd4dc8ba9bf979e48d5996>:0 
  at System.Net.WebOperation.Run () [0x0009a] in <88f564ea69dd4dc8ba9bf979e48d5996>:0 
  at System.Net.WebCompletionSource`1[T].WaitForCompletion () [0x00094] in <88f564ea69dd4dc8ba9bf979e48d5996>:0 
  at System.Net.HttpWebRequest.RunWithTimeoutWorker[T] (System.Threading.Tasks.Task`1[TResult] workerTask, System.Int32 timeout, System.Action abort, System.Func`1[TResult] aborted, System.Threading.CancellationTokenSource cts) [0x000f8] in <88f564ea69dd4dc8ba9bf979e48d5996>:0 
  at System.Net.HttpWebRequest.GetResponse () [0x00016] in <88f564ea69dd4dc8ba9bf979e48d5996>:0 
  at RestSharp.Http.<ExecuteRequest>g__GetRawResponse|185_1 (System.Net.WebRequest request) [0x00020] in <4c50e991a27848e79eaad19a5e76e5dd>:0 
  at RestSharp.Http.ExecuteRequest (System.String httpMethod, System.Action`1[T] prepareRequest) [0x00015] in <4c50e991a27848e79eaad19a5e76e5dd>:0 
   --- End of inner exception stack trace ---
  at ASC.Mail.Utils.ApiHelper.Execute (RestSharp.RestRequest request) [0x00097] in <5589d721bfe24808a31de3408d0d1a2d>:0 
  at ASC.Mail.Utils.ApiHelper.SearchPeopleEmails (System.String term, System.Int32 startIndex, System.Int32 count) [0x0004b] in <5589d721bfe24808a31de3408d0d1a2d>:0 
  at ASC.Mail.Core.Engine.ContactEngine+<>c__DisplayClass19_0.<SearchEmails>b__4 () [0x0002d] in <5589d721bfe24808a31de3408d0d1a2d>:0 
  at System.Threading.Tasks.Task`1[TResult].InnerInvoke () [0x0000f] in <f2b3ab7dfff746f594d2ef5b16ec3c90>:0 
  at System.Threading.Tasks.Task.Execute () [0x00000] in <f2b3ab7dfff746f594d2ef5b16ec3c90>:0  
2024-09-27 20:02:48,139 ERROR [3800] localhost - ASC.Api.Mail - SearchEmails: 
The following exceptions have been thrown by WaitAll():

Sorry, I should have just said unable to receive email to workspace

Hello @Keith
It seems that some ports are blocked, so the aggregator cannot connect to Mail Server and download mails. Please double check these ports on your side:

They shouldn’t be blocked or occupied by other apps.

Ill have to test these again, for now I went ahead and went to another mail server. I think one of the issues, which I also had with the other mail server in the beginning, was I didn’t have a dns only A record for my mail.domain.com. Once I set this up ( I also included the ptr it provided) then I was able to send and receive without issue. I would suggest though as you already provide the dmarc, dkim, and so on with the dns setup, include the ptr that may need to be included. However, I still need to make sure some of the other ports were open as well. I thought I had all that I needed open. Thanks for links and the time. I hope all of this helps anyone else that set out on the same adventure.

Please feel free to contact us if you face any issue with further tests.