No incoming mail after switch to Dovecot?

sdible

Verified User
Joined
Oct 15, 2004
Messages
52
I just switched to Dovecot using CustomBuild and now it seems that none of my domains are getting any incoming mail.

Outgoing mail is working ok using Squirrelmail.

What could be the issue?
 
Last edited:
I switched about a week ago...

Is all that incoming mail just gone?
 
What commands did you use to switch. Because your exim.conf changes when you switch to dovecot.

Try

cd /usr/local/directadmin/custombuild
./build todovecot
 
What commands did you use to switch. Because your exim.conf changes when you switch to dovecot.

Try

cd /usr/local/directadmin/custombuild
./build todovecot

I will have to give that a try when I can get access.

I believe that I used ./build dovecot

Everything converted fine, but I suspect that the mail is being delivered to the older Mailbox system.

Any way for me to reconvert the mailbox stuff to maildir so that the emails that have come in the last few days will be converted?

I haven't deleted the mailbox stuff yet.
 
Code:
patch -p0 < /usr/local/directadmin/custombuild/exim.conf.dovecot.patch
/sbin/service exim restart
 
Code:
patch -p0 < /usr/local/directadmin/custombuild/exim.conf.dovecot.patch
/sbin/service exim restart

Will this also convert the mail that has been going in to the old mailbox system? Or is there some way for me to do that?
 
No, it wont. "./build dovecot" should have done that.
 
No, it wont. "./build dovecot" should have done that.

It did...

But now it seems that the email for the past few days is going to the old mailbox (I haven't deleted them yet).

I'm trying to see if there is a way I can convert the mailbox to maildir again in order to grab the latests emails.

Or will they just be lost?
 
Just do "./build todovecot" and it will convert them again.
 
Ok...

./build todovecot successfully brought in my lost mail.

When I try to run the patch, I get:

Code:
patch -p0 < /usr/local/directadmin/custombuild/exim.conf.dovecot.patch
patching file /etc/exim.conf
Hunk #1 FAILED at 608.
Hunk #2 FAILED at 771.
Hunk #3 FAILED at 786.
3 out of 3 hunks FAILED -- saving rejects to file /etc/exim.conf.rej

And mail is still not being delivered
 
Here is the content of the exim.conf.rej

Code:
***************
*** 608,616 ****
    allow_filter
    no_check_local_user
    condition = "${if exists{/etc/virtual/${domain}/filter}{yes}{no}}"
-   user = "mail"
    file = /etc/virtual/${domain}/filter
-   file_transport = address_file
    pipe_transport = virtual_address_pipe
    retry_use_local_part
    no_verify
--- 608,617 ----
    allow_filter
    no_check_local_user
    condition = "${if exists{/etc/virtual/${domain}/filter}{yes}{no}}"
+   user = "${lookup{$domain}lsearch{/etc/virtual/domainowners}{$value}}"
+   group = "mail"
    file = /etc/virtual/${domain}/filter
+   directory_transport = address_file
    pipe_transport = virtual_address_pipe
    retry_use_local_part
    no_verify
***************
*** 770,776 ****
    driver = appendfile
    delivery_date_add
    envelope_to_add
-   file = /var/mail/$local_part
    group = mail
    mode = 0660
    return_path_add
--- 771,780 ----
    driver = appendfile
    delivery_date_add
    envelope_to_add
+   directory = /home/$local_part/Maildir/
+   directory_mode = 770
+   create_directory = true
+   maildir_format
    group = mail
    mode = 0660
    return_path_add
***************
*** 782,790 ****
    driver = appendfile
    create_directory
    delivery_date_add
-   directory_mode = 700
    envelope_to_add
-   file = /var/spool/virtual/${domain}/${local_part}
    group = mail
    mode = 660
    return_path_add
--- 786,795 ----
    driver = appendfile
    create_directory
    delivery_date_add
+   directory_mode = 770
    envelope_to_add
+   directory = /home/${lookup{$domain}lsearch*{/etc/virtual/domainowners}{$value}}/imap/${domain}/${local_part}/Maildir
+   maildir_format
    group = mail
    mode = 660
    return_path_add
 
Back
Top