Home › Forums › OS X Server and Client Discussion › Questions and Answers › OSX Mail Server Issue
- This topic has 3 replies, 2 voices, and was last updated 20 years, 7 months ago by
Pascal.
-
AuthorPosts
-
July 29, 2005 at 7:32 pm #362582
jislord
ParticipantRan into a very strange mail issue….
I decided to write a script to backup emails of all users in my OSX 10.3.9 server (script attached below). I included this script in my crontab. It ran fine, backed up all emails. However, when the mail server started again, none of the email accounts were functioning. When I checked Server Admin, I found that the mail storage path had changed for all users to “Unknown Mailbox Path”. All settings for mail were however identical. The mail store path was still “/var/spool/imap”.
After a struggle, I got everything up and running by reconstructing all mailboxes. Now, I am afraid to run this script again.. Any pointers?-J
#!/bin/bash
# keep 5 days of mail backups #
ditto /Backup/Daily/var.imap.old3/ /Backup/Daily/var.imap.old4/
ditto /Backup/Daily/var.imap.old2/ /Backup/Daily/var.imap.old3/
ditto /Backup/Daily/var.imap.old1/ /Backup/Daily/var.imap.old2/
ditto /Backup/Daily/var.imap/ /Backup/Daily/var.imap.old1/ditto /Backup/Daily/var.spool.imap.old3/ /Backup/Daily/var.spool.imap.old4/
ditto /Backup/Daily/var.spool.imap.old2/ /Backup/Daily/var.spool.imap.old3/
ditto /Backup/Daily/var.spool.imap.old1/ /Backup/Daily/var.spool.imap.old2/
ditto /Backup/Daily/var.spool.imap/ /Backup/Daily/var.spool.imap.old1/# backup active mail directories #
/usr/sbin/serveradmin stop mail
ditto /var/imap/ /Backup/Daily/var.imap/
ditto /var/spool/imap/ /Backup/Daily/var.spool.imap/
/usr/sbin/serveradmin start mailAugust 1, 2005 at 2:09 pm #362596jislord
ParticipantSome more details:
I think I have narrowed down the problem. Still need a solution though !
When I do a “serveradmin mail stop”, it does not stop postfix.
When I do a “postfix stop”, even then, it starts again automatically !!.
I am sure that postfix is corrupting the cyrus databases when they are being backed up. Any ideas?August 2, 2005 at 2:01 pm #362623jislord
ParticipantI am not sure what kind of programs that you mean? I have the default config: postfix is the mta and cyrus is the imap server. Would clients requesting imap or pop data also start these services automatically?
April 9, 2006 at 5:15 pm #365953Pascal
ParticipantI know this is late, but shouldn’t it say ‘serveradmin stop mail’ instead of ‘serveradmin mail stop’?
-
AuthorPosts
- You must be logged in to reply to this topic.