| Linode Forum https://forum.linode.com/ |
|
| Dovecot error https://forum.linode.com/viewtopic.php?f=11&t=10319 |
Page 1 of 1 |
| Author: | IceClimber [ Tue Aug 06, 2013 9:57 am ] |
| Post subject: | Dovecot error |
Twice now I've gone through all the steps of setting up MySQL/Postfix/Dovecot using the newer Linode guide. Each time I have the same problem: I can send email to the outside world but I can't recieve any from outside or even from one user to another on the localhost. I checked my logs and was receiving an error that /etc/ssl/certs/dovecot.pem and /etc/ssl/private/dovecot.pem were both missing and after checking the directories I recreated the keys and resolved the error. The only remaining problem seems to be this error: auth-worker(4826): Warning: mysql: Query failed, retrying: Table 'mailserver.users' doesn't exist I enabled verbose logging and the same error message appears in both Dovecot and Postfix error logs but I'm almost positive it's a problem with Dovecot. I had no problems with MySQL and was able to verify the database and tables. Same thing with the configuration for Postfix. Should I remove Dovecot and got through it again step by step? I've gone over the conf files several times now line by line and I don't see anything wrong. Does anyone know why it would refer to mailserver.users table? I read on the internet to check main Postfix cf file to ensure that "alias_maps" is set correctly, and it is (hash:/etc/aliases). I also have a feeling I will have the same problem if I remove Dovecot and set it up again. One more thing, the user mailboxes are never created in /var/mail. I assume they will be created when I receive my first mail. I also tried manually creating them and that didn't help. Any guidance would be most appreciated. I will post part of the log file below. This is right after I tried sending an email to my user account from the root account: Code: Aug 6 08:36:06 neptune postfix/pickup[4700]: C782D148DC: uid=0 from=<root> |
|
| Author: | Piki [ Tue Aug 06, 2013 1:14 pm ] |
| Post subject: | Re: Dovecot error |
That last one is just to verify that Postfix can actually receive emails. If it can, it should forward the email, and at least you'll know that it's mostly working. |
|
| Author: | IceClimber [ Tue Aug 06, 2013 1:51 pm ] |
| Post subject: | Re: Dovecot error |
No, and it shouldn't exist. I followed the Linode instructions and I do have a mailserver database with the three tables virtual_domains, virtual_users, and virtual_aliases. I'm able to verify through MySQL that everything exists and is configured properly. So, good there. I also checked the MySQL settings for Postfix and Dovecot 4 or 5 times. Followed the instructions to the letter and all looks good. Update: I have made some progress though and I'm no longer getting the same error. I can actually see email (sent from gmail.com) hit Postfix and I've never gotten this far before. The problem now is when it hands it off to Dovecot so I know that I'm very close. All I did was reinstall and at first I got an error about missing .pem and .key: Code: Aug 6 12:02:06 neptune postfix/smtpd[12272]: warning: cannot get RSA private key from file /etc/ssl/private/dovecot.pem: disabling TLS suppo$ This time I copied them from the default directory to /etc/ssl, where they should be according to Linode instructions and as they have been referenced in some of the config files. That took care of that error now I'm getting a very generic MySQL Could not connect to database error: Code: Aug 6 12:40:10 neptune dovecot: auth-worker(12795): Error: mysql(127.0.0.1): Connect failed to data$ One thing, when I do a service dovecot status I get a return that it is running and ok but it doesn't display a pid. According to the instructions it should give this value, not just say ok but that is all Postfix says and I wonder how accurate this is. I also tried to disable the ssl requirement in Dovecot but got errors about an exisiting socket when I tried to restart. Had to go back to ssl=yes for it to start properly. Anway, here is the latest entry from /var/log/mail.log where I think it shows the email from Google at least hitting my server. I think the problem now is delivery from the mda: Code: Aug 6 12:36:43 neptune postfix/smtpd[12766]: auto_clnt_create: transport=local endpoint=private/tlsmgr |
|
| Author: | IceClimber [ Fri Aug 09, 2013 8:08 am ] |
| Post subject: | Re: Dovecot error |
Well despite a lot of blood, sweat, and tears I'm still unable to get this to work so I think I'm going to go with Zoho to handle my email. I saw that I can get 5 users for free if I transfer my MX record with a $9.99 fee. I still think it would be cool to do it myself but I know this might also save a lot of headache and trouble down the road. I'm confident that I'll be able to get it to work in the near future. I've learned a lot and I continue to study Dovecot and Postfix. |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|