View Full Version : No incoming mail after switch to Dovecot?
sdible
11-18-2008, 10:40 AM
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?
sdible
11-18-2008, 10:46 AM
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
sdible
11-18-2008, 11:32 AM
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.
smtalk
11-18-2008, 12:09 PM
patch -p0 < /usr/local/directadmin/custombuild/exim.conf.dovecot.patch
/sbin/service exim restart
sdible
11-18-2008, 12:11 PM
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?
smtalk
11-18-2008, 12:15 PM
No, it wont. "./build dovecot" should have done that.
sdible
11-18-2008, 02:00 PM
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?
smtalk
11-18-2008, 02:12 PM
Just do "./build todovecot" and it will convert them again.
sdible
11-18-2008, 02:13 PM
Just do "./build todovecot" and it will convert them again.
Thanks... I will give this a shot tonight.
sdible
11-18-2008, 04:06 PM
Ok...
./build todovecot successfully brought in my lost mail.
When I try to run the patch, I get:
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
sdible
11-18-2008, 04:08 PM
Here is the content of the exim.conf.rej
***************
*** 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
smtalk
11-19-2008, 02:48 PM
Fixed, it was an old version of exim.conf file.
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.