1

Topic: Could not connect to the SMTP server smtp on port 0 - iRedMail v1.3.2

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):  1.3.2
- Deployed with downloadable installer, yes
- Linux/BSD distribution name and version: FreeBSD 12.1
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): sql/LDAP
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

I ran into one issue:

Sending mail fails only in sogo-webmail with 'port 0' on SMTP and mail is not sent.
Reading, Deleting works OK. The issue would be something in area of sogo...

Sending/Receiving mail from other clients and roundcube is working normally.
No other failures and all in/outgoing mail is processed OK.
Have DKIM/DMARC applied.

I installed v1.3.2 and restored all data from v1.1 as SQL/LDAP/mailboxes.
Applied the login table as that was added in v1.2.

I had Sogo not installed before and now included it when installing v1.3.2.
Looked in the release notes and did not find any updates related to sogo.

The Error log from: /var/log/sogo/sogo.log
Dec 15 15:09:34 sogod [993]: [WARN] <0x0x807b92a28[SOGoUserDefaults]> expected an NSString for 'SOGoMailComposeFontSize' (ignored)
Dec 15 15:09:34 sogod [993]: [ERROR] <0x0x8074fe008[SOGoMailer]> Could not connect to the SMTP server smtp on port 0
Dec 15 15:09:34 sogod [993]: 99.123.199.199 "POST /SOGo/so/admin@domain.nl/Mail/0/folderDrafts/newDraft1608061788-1/send HTTP/1.0" 405 98/18
4 1.361 - - -

In the sogo.conf file I see 587 is defined and not clear where port 0 comes from.
What would be wrong here ?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Could not connect to the SMTP server smtp on port 0 - iRedMail v1.3.2

Might this be related to: https://sogo.nu/bugs/view.php?id=5078
Sogo v4.3.2

In sogo.conf:
    // SMTP server
    SOGoSMTPServer = "smtp://127.0.0.1:587/?tls=YES&tlsVerifyMode=allowInsecureLocalhost";
    SOGoMailingMechanism = smtp;
    SOGoSMTPAuthenticationType = PLAIN;

Expect that  sogo would use port 587 with STARTTLS.
How can I verify/debug this further ?

My other mail clients are successfully sending mail by port 587 with STARTTLS.
My certificate is valid.

3

Re: Could not connect to the SMTP server smtp on port 0 - iRedMail v1.3.2

What's your "SOGoSMTPServer" setting in /etc/sogo/sogo.conf?