Hi,

i setup sogo and it seems works fine, it eve fetch mail from uor mail server 
via IMAP, but i cant send mail from web mail interface of SOGO, when i try it 
it connects to server but not auth and get me SMTP auth error. I begin to check 
logs and find out this:

C: connect to <0x0x7f04c6b38240[NGInternetSocketAddress]: host=192.168.130.11 
not-filled>
S: <SMTP-Reply: code=220 line='mail.xxxxx.ru ESMTP'>
C: EHLO cal-server1.xxxxx.ru
S: <SMTP-Reply: code=250 line='AUTH LOGIN PLAIN'>
S: size extension supported.
S: plain auth extension supported.
C: AUTH PLAIN
C: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx==
C: QUIT
S: <SMTP-Reply: code=221 line='goodbye'>

than i go to this site   https://www.base64decode.org/ and decode AUTH PLAIN 
string that sended to server.

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx== decoded to like this:

user�user�password

it seems it sends username twice, but when i test smtp access from my server, i 
use this script to get PLAN string:

perl -MMIME::Base64 -e 'print encode_base64("\0my\@mailserver.ru\000password")

and all works fine, but SOGO add username twice and that why i cant send mail, 
i think. 

So? how to solve this problem?

I use hMailserver and not using SMTP AUTH is not option!

Here my config:

{

    SOGoLanguage = "Russian";

    SOGoUserSources = ({canAuthenticate = YES; displayName = "SOGo Users"; id = 
users; isAddressBook = YES; type = sql; userPasswordAlgorithm = md5; viewURL 
="mysql://sogoUSER:[email protected]:3306/sogoDB/sogo_users";});

 SOGoProfileURL = 
"mysql://sogoUSER:[email protected]:3306/sogoDB/sogo_user_profile";
 SOGoProfileURL = 
"mysql://sogoUSER:[email protected]:3306/sogoDB/sogo_user_profile";
 OCSFolderInfoURL = 
"mysql://sogoUSER:[email protected]:3306/sogoDB/sogo_folder_info";
 OCSSessionsFolderURL = 
"mysql://sogoUSER:[email protected]:3306/sogoDB/sogo_sessions_folder";
 SOGoEnableEMailAlarms = YES;
 OCSEMailAlarmsFolderURL = 
"mysql://sogoUSER:[email protected]:3306/sogoDB/sogo_alarms_folder";


    SOGoDraftsFolderName = Drafts;
    SOGoSentFolderName = Sent;
    SOGoTrashFolderName = Trash;
    SOGoIMAPServer = 192.168.130.11;
    SOGoSieveServer = sieve://127.0.0.1:4190;
    SOGoSMTPServer = 192.168.130.11;
    SOGoMailDomain = xxx.ru;
    SOGoMailingMechanism = smtp;
    SOGoForceExternalLoginWithEmail = YES;
//    SOGoMailSpoolPath = /var/spool/sogo;
    NGImap4ConnectionStringSeparator = ".";
 NGImap4DisableIMAP4Pooling = NO;
    SOGoSMTPAuthenticationType = plain;

 SOGoMailAuxiliaryUserAccountsEnabled = YES;

 IMAPLoginFieldName = IMAPname;

 DomainFieldName = domain;


  SOGoAppointmentSendEMailNotifications = YES;
  SOGoACLsSendEMailNotifications = YES;
  SOGoFoldersSendEMailNotifications = YES;

  SOGoPasswordChangeEnabled = NO;

  SOGoVacationEnabled = YES;
  SOGoForwardEnabled = YES;
  SOGoSieveScriptsEnabled = YES;
  //SOGoTrustProxyAuthentication = NO;

  SOGoLanguage = Russian;
  SOGoTimeZone = "Asia/Magadan";
//  SOGoSuperUsernames = {"vasalt", "alb"};
  //SxVMemLimit = 384;
  WOPidFile = "/var/run/sogo/sogo.pid";
  //SOGoMemcachedHost = "/var/run/memcached.sock";

  SOGoDebugRequests = YES;
  SoDebugBaseURL = YES;
  ImapDebugEnabled = YES;
  LDAPDebugEnabled = YES;
  PGDebugEnabled = YES;
  MySQL4DebugEnabled = YES;
  SOGoUIxDebugEnabled = YES;
//  WODontZipResponse = YES;
  WOLogFile = "/var/log/sogo/sogo.log";

}



-- 
[email protected]
https://inverse.ca/sogo/lists

Reply via email to