|
Do you use ldap backend for authentication?
You should look at UIDFieldName in your sogo.conf. If multivalued key, the value should be the first (ex: mail[0], not mail[1]).
Adjust your user entry in ldap, and:
- sogo-tool rename-user [old_value] w.calendar@example.com
- Restart sogo and memcached
|
|
backup/remove/restore had no effect.
Nov 13 00:02:47 sogod [23449]: mail.example.com "PROPFIND /SOGo/dav/w.calendar@example.com/Contacts/personal/ HTTP/1.0" 401 0/175 0.003 - - 128K
Nov 13 00:02:47 sogod [23449]: mail.example.com "PROPFIND /SOGo/dav/w.calendar@example.com/Contacts/personal/ HTTP/1.0" 404 72/175 0.003 - - 0 |
|
sogo.conf
{
WOPort = 127.0.0.1:20000;
WOMaxUploadSize = 100500;
WOWorkersCount = 100;
SOGoMaximumPingInterval = 3540;
SOGoMaximumSyncInterval = 3540;
SOGoInternalSyncInterval = 30;
WOWatchDogRequestTimeout = 5;
SOGoMaximumSyncWindowSize = 100;
SOGoMaximumSyncResponseSize = 4096;
SxVMemLimit = 512;
SOGoProfileURL = "mysql://sogo:s3cr3t@127.0.0.1:3306/sogo/sogo_user_profile";
OCSFolderInfoURL = "mysql://sogo:s3cr3t@127.0.0.1:3306/sogo/sogo_folder_info";
OCSSessionsFolderURL = "mysql://sogo:s3cr3t@127.0.0.1:3306/sogo/sogo_sessions_folder";
OCSEMailAlarmsFolderURL = "mysql://sogo:s3cr3t@127.0.0.1:3306/sogo/sogo_alarms_folder";
SOGoLanguage = Russian;
SOGoLoginModule = Mail;
SOGoForceExternalLoginWithEmail = YES;
SOGoMailCustomFromEnabled = YES;
SOGoEnableEMailAlarms = YES;
SOGoIMAPServer = "imap://127.0.0.1:143/";
SOGoSMTPServer = 127.0.0.1;
SOGoMailingMechanism = smtp;
SOGoSieveServer = sieve://127.0.0.1:4190;
SOGoSieveScriptsEnabled = YES;
SOGoVacationEnabled = YES;
SOGoForwardEnabled = YES;
SOGoSieveFolderEncoding = UTF-8;
SOGoMemcachedHost = 127.0.0.1;
SOGoTimeZone = "Europe/Moscow";
SOGoFirstDayOfWeek = 1;
SOGoRefreshViewCheck = every_5_minutes;
SOGoMailReplyPlacement = below;
SOGoAppointmentSendEMailNotifications = YES;
SOGoFoldersSendEMailNotifications = YES;
SOGoACLsSendEMailNotifications = YES;
SOGoPasswordChangeEnabled = YES;
SOGothreadedview = YES;
SOGoUserSources = (
{
type = sql;
id = users;
viewURL = "mysql://sogo:s3cr3t@127.0.0.1:3306/sogo/users";
canAuthenticate = YES;
userPasswordAlgorithm = ssha;
prependPasswordScheme = YES;
isAddressBook = YES;
displayName = "Domain Address Book";
SOGoEnableDomainBasedUID = YES;
DomainFieldName = "domain";
}
);
SOGoUserSources = (
{
type = ldap;
hostname = "ldap://127.0.0.1:389";
baseDN = "o=domains,dc=mycomp,dc=ru";
bindDN = "cn=vmailadmin,dc=mycomp,dc=ru";
bindPassword = "s3cr3t";
filter = "objectClass=mailUser AND accountStatus=active AND enabledService=mail AND enabledService=sogo";
scope = SUB;
userPasswordAlgorithm = ssha;
IDFieldName = mail;
bindFields = (mail);
CNFieldName = cn;
UIDFieldName = mail;
IMAPLoginFieldName = mail;
SearchFieldNames = (cn, sn, displayName, telephoneNumber, mail, shadowAddress);
canAuthenticate = YES;
displayName = "Global Address Book";
id = ldap_auth;
isAddressBook = YES;
}
);
}
ldif
dn: mail=w.calendar@mycomp.ru,ou=Users,domainName=mycomp.ru,o=domains,dc=
mycomp,dc=ru
objectClass: inetOrgPerson
objectClass: mailUser
objectClass: shadowAccount
objectClass: amavisAccount
mail: w.calendar@mycomp.ru
userPassword:: s3cr3t=
uid: w.calendar
storageBaseDirectory: /var/vmail
mailMessageStore: vmail1/mycomp.ru/w/c/a/w.calendar-2016.10.27.18.05.07/
homeDirectory: /var/vmail/mycomp.ru/w/c/a/w.calendar-2016.10.27.18.
05.07/
enabledService: mail
enabledService: deliver
enabledService: lda
enabledService: lmtp
enabledService: smtp
enabledService: smtpsecured
enabledService: pop3
enabledService: pop3secured
enabledService: imap
enabledService: imapsecured
enabledService: managesieve
enabledService: managesievesecured
enabledService: sogo
enabledService: sieve
enabledService: sievesecured
enabledService: forward
enabledService: senderbcc
enabledService: recipientbcc
enabledService: internal
enabledService: lib-storage
enabledService: indexer-worker
enabledService: doveadm
enabledService: dsync
enabledService: shadowaddress
enabledService: displayedInGlobalAddressBook
shadowLastChange: 0
amavisLocal: TRUE
structuralObjectClass: inetOrgPerson
entryUUID: 7e3cbc48-3002-1036-838e-9ba8033019ea
creatorsName: cn=vmailadmin,dc=mycomp,dc=ru
createTimestamp: 20161027150507Z
cn: W Calendar
givenName: W
sn: Calendar
preferredLanguage: en_US
employeeNumber: w.calendar
mailQuota: 2147483648
accountStatus: active
entryCSN: 20161108200236.397159Z#000000#000#000000
modifiersName: cn=vmailadmin,dc=mycomp,dc=ru
modifyTimestamp: 20161108200236Z
BTW, strange line end at homeDirectory |