Hum the code of the log is here
```
line = [self->text readLineAsString];
if ([line length] < 4) {
NSLog(@"SMTP: reply has invalid format (%@)", line);
return nil;
}
```
In your log we see the line is “334” which is smaller than 4. In the spec we
can see :
In SMTP, a server challenge that contains no data is defined as a 334 reply
with no text part. Note that there is still a space following the reply code,
so the complete response line is "334 ".
I think the problem is here.
--
Quentin Hivert || Alinto || R&D Lead Developer
19 Quai Perrache 69002 Lyon
www.alinto.com <http://www.alinto.com>
From: [email protected] <[email protected]> On Behalf Of Pfennig
Sent: mercredi 14 mai 2025 16:59
To: qhivert ([email protected]) <[email protected]>
Subject: Re: [SOGo] External SMTP with user auth
Thats good to know! I thought it would be something like "AUTH PLAIN <base64
string>"
The logs show, that the 334 is send, but the client then quites. Is it possible
to further debug this? Like, what is the Syntax error?
S: plain auth extension supported.
C: AUTH plain
2025-05-14 16:55:33.135 sogod[103:103] SMTP: reply has invalid format (334)
C: QUIT
S: <SMTP-Reply: code=501 line='Syntax error in parameters or arguments'>
On 14/05/2025 16:55, qhivert ([email protected] <mailto:[email protected]> )
wrote:
“SOGo sends an empty "AUTH PLAIN"”
That’s ok from the spec https://datatracker.ietf.org/doc/html/rfc4954#section-4
SOGo only send the AUTH PLAIN, server should reply with a code 334
Then sogo send the credentials.
So my guess is that your smtp server doesn’t support that.
--
Quentin Hivert || Alinto || R&D Lead Developer
19 Quai Perrache 69002 Lyon
<http://www.alinto.com> www.alinto.com
From: [email protected] <mailto:[email protected]>
<mailto:[email protected]> <[email protected]> On Behalf Of Pfennig
Sent: mercredi 14 mai 2025 16:38
To: qhivert ([email protected] <mailto:[email protected]> )
<mailto:[email protected]> <[email protected]>
Subject: Re: [SOGo] External SMTP with user auth
Thank you for the input. Especially
> Yes I will use the email instead of the uid but with the user password still.
this is important to know. I was doubting that.
Unfortunately, it is still not working. I also tried setting the master user,
but I am not sure, whether it works or not. How can I trigger an action, that
would use the master user instead of the normal user?
As stated in my first message, SOGo sends an empty "AUTH PLAIN" request to the
mail server. Is it possible to see the SOGo part of that interaction? Maybe the
mail field or the password field is not properly set due to using LDAP?
Thanks in advance!
On 14/05/2025 09:13, qhivert ([email protected] <mailto:[email protected]> )
wrote:
“SOGoForceExternalLoginWithEmail parameter might be of interest. What is not
clear to me from the documentation is whether, apart from using the primary
email address of the user, it will also use the user's password to
authenticate.”
Yes I will use the email instead of the uid but with the user password still.
--
Quentin Hivert || Alinto || R&D Lead Developer
19 Quai Perrache 69002 Lyon
<http://www.alinto.com> www.alinto.com
From: <mailto:[email protected]> [email protected]
<mailto:[email protected]> <[email protected]> On Behalf Of Odhiambo
Washington
Sent: mardi 13 mai 2025 18:42
To: <mailto:[email protected]> [email protected]
Subject: Re: [SOGo] External SMTP with user auth
Hi,
If your SMTP server is external and requires authentication, then see:
https://www.sogo.nu/files/docs/SOGoInstallationGuide.html#_smtp_server_configuration
SOGoForceExternalLoginWithEmail parameter might be of interest. What is not
clear to me from the documentation is whether, apart from using the primary
email address of the user, it will also use the user's password to authenticate.
But you can use a master user as the documentation says:
```
If your mail server requires use of SMTP AUTH, you can use the following
parameters in the configuration file :
SOGoSMTPMasterUserEnabled = YES;
SOGoSMTPMasterUserUsername = "foo";
SOGoSMTPMasterUserPassword = "bar";
```
On Tue, May 13, 2025 at 6:52 PM Pfennig <[email protected] <mailto:[email protected]> >
wrote:
Hi!
I am not using postfix, but planned to communicate directly with my
external (hosted) mail server via SMTP. The credentials are the same
everywhere and seem to be working, since the IMAP is working and I can
see my emails.
But maybe I am misunderstanding something. No mails can be send in
general, also no notification with the SMTPMasterUser...
The SMTP is tested and works with PLAIN auth with the credentials, that
I also use for login.
On 13/05/2025 17:23, qhivert ([email protected] <mailto:[email protected]> )
wrote:
> Hello,
> Could you share the postfix log?
> Is the username/password for your smtp the same as for your ldap/imap server?
>
--
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
In an Internet failure case, the #1 suspect is a constant: DNS.
"Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-)
[How to ask smart questions:
<http://www.catb.org/~esr/faqs/smart-questions.html>
http://www.catb.org/~esr/faqs/smart-questions.html]