Home › Forums › OS X Server and Client Discussion › Mail › mail store and database on other partition
- This topic has 10 replies, 5 voices, and was last updated 20 years, 4 months ago by
afp548contributor.
-
AuthorPosts
-
February 6, 2006 at 8:13 pm #365176
isaac
ParticipantI’m trying to change the location of the default mail store and mail database to folders on a separate partition.
If I go to Server Admin > Mail > Advanced > Database and change ‘Database location’ and ‘Mail store location’ to the folders I want to use on /Volumes/mail, then no mail gets delivered:
When restarting the server after making this change, this appears in system.log:
… master[…]: unable to create lmtpunix listener socket: Invalid argument
… deliver[…]: connect(/Volumes/mail/database/socket/lmtp) failed: Connection refusedAnd this is in mail.log when trying to send a message:
… to=<...>, relay=cyrus, delay=0, status=deferred (temporary failure. Command output: couldn’t connect to lmtpd: Connection refused_ 421 4.3.0 deliver: couldn’t connect to lmtpd_ )
It seems to be something to do with the ability to create or access a socket for lmtp…
I do have permissions enabled on the volume, and all the relevant folders are owned and writable by cyrusimap:mail
There is a socket at /Volumes/mail/database/socket/lmtp (owned by system:mail and world read/writable).
Anybody know what to do?
February 6, 2006 at 10:24 pm #365186isaac
Participantnope, that didn’t do it. do I need to run the command as a certain user?
February 7, 2006 at 12:06 am #365190isaac
Participanthrm, nope. I tried it both as root and cyrusimap. Also tried making it so the two folders were not at the top level of the volume (inside a folder owned by cyrusimap:mail).
I still got the same errors in the log, so it must be something else.
(note, before trying mkimap, it created — by itself — what looked like the same structures as exist in the standard locations. It did it either when I saved the changes or when restarting mail service).
weird, eh?
This is 10.4.4, BTW. I freshly installed 10.4.3, and then updated to 10.4.4 before adding users or doing anything more than a minimal config.
Thank you for helping, though! If you have more ideas, please keep ’em coming.
I’ll check back here Wednesday.
February 7, 2006 at 12:26 am #365191maccanada
ParticipantDid you run the upgradedb script as listed in the migration pdf?
sudo -u cyrusimap /System/Library/ServerSetup/SetupExtras/upgradedb~Ian
February 8, 2006 at 3:30 pm #365228isaac
Participant[QUOTE BY= maccanada] Did you run the upgradedb script as listed in the migration pdf?
sudo -u cyrusimap /System/Library/ServerSetup/SetupExtras/upgradedb~Ian[/QUOTE]
Nope, still get the same error.
February 16, 2006 at 3:24 pm #365341isaac
Participantthe 10.4.5 update didn’t fix it.
March 3, 2006 at 11:35 am #365530JP
ParticipantTried to move both database and strore to other partition too, and ran into the same problems.
The first sign of a problem is that “master” isn;t able to create the lmtpunix listener socket because of an “Invalid argument”. The only argument that changed to lmtpunix in the cyrus.conf is the listen path. So I returned that to the original ‘listen=”/var/imap/socket/lmtp”‘.
This got rid of the “Invalid argument” error, but deliver still tried to connect to the new location, as defaults to {configdirectory}/socket/lmtp, so I added “lmtpsocket: /var/imap/socket/lmtp” to the imapd.conf.This resolved the error messages, and the mail did get delivered.
The question remains why the new listen path wasn’t accepted. If it’s the use of uppercase, I don’t know how to work around it, as we are stuck with one in “/Volumes”.
March 3, 2006 at 11:53 am #365531touwtje
ParticipantLet me de-anonymize the previous reply
jp
-
AuthorPosts
- You must be logged in to reply to this topic.
Comments are closed