PDA

View Full Version : Vmail folder location


escu
15th July 2009, 10:40
Hello. I have installed ISPConfig 3.0.1.3 on CentOS 5.3. Everything works perfectly, so I decided to do a little tweaking :)

So, because I have a RAID 1 device, consisting of two 1 TB hard-disks which is mounted as /home, I decided both vmail folder and www folder should be placed in /home. I moved these two folders in /home and in Server Config -> Mail I have changed Maildir Path to /home/vmail/[domain]/[localpart] and Homedir Path to /home/vmail. Everything fine, but when I try to create new mailboxes, I get this error in mail logs:


-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
665EB5DE8ED 946 Wed Jul 15 10:05:38 apache@server1.domain.tld
(temporary failure. Command output: mkdir: cannot create directory `/var/vmail/domain.tld': No such file or directory maildirmake: /var/vmail/domain.tld/office: No such file or directory chmod: cannot access `/var/vmail/domain.tld': No such file or directory sh: /var/vmail/domain.tld/office/ispconfig_mailsize: No such file or directory /usr/bin/maildrop: Unable to open mailbox.)
office@domain.tld


The solution was a really simple one, just creating a symlink of /home/vmail in /var. Everything is fine now, but that's a small correction to be made to the code of this, otherwise, great thing called ISPConfig.


Cheers,

Cosmin

zond
15th July 2009, 16:23
what says command
ls -l /home/vmail

escu
15th July 2009, 16:34
I have already fixed the issue by making that symlink. So now in my /home/vmail folder there are two folders: mailfilters and domain.tld which is normal.

What I was saying is that changing those folders in Server Config -> Mail (Maildir Path and Homedir Path) does not actually changes them; ISPConfig keep trying to use the default location (/var/vmail)

zond
15th July 2009, 16:58
I have already fixed the issue by making that symlink. So now in my /home/vmail folder there are two folders: mailfilters and domain.tld which is normal.

What I was saying is that changing those folders in Server Config -> Mail (Maildir Path and Homedir Path) does not actually changes them; ISPConfig keep trying to use the default location (/var/vmail)

can you make a screenshot of Server Config -> Mail (Maildir Path and Homedir Path)

in webpanel ISPconfig a have System->Edit Server [ select server : example.com]-> (2 tabs ) Services and Config

and a can't change config between mailbox or maildir or locations

I think my installation of ISPconfig 3 is wrong

i will make screenshots

escu
15th July 2009, 17:14
Here it is. ISPControl 3.0.1.3

zond
15th July 2009, 17:37
hm, i have this
but where you change from maildir to mailbox

and why maildrop says
(temporary failure. Command output: /usr/bin/maildrop: Unable to open mailbox.

but ispconfig uses maildir

or it's not important

zond
15th July 2009, 21:22
my problem
http://www.howtoforge.com/forums/showthread.php?t=37461

till
16th July 2009, 11:57
The answer to this is really simple. You can not change the location of the maildir in ISPConfig after it is installed or you will have to change the maildir also manually in all maildrop scripts.