Home Forums OS X Server and Client Discussion Mail mail store and database on other partition

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #365176
    isaac
    Participant

    I’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 refused

    And 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?

    #365186
    isaac
    Participant

    nope, that didn’t do it. do I need to run the command as a certain user?

    #365190
    isaac
    Participant

    hrm, 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. Cool

    I’ll check back here Wednesday.

    #365191
    maccanada
    Participant

    Did you run the upgradedb script as listed in the migration pdf?
    sudo -u cyrusimap /System/Library/ServerSetup/SetupExtras/upgradedb

    ~Ian

    #365228
    isaac
    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.

    #365341
    isaac
    Participant

    the 10.4.5 update didn’t fix it.

    #365530
    JP
    Participant

    Tried 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”.

    #365531
    touwtje
    Participant

    Let me de-anonymize the previous reply Smile

    jp

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.

Comments are closed