No Incoming Email after Dovecot install

jechilt

Verified User
Joined
Jun 21, 2004
Messages
212
OS: RH9
Latest exim.conf file from DA site
Latest SpamAssassin

Installed Dovecot IAW http://www.directadmin.com/features.php?id=590

Once the install was done, restart services.

Sending Mail = OK
Receive Mail = NOT ok

Try sending message to myself (IMAP accounts):
Code:
2006-11-25 18:38:56 1Go76m-0003HM-0R => jag <[email protected]> F=<[email protected]> R=virtual_user T=virtual_localdelivery S=1552
2006-11-25 18:38:56 1Go76m-0003HM-0R Completed

from the maillog:
Code:
Nov 25 18:43:53 server1 dovecot[29602]: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=71.211.130.76, lip=204.157.XXX.XXX

Can anyone help me? I have no idea where to look or figure out what is happening to the messages...
 
John,

Have you checked both where the old file should be, and where the new directory should be?

Jeff
 
Hi Jeff,

Not exactly sure what you are digging for here.

Here is what I can tell you:
I sent a test and ran a sniffer for it and got this:

/var/mail/admin
/var/spool/mail/admin

I turned on debugging in dovecot.conf
In maillog, I now see:
maildir: root=/home/admin/imap/tudads.com/administrator/Maildir, index=/home/admin/imap/tudads.com/administrator/Maildir, control=, inbox=

from what I can tell, when the conversion was done (todovecot), the mail was converted from mbox to Maildir.
When I logged in with my 3rd party email client (outlook express), all IMAP mail was reloaded.
When sending a message, a copy of the email is logged into the Sent Items folder, as it should. All subfolders are visible and all messages are in those folders.
The primary problem is no messages getting to the inbox.

I am not sure where I should start looking to track down what is happening to the message when it is received by the mail server (exim).
I apologize for my ignorance in this instance...
 
You need to find where the email was held before.

If that was a domain-account it would be a file at:

/var/spool/mail/username

and if it was a virtual-account set up for a domain it would be a file at:

/var/spool/virtual/example.com/username

So you should manually shell in and look at the file to see if the mail is being delivered there.

If the mail is there, then you know the problem is the mail is being delivered to the old location.

Then you need to find where the mail should be delivered after dovecott is installed.

Then look there to see if the message is there. If it's there, then you know that mail is being delivered to the new location.

In /etc/exim.conf, check for the section headed local_delivery: which controls how a domain-account email gets delivered.

The section headed virtual_localdelivery: controls how email to a virtual user is delivered.

Does the section local_delivery: have a line

file = /var/mail/$local_part

or does it have a line

directory = //home/$local_part/Maildir/

???

Does the section virtual_localdelivery: have a line

file= /var/spool/virtual/${domain}/${local_part}

or does it have a line

directory = /home/${lookup{$domain}lsearch*{/etc/virtual/domainowners}{$value}}/imap/${domain}/${local_part}/Maildir

???

Jeff
 
Hi Jeff,

verified via SSH - the deliver is still going to the old location.

exim has the following:
local_delivery:
file = /var/mail/$local_part


the other:
virtual_localdelivery:
file = /var/spool/virtual/${domain}/${local_part}

I assume I need to change these to the directory = as you listed?
 
I have gotten mail to come in to the inbox. More testing going on, but it appears I am making progress.

Made the following changes to the exim.conf:

- = rem out
+ = added

Code:
domain_filter:
   condition = "${if exists{/etc/virtual/${domain}/filter}{yes}{no}}"
   user = "mail"
   file = /etc/virtual/${domain}/filter
-  file_transport = address_file
+  directory_transport = address_file
   pipe_transport = virtual_address_pipe
   retry_use_local_part
   no_verify

virtual_user:
   driver = appendfile
   delivery_date_add
   envelope_to_add
-  file = /var/mail/$local_part
+  directory = /home/$local_part/Maildir/
+  directory_mode = 770
+  create_directory = true
+  maildir_format
   group = mail
   mode = 0660
   return_path_add

virtual_aliases:
   driver = appendfile
   create_directory
   delivery_date_add
-  directory_mode = 700
+  directory_mode = 770
   envelope_to_add
-  file = /var/spool/virtual/${domain}/${local_part}
+  directory = /home/${lookup{$domain}lsearch*{/etc/virtual/domainowners}{$value}}/imap/${domain}/${local_part}/Maildir
+  maildir_format
   group = mail
   mode = 660
   return_path_add
 
John,

The difference I gave you came directly from the instructions DA published on converting to Dovecott; I don't know why you had a problem.

(We still don't use it but we converted it on one of our testbed servers some time ago.)

Jeff
 
i am not sure why we had a problem either......but in any case, we got 'er running and all seems good to go for the moment.

I got a few wierd situations though with the imap folders.
When I use a 3rd party email client (Outlook), email is saved to the "Send Items" folder (not the new sent items folder created as a subfolder to the Inbox when converted todovecot)
However, when I log in with a webmail app and send a message, the messages gets copied to guess where? :-) the sent items (subFolder)under the Inbox. I am not sure of the work around at the moment but will look into it.
for this moment, i am not going to do anything. too many hours on this box...time to go spend some time with the family!
 
I have successful convert to dovecot in several freeBSD box.

The step is as simple as http://www.directadmin.com/features.php?id=590 said

Check if inetd is not running (dovecot supported imap by itself)

Check that no vm-pop3d running

What I ever found, after finished converted I have to restart services several time to take effect (after first restart it still go to the old system)

try
#/usr/local/etc/rc.d/exim stop
#/usr/local/etc/rc.d/exim stop
#/usr/local/etc/rc.d/exim stop
#/usr/local/etc/rc.d/dovecot stop
#/usr/local/etc/rc.d/da-popb4smtp stop
#/usr/local/etc/rc.d/exim start
#/usr/local/etc/rc.d/dovecot start
#/usr/local/etc/rc.d/da-popb4smtp start
 
Back
Top