Sorry for not answering earlier.
Here's the relevant information (this'll be a very long post):
`omshowlog -e` tells me about some SERIOUS ERRORs, most of them seem to be related to iconv issues, e.g.:
Code: Select all
SERIOUS ERROR Administration(omon ) 04.02.08 20:45:13
[OM 4830] Error in starting up a subsystem.
Current errno value: 3
<- cvc_iconvGetCharSetName
-> cvc_iconvGetCharSetName
<- cvc_iconvGetCharSetName
-> cvc_CnvStringTryIconv
<- cvc_CnvStringTryIconv
<- cvc_enhCnvString
-> cvc_enhCnvString
-> cvc_iconvGetCharSetName
<- cvc_iconvGetCharSetName
-> cvc_iconvGetCharSetName
<- cvc_iconvGetCharSetName
-> cvc_CnvStringTryIconv
<- cvc_CnvStringTryIconv
<- cvc_enhCnvString
-> con_ActivateSubSystem
<- /build/11.3.0/src/bin/con/con_on.c:1644[100,4830]
Don't know if that's relevant to the problem.
Sometimes I also see this error in the logs:
Code: Select all
SERIOUS ERROR Administration(omon ) 04.02.08 20:45:13
[OM 4826] Can't abort process 31590 of
part aborted subsystem SMTP Relay.
Current errno value: 3
And I guess that after I get this error message things get weird.
I found [
this very useful topic] in here and tried all the suggested actions as well as some things from other postings.
Let me summarize what I've done so far.
I experienced tons (more than 100,000) e-mails to my sxadmin account containing mail delivery notifcation reports, etc. and found out that the server I'm working on was missing appropriate entries in /etc/mail/local-host-names, so I added "domain.com" and "mail.domain.com" to this file and restarted sendmail.
That change didn't seem to help that much because I'm still getting error messages to the sxadmin mailbox and all these messages contain text like:
Code: Select all
Message could not be delivered to the following recipient:
info@mydomain.com
because: A mail transport failure occurred
Supplementary Information:
550 5.7.1 Blocked by SpamAssassin
Please note that "info@mydomain.com" and all other addresses mentioned in these e-mails are not valid e-mail addresses on this server so I don't want them to get logged that way. If there's any chance to get rid of them, please let me know.
If the above error message gets logged, usually the following messages follow:
Code: Select all
SERIOUS ERROR Administration(omon ) 04.02.08 20:45:13
[OM 4826] Can't abort process 31594 of
part aborted subsystem SMTP Relay.
Current errno value: 3
SERIOUS ERROR Administration(omon ) 04.02.08 20:45:13
[OM 4826] Can't abort process 31592 of
part aborted subsystem SMTP Relay.
Current errno value: 3
REPORT Administration(omon ) 04.02.08 20:46:03
[OM 10429] Subsystem SMTP Relay started by root.
ERROR SMTP Relay (SMTPD Relay Pr) 04.02.08 20:46:03
[OM.DMON 2171] The SMTP Relay could not listen on port 25.
REPORT Administration(omshowpwd ) 04.02.08 20:46:45
[OM 4630] Admin command run :
/opt/scalix/bin/omshowpwd -j
REPORT Administration(omchkaci ) 04.02.08 20:46:46
[OM 4630] Admin command run :
/opt/scalix/bin/omchkaci -n CN=Office CUSTOMER/G=Office/S=CUSTOMER/OU1=mail/OU2=customer -c modify -l all -j
SERIOUS ERROR Administration(omon ) 04.02.08 20:47:25
[OM 4830] Error in starting up a subsystem.
Current errno value: 3
<- cvc_iconvGetCharSetName
-> cvc_iconvGetCharSetName
<- cvc_iconvGetCharSetName
-> cvc_CnvStringTryIconv
<- cvc_CnvStringTryIconv
<- cvc_enhCnvString
-> cvc_enhCnvString
-> cvc_iconvGetCharSetName
<- cvc_iconvGetCharSetName
-> cvc_iconvGetCharSetName
<- cvc_iconvGetCharSetName
-> cvc_CnvStringTryIconv
<- cvc_CnvStringTryIconv
<- cvc_enhCnvString
-> con_ActivateSubSystem
<- /build/11.3.0/src/bin/con/con_on.c:1644[100,4830]
Some other errors I can see in the log files are lots of entries like this ("Datei oder Verzeichnis nicht gefunden" means "No such file or directory" for all non-German readers

):
Code: Select all
ERROR Internet Mail (Outgoing ) 01.16.08 19:43:49
[SYS 2] Datei oder Verzeichnis nicht gefunden
Current errno value: 2
-> tf_AppendRecord
<- tf_AppendRecord
-> tf_GotoRecord
<- tf_GotoRecord
-> tf_MarkNextRecord
<- tf_MarkNextRecord
-> tf_CreateFile
-> tf_FindFreeEntry
<- tf_FindFreeEntry
-> im_GetNewItemNum
<- im_GetNewItemNum
<- /build/11.0.4/src/lib/ombase/os/os_dirsize.c:49[1,2]
<- /build/11.0.4/src/lib/ombase/im/im_funcs.c:2036[1,2]
<- /build/11.0.4/src/lib/ombase/im/im_funcs.c:251[1,2]
<- /build/11.0.4/src/lib/tf/tf_CrtFile.c:110[1,2]
<- /build/11.0.4/src/lib/ndn/ndn_gen.c:1129[1,2]
What file is it looking for?
In the fatal log (/var/opt/scalix/ml/s/logs/fatal) I found out that it _MIGHT_ be looking for a file called "/var/opt/scalix/ml/s/nls/de_AT" which isn't available on my system.
In this directory I only have directories like "AMERICAN", "GERMAN", "C", ... so therefore I created a symlink for de_AT now to make these messages go away but that didn't help at all so I removed the symlink again. Am I missing some files or does this look like some kind of misconfiguration?
What about this one?
Code: Select all
ERROR Internet Mail (Incoming ) Wed Apr 2 09:15:28 2008
[OM 3102] A Built-in Converter encountered a serious error.
Pid of logging process: 8911
One additional question regarding the fatal log:
For the year 2008 now I have about 15526 messages marked with "ERROR" in this logfile and 1564 "SERIOUS ERROR" entries.
Most of them look quite the same (iconv issues, some of them mentioned above) but how many "ERROR" or "SERIOUS ERROR" messages usually get logged to this file during normal operation? I suspect that no error messages should get logged at all during normal operation, so please help me in getting rid of them all.
According to the recommendation to enable DEBUG_LOG in smtpd.cfg, I did this and now it started writing the smtpd-SMTP.log file. Maybe I'll be able to see more detailed information in this file after the next unexpected shutdown (until now, about 24 hours since I made some changes) the SMTPd service didn't stop anymore, but I'm sure it will
stop again.
Yesterday evening, the "Internet Mail Gateway" service seems to have stopped (according to `service scalix status`) but I don't know when this happened and so I cannot provide any logs for this case. What UNIX service or process is meant by Scalix when talking about the "Internet Mail Gateway"?
Is there any way to automatically recover in case of troubles? I found [
this topic] talking about a script/program called "ommaint" that should do the trick, but on my installation, only "ommaintbb" is available. Is this the same?
I also had troubles deleting all the thousands of messages in my sxadmin mailbox with the SWA or Thunderbird, so I switched to a somewhat scripted method using the `mailtool` application from the console news- and mailreader cone.
I just want to share this information in case someone else needs it:
Code: Select all
# To delete 2000 messages at once, use the following command
# Deleting more than 2000 messages usually isn't possible due to the limitation of the maximum command line length on Linux systems
mailtool -remove INBOX $(seq -s , 2000 -1 1) imap://user@mail.yourdomain.com
Another weird thing is that I usually get the famous GUI022 error codes on the SWA when doing heavy operations, e.g. deleting more than 100 e-mails at once. I searched this forum for possible solutions and tried to run `sxmkindex -r 0` which failed with a return value of 99. Searching again revealed that I needed to disable and re-enable the SIS Indexing for this user and afterwards the command completed successfully.
I then tried to `omtidyallu -M` which did complete without errors too, but the GUI022 errors haven't gone by doing this.
Any other ways to fix this?
Another thread mentioned the use of `omscan` to scan for errors and (if any) automatically repair them. It seemed to have fixed some issues but there are still some issues I'll elaborate on later.
First I tried to "fix" the sxadmin user with `omscan -AvfxSU sxadmin` where I got the following output:
Code: Select all
[root@mail tmp]# omscan -AvxSU sxadmin
omscan running on 04.04.08 at 09:04:49.
Host computer : mail.
Report mode requested.
Last omscan tool run on 04.04.08 at 09:04:17; duration 1 minute(s).
Previous server cycle run on 04.03.08 at 22:15:08; duration 4 minute(s).
Current server cycle not started; service reset or delayed.
Extra check option requested.
Active scan option requested.
Scanning file/dir links .... done.
CAUTION: Scanning of message store has started.
Mounted file/dir links must be maintained during the scan.
VxFS file system must not be reorganized - see omscan(1M).
Checking/Scanning user trays ....sxadmin / mail, domain/CN=sxadmin
Check Size : Should be 489 instead of 2294 for item ~/user/g000035/0000001:1.
Fix Attempt : Successfully modified size to 489 for item ~/user/g000035/0000001:1.
done.
Disk usage ....
DESCRIPTION INBOX OUTBOX SENT OTHERS TRASH TOTAL RCVRY (KB)
sxadmin /mail,domain/CN=sxadm 489 1 13 21580 1192 23275 1
[root@mail tmp]#
It pretends to fix something but a subsequent call to scan this users mail trays reveals the problem again, so it doesn't seem to have been fixed. What to do now?
I uploaded an anonymized `omscan -a` output to [
http://tuxx-home.at/temp/omscan.log] just in case someone is interested in having a look at this output and is willing to help me in fixing this issues.
The next question I want to bother you with:
What's the correct backup strategy for Scalix Servers? The guy who administered the server before I was called to help out has created a script which basically stops scalix and scalix-tomcat, copies over all the files in /opt/scalix and other paths to the backup directory and afterwards starts it again.
Is there any way to backup the Scalix database online?
Another short question:
The guy before me also made a "typo" (at least I think it is a typo) in the Scalix server configuration which annoys me everytime I'm looking at it. The mailserver is called "mail.domain" but is referred to as "mail,domain" (a comma instead of a dot) in the SAC and when running `sxmkindex` f.ex.. Any way to fix this or is a dot not allowed in this place?
Code: Select all
[root@mail tmp]# sxmkindex -r 0
sxadmin /mail,domain: 2398
[...]
After rebuilding the index, trying to clean up the sxadmin mailbox, etc. I still get strange IMAP errors like this one when trying to list the contents of my INBOX:
Code: Select all
tuxx@vi-edv003:~$ mailtool -index INBOX imap://sxadmin@192.168.0.250
imap://sxadmin@192.168.0.250> Password:
Total: 60 messages.
ERROR: some of the requested messages no longer exist
tuxx@vi-edv003:~$
OK, sorry for this very long posting, I hope someone made it the way down here and is able to help me out of my many problems with this Scalix installation.
If you're missing any information, just tell me and I'll provide that information.
Many, many thanks in advance!