1 (edited by ThASattler 2020-11-13 01:18:50)

Topic: Sogo cannot send mails with SOGoSMTPAuthenticationType = PLAIN

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.3.2
- Deployed with iRedMail Easy or the downloadable installer? Installer
- Linux/BSD distribution name and version: Debian 10 (buster)
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- 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.
====

Cannot send mails with Sogo with SOGoSMTPAuthenticationType = PLAIN (iRedMail 1.3.2)
See https://docs.iredmail.org/upgrade.sogo.4.to.5.html

Without the setting SOGoSMTPAuthenticationType = PLAIN mail sending is working

   //SOGoSMTPAuthenticationType = PLAIN

Postfix log:

Nov 11 08:03:58 www postfix/postscreen[20982]: CONNECT from [127.0.0.1]:52944 to [127.0.0.1]:25
Nov 11 08:03:58 www postfix/postscreen[20982]: WHITELISTED [127.0.0.1]:52944
Nov 11 08:03:58 www postfix/smtpd[22323]: connect from localhost.localdomain[127.0.0.1]
Nov 11 08:03:58 www postfix/smtpd[22323]: disconnect from localhost.localdomain[127.0.0.1] ehlo=1 quit=1 commands=2
Nov 11 08:03:58 www postfix/smtpd[21218]: 4CWG1B4tH8zM7DK6: client=webcpp55.slgnt.eu[91.230.178.55]
Nov 11 08:03:58 www postfix/cleanup[21225]: 4CWG1B4tH8zM7DK6: message-id=<201111080351.SIM_vHKt4YAIdQTww2po8Onr4WALUnsh6svi7zPLRPiyJsK2iZGUJ2Fcf0h5TFZO709leVy45ruIQOSUTnLG0Eov8DH5vs@webcpp55.slgnt.eu>
Nov 11 08:03:58 www postfix/smtpd[21218]: disconnect from webcpp55.slgnt.eu[91.230.178.55] helo=1 mail=1 rcpt=1 data=1 commands=4
Nov 11 08:03:15 sogod [21843]: <0x0x55ae569c05f0[SOGoCache]> Cache cleanup interval set every 300.000000 seconds
Nov 11 08:03:15 sogod [21843]: <0x0x55ae569c05f0[SOGoCache]> Using host(s) '127.0.0.1' as server(s)
Nov 11 08:03:15 sogod [21844]: <0x0x55ae565a5860[SOGoCache]> Cache cleanup interval set every 300.000000 seconds
Nov 11 08:03:15 sogod [21844]: <0x0x55ae565a5860[SOGoCache]> Using host(s) '127.0.0.1' as server(s)
Nov 11 08:03:16 sogod [21844]: 93.202.116.64 "POST /SOGo/so/xyz@example.com/Mail/0/folderINBOX/view HTTP/1.0" 200 31288/126 0.563 - - 18M - 13
Nov 11 08:03:18 sogod [21843]: 93.202.116.64 "POST /SOGo/so/xyz@example.com/Mail/unseenCount HTTP/1.0" 200 619/512 3.054 - - 3M - 14
Nov 11 08:03:26 sogod [21843]: 93.202.116.64 "GET /SOGo/so/xyz@example.com/Mail//UIxMailPopupView HTTP/1.0" 200 18688/0 0.040 67246 72% 3M - 14
Nov 11 08:03:26 sogod [21843]: [WARN] <0x0x55ae56bc6520[SOGoWebDAVAclManager]> entry '{DAV:}write' already exists in DAV permissions table
Nov 11 08:03:26 sogod [21843]: [WARN] <0x0x55ae56bc6520[SOGoWebDAVAclManager]> entry '{DAV:}write-properties' already exists in DAV permissions table
Nov 11 08:03:26 sogod [21843]: [WARN] <0x0x55ae56bc6520[SOGoWebDAVAclManager]> entry '{DAV:}write-content' already exists in DAV permissions table
Nov 11 08:03:26 sogod [21843]: 93.202.116.64 "GET /SOGo/so/xyz@example.com/Calendar/alarmslist?browserTime=1605078204 HTTP/1.0" 200 63/0 0.010 - - 0 - 14
Nov 11 08:03:27 sogod [21844]: 93.202.116.64 "POST /SOGo/so/xyz@example.com/Mail/0/folderINBOX/view HTTP/1.0" 200 31288/126 0.310 - - 824K - 13
Nov 11 08:03:27 sogod [21843]: 93.202.116.64 "GET /SOGo/so/xyz@example.com/Mail/0/view HTTP/1.0" 200 5939/0 0.375 - - 0 - 14
Nov 11 08:03:27 sogod [21843]: 93.202.116.64 "GET /SOGo/so/xyz@example.com/Mail/0/compose HTTP/1.0" 201 78/0 0.024 - - 1M - 14
Nov 11 08:03:27 sogod [21843]: 93.202.116.64 "GET /SOGo/so/xyz@example.com/Mail/0/folderDrafts/newDraft1605078207-1/edit HTTP/1.0" 200 101/0 0.076 - - 0 - 14
Nov 11 08:03:33 sogod [21843]: 93.202.116.64 "GET /SOGo/so/xyz@example.com/Contacts/allContactSearch?search=th HTTP/1.0" 200 894/0 0.021 - - 0 - 14
Nov 11 08:03:54 sogod [21843]: [WARN] <0x0x55ae56d325c0[SOGoUserDefaults]> expected an NSString for 'SOGoMailComposeFontSize' (ignored)
Nov 11 08:03:55 sogod [21843]: 93.202.116.64 "POST /SOGo/so/xyz@example.com/Mail/0/folderDrafts/newDraft1605078207-1/save HTTP/1.0" 200 42/191 0.512 - - 392K - 14
Nov 11 08:03:55 sogod [21848]: <0x0x55ae5661a3a0[SOGoCache]> Cache cleanup interval set every 300.000000 seconds
Nov 11 08:03:55 sogod [21848]: <0x0x55ae5661a3a0[SOGoCache]> Using host(s) '127.0.0.1' as server(s)
Nov 11 08:03:55 sogod [21844]: 93.202.116.64 "GET /SOGo/so/xyz@example.com/Mail/0/folderDrafts/1340/view HTTP/1.0" 200 806/0 0.227 - - 1M - 13
Nov 11 08:03:55 sogod [21843]: 93.202.116.64 "POST /SOGo/so/xyz@example.com/Mail/0/folderDrafts/view HTTP/1.0" 200 5322/48 0.340 - - 2M - 14
Nov 11 08:03:55 sogod [21848]: 93.202.116.64 "POST /SOGo/so/xyz@example.com/Mail/0/folderDrafts/view HTTP/1.0" 200 5322/48 0.474 - - 5M - 13
Nov 11 08:03:58 sogod [21848]: [WARN] <0x0x55ae56d4bd50[SOGoUserDefaults]> expected an NSString for 'SOGoMailComposeFontSize' (ignored)
Nov 11 08:03:58 sogod [21848]: 93.202.116.64 "POST /SOGo/so/xyz@example.com/Mail/0/folderDrafts/newDraft1605078207-1/send HTTP/1.0" 405 86/191 0.069 - - 3M - 14

2

Re: Sogo cannot send mails with SOGoSMTPAuthenticationType = PLAIN

With SOGo 5.0.x and all 3 parameters enabled, it should work as expected:

    SOGoSMTPServer = "smtp://127.0.0.1:587/?tls=YES&tlsVerifyMode=allowInsecureLocalhost";
    SOGoMailingMechanism = smtp;
    SOGoSMTPAuthenticationType = PLAIN;

if you check pasted log lines, you will find the SOGo didn't perform smtp auth, that's why we need "SOGoSMTPAuthenticationType = PLAIN".

----

Buy me a cup of coffee ($5) to support iRedMail:

buy me a cup of coffee

3 (edited by ThASattler 2020-11-13 01:16:32)

Re: Sogo cannot send mails with SOGoSMTPAuthenticationType = PLAIN

ZhangHuangbin wrote:

if you check pasted log lines, you will find the SOGo didn't perform smtp auth, that's why we need "SOGoSMTPAuthenticationType = PLAIN".

Log is from trying to send mails with "SOGoSMTPAuthenticationType = PLAIN" activated, which did not work.

    SOGoSMTPServer = "smtp://127.0.0.1:587/?tls=YES&tlsVerifyMode=allowInsecureLocalhost";
    SOGoMailingMechanism = smtp;
    SOGoSMTPAuthenticationType = PLAIN;

There is no smtp auth either. I can't see an error message which tells me what is wrong.

It seems to be like described here: https://sogo.nu/bugs/view.php?id=4708 with the orange screenshot.

4

Re: Sogo cannot send mails with SOGoSMTPAuthenticationType = PLAIN

Are you actually running SOGo-5.x? Please show us command output "dpkg -l |grep sogo".
Also, try to upgrade system packages, including "sogo", "*sope*". Outdated "*sope*" packages can cause weird issues.

----

Buy me a cup of coffee ($5) to support iRedMail:

buy me a cup of coffee

5

Re: Sogo cannot send mails with SOGoSMTPAuthenticationType = PLAIN

We are running SOGo-5.0.1:

$ dpkg -l |grep sogo
ii  sogo:amd64       5.0.1.20201115-1  amd64  a modern and scalable groupware
ii  sogo-activesync  5.0.1.20201115-1  amd64  a modern and scalable groupware - ActiveSync module 

And: All packages are up to date

6

Re: Sogo cannot send mails with SOGoSMTPAuthenticationType = PLAIN

ThASattler wrote:

And: All packages are up to date

Seems fine if all are up to date.

The settings mentioned in doc works fine in default iRedMail installation, not sure why it failed on your server.
https://docs.iredmail.org/upgrade.sogo. … bianubuntu

----

Buy me a cup of coffee ($5) to support iRedMail:

buy me a cup of coffee

7

Re: Sogo cannot send mails with SOGoSMTPAuthenticationType = PLAIN

ZhangHuangbin wrote:

Seems fine if all are up to date.

The settings mentioned in doc works fine in default iRedMail installation, not sure why it failed on your server.
https://docs.iredmail.org/upgrade.sogo. … bianubuntu

We installed the Server in July 2020 with iRedMail 1.3.1 and the settings mentioned were introduced with update to iRedMail 1.3.2. After this it didn't work any more to send mail with SOGo, whereas with roundcube mail sending worked fine.
Perhaps we could increase debug level of SOGo-Logs, but maybe the error occurs in dovecot or postfix.
What was changed in SOGo config is the size of attachments like described in
https://docs.iredmail.org/change.mail.a … .size.html
At the moment it only works without
SOGoSMTPAuthenticationType = PLAIN;
What does this mean? Are the users allowed to send mail without authentification?
You have to login into SOGo with email and password.
How did it work in SOGo V. 4.x?

8

Re: Sogo cannot send mails with SOGoSMTPAuthenticationType = PLAIN

How about setup a new virtual machine to test these parameters?
All i can tell is it works out of box with default iRedMail settings. sad

----

Buy me a cup of coffee ($5) to support iRedMail:

buy me a cup of coffee