Things are kind of getting close to working with my new Leopard/PPC install. I can make a virtual domain and mailbox, can generate the subdirectories in /usr/local/virtual by sending an e-mail from the command line, can log in to the account via roundcube, and can send an e-mail from the account. But! I cannot receive e-mails, and there are no default mailboxes made (ie there is an "indox", but no trash, drafts, or sent). The mail.log doesn't say much about this, it logs me in and out just fine and appears to accept incoming connections from other mailservers.
Yes this true, for now you need to create them manually or copy them from an existing mail folder. This is on my todo list and got some half baked script working but somehow due to other projects and problems it always drops to the bottom of the list for which I'm sorry.
I'll put it back up on top!
dw 31 Dec 2008
Thanks for the reply. I did try to make them myself, but I wasn't able to do so. What was going on is that Mail.app in 10.5.5 (10.5.6 too, apparently) is making a kind of strange recursive INBOX structure—So it is INBOX.INBOX.INBOX.INBOX etc.
could you try it with Thunderbird, that behaves a little better than Mail.app when it comes to IMAP. Just to create the folders. I'm working on the script as we are discussing this.
dw 03 Jan 2009
A few new details: I remade the /usr/local/virtual folder, and now I can generate the domain and account folders from postfixadmin. It looks like it was a permissions issue before, though I checked and rechecked it...
I also remembered how I had made the default folders before: postfixadmin has an option when making a new domain to include such folders.
There's something else going on than the inbox.inbox issue with mail.app. I've tried gyazmail and thunderbird, and neither can open my inbox. mail.log doesn't help, as it doesn't report any kind of error... it actually says only that the connection from my mail program has been successful.
These errors are not unheard of, having googled a bit, it shows that this kind of problem can appear if the maildirmake script that comes with courier-imap is not used (and I assume that postfixadmin uses this).
But no luck. There's definitely something odd going on. Here's a couple of things that may be significant:
If I try to use maildirmake myself to make the directories, it says simply "no such file or directory" --- that is to say, the folder I'm trying to make.
The other thing is that a couple of times I've seen folders like .Trash and .Sent (default-like folders) appearing in the virtual domain folder (/usr/local/virtual/mydomain.com/.Trash) rather than in the user account folders.
I've tried to check all the config files, but can't see where I might have make a mistake in declaring the virtual folder... any idea what the culprit might be?
Permissions was something I had not thought of. But it is an easy mistake to make. Postfix admin will create the folders if PHP has the imap option included (is on todo list as well).
As for Thunderbird you can use it's log to see what is going on.
If you turn the logging on for courier-auth is the proper user directory listed in mail.log when a user logs on ? That could be an error...
If you wish you can mail me your config files (imap, postfix and auth) and I'll have a look at them.
The problem is solved, in the authmysqlrc configuration file there was a space before the line: MYSQL_MAILDIR_FIELD maildir which caused courier-auth to ignore the line and not have a maildir field. This causes all kinds of strange unrelated errors.
28 Dec 2008
Things are kind of getting close to working with my new Leopard/PPC install. I can make a virtual domain and mailbox, can generate the subdirectories in /usr/local/virtual by sending an e-mail from the command line, can log in to the account via roundcube, and can send an e-mail from the account. But! I cannot receive e-mails, and there are no default mailboxes made (ie there is an "indox", but no trash, drafts, or sent). The mail.log doesn't say much about this, it logs me in and out just fine and appears to accept incoming connections from other mailservers.
Any clues?
Dave
31 Dec 2008
Yes this true, for now you need to create them manually or copy them from an existing mail folder. This is on my todo list and got some half baked script working but somehow due to other projects and problems it always drops to the bottom of the list for which I'm sorry.
I'll put it back up on top!
31 Dec 2008
Thanks for the reply. I did try to make them myself, but I wasn't able to do so. What was going on is that Mail.app in 10.5.5 (10.5.6 too, apparently) is making a kind of strange recursive INBOX structure—So it is INBOX.INBOX.INBOX.INBOX etc.
I found a discussion of this here:
http://discussions.apple.com/thread.jspa?threadID=1711289&tstart=0
I'll be trying the solutions offered when I have a few minutes and will report back.
01 Jan 2009
could you try it with Thunderbird, that behaves a little better than Mail.app when it comes to IMAP. Just to create the folders. I'm working on the script as we are discussing this.
03 Jan 2009
A few new details: I remade the /usr/local/virtual folder, and now I can generate the domain and account folders from postfixadmin. It looks like it was a permissions issue before, though I checked and rechecked it...
I also remembered how I had made the default folders before: postfixadmin has an option when making a new domain to include such folders.
There's something else going on than the inbox.inbox issue with mail.app. I've tried gyazmail and thunderbird, and neither can open my inbox. mail.log doesn't help, as it doesn't report any kind of error... it actually says only that the connection from my mail program has been successful.
These errors are not unheard of, having googled a bit, it shows that this kind of problem can appear if the maildirmake script that comes with courier-imap is not used (and I assume that postfixadmin uses this).
But no luck. There's definitely something odd going on. Here's a couple of things that may be significant:
If I try to use maildirmake myself to make the directories, it says simply "no such file or directory" --- that is to say, the folder I'm trying to make.
The other thing is that a couple of times I've seen folders like .Trash and .Sent (default-like folders) appearing in the virtual domain folder (/usr/local/virtual/mydomain.com/.Trash) rather than in the user account folders.
I've tried to check all the config files, but can't see where I might have make a mistake in declaring the virtual folder... any idea what the culprit might be?
03 Jan 2009
Permissions was something I had not thought of. But it is an easy mistake to make. Postfix admin will create the folders if PHP has the imap option included (is on todo list as well).
As for Thunderbird you can use it's log to see what is going on.
If you turn the logging on for courier-auth is the proper user directory listed in mail.log when a user logs on ? That could be an error...
If you wish you can mail me your config files (imap, postfix and auth) and I'll have a look at them.
04 Jan 2009
The problem is solved, in the authmysqlrc configuration file there was a space before the line: MYSQL_MAILDIR_FIELD maildir which caused courier-auth to ignore the line and not have a maildir field. This causes all kinds of strange unrelated errors.