PDA

View Full Version : IMAP troubles


d1m
20th May 2006, 18:56
Hello all. I have some issue with using IMAP.
I'm running Debian Etch + Postfix + CourierIMAP/POP. And sure ISPConfig =)

First I had troubles with connecting to IMAP service. It was "Login failed" message. After making some changes to
/etc/courier/authdaemonrc
First there was
authmodulelist="authuserdb"
and login starts functioning after changing to
authmodulelist="authuserdb authpam"

But now I have such lines in syslog:

May 20 18:52:42 vps26ua imaplogin: Connection, ip=[::ffff:127.0.0.1]
May 20 18:52:42 vps26ua imaplogin: LOGIN: DEBUG: ip=[::ffff:127.0.0.1], command=AUTHENTICATE
May 20 18:52:42 vps26ua imaplogin: authdaemon: starting client module
May 20 18:52:42 vps26ua imaplogin: authdaemon: ACCEPT, username web17_admin
May 20 18:52:42 vps26ua imaplogin: chdir Maildir: No such file or directory


There are folders in /var/spool/mail/virtual with sitenames, and I think appropriate should be here: /var/spool/mail/virtual/hs.net.ua/admin. There are maildir folder structure in this folder.

Please, help to fix this issue. I'm new to mailing system configuration.

till
20th May 2006, 19:38
There are folders in /var/spool/mail/virtual with sitenames, and I think appropriate should be here: /var/spool/mail/virtual/hs.net.ua/admin. There are maildir folder structure in this folder.

These folders can not be from ISPConfig, ISPConfig uses a different folder scheme and the folders are never in /var/spool/...

Try to send an email to the mailbox, postfix will create the Maildir for you. Make sure you checked the "Maild ir" checkbox in ISPConfig under Management > server > settings on the mail tab.

If you are not sure taht you configured postfix correctly, have a look at the debian perfect setup howtos linked on the ISPConfig documentation page.

d1m
21st May 2006, 00:03
Yes, I missed those checkbox. But there is one more trouble. I have no Trash folder. Only incoming. So, using roundcube I can't delete mail by moving them to trash.

till
21st May 2006, 14:41
Yes, I missed those checkbox. But there is one more trouble. I have no Trash folder. Only incoming. So, using roundcube I can't delete mail by moving them to trash.

Roundcube is stil in alpha state, if i remember correctly there are some problems with the trash folder.

If you want to create imap folders manually, you can try the "Maildirmake" command.

d1m
21st May 2006, 18:00
It works fine if I create folder "Trash" manualy through web-interface of roundcubemail. But is there an option to create this folder for each mail account automaticaly? I have strong knowledges in php language, so please tell me, where could I modify engine to add this folder.

falko
21st May 2006, 21:25
Have a look at the user_insert() function in /root/ispconfig/scripts/lib/config.lib.php. But keep in mind that you lose the ability to update to future versions of ISPConfig if you customize your version.

d1m
22nd May 2006, 00:38
As you told,
>postfix will create the Maildir for you.
Is there an template of maildir structure used by postfix on ~/Maildir creation? Or should I add exex('.....') to the script?

PS: Please, sorry for my bad English.

falko
22nd May 2006, 09:58
There is a Maildir folder, and in it the folders cur, new and tmp.

d1m
22nd May 2006, 23:30
There is a Maildir folder, and in it the folders cur, new and tmp.

I expressed myself with ambiguity. I mean, template for the INBOX, Trash and Sent folders.

Or, in other words, how can I automatically create this folders?

falko
22nd May 2006, 23:54
Or, in other words, how can I automatically create this folders?
With the maildirmake command: http://www.howtoforge.com/forums/showthread.php?t=1147&highlight=maildirmake