regarding ssl certificates
Excuse dopey question. I'm not exactly clear about certificates. Apache2 default install has this snake oil certificate Can make a new one for apache Can make one for dovecot Can make one for ssl Is there supposed to be the one (self signed ) certificate pair in one place for the machine that each process hands out ? Can they be moved to another machine ? mick -- Key IDC7D6E24C
Re: two lots of dovecot files
On 2019-03-04 17:25, Felix Zielcke via dovecot wrote: Am Montag, den 04.03.2019, 15:27 + schrieb mick crane via dovecot: hello is debian buster I have 2 sets of dovecot files, I don't know why. one in /etc/dovecot and one in /usr/share/dovecot they are not links they are actual files. if I rename /etc/dovecot and restart service then I get connection refused when use roundcube. Some time ago my roundcube installation stopped working properly for the web configuration options. Should I have these 2 directories or just want the one ? If want only one it's likely then that I configure wrong file with same name when I thought my ssl certificate has expired. Is OK to delete /etc/dovecot and check configuration in /usr/share/dovecot ? Hi, that's just the Debian packaging. In /usr/share/dovecot are the original unmodified files for reference. They're not used at all for the running dovecot. The active ones, which you need to modify and get used by dovecot are in /etc/dovecot. There's no point to delete the files in /usr/share/dovecot because on the next update of the dovecot packages they get installed again. Regards Felix Ah right, I think I've been changing the /usr/share files. thanks. -- Key IDC7D6E24C
two lots of dovecot files
hello is debian buster I have 2 sets of dovecot files, I don't know why. one in /etc/dovecot and one in /usr/share/dovecot they are not links they are actual files. if I rename /etc/dovecot and restart service then I get connection refused when use roundcube. Some time ago my roundcube installation stopped working properly for the web configuration options. Should I have these 2 directories or just want the one ? If want only one it's likely then that I configure wrong file with same name when I thought my ssl certificate has expired. Is OK to delete /etc/dovecot and check configuration in /usr/share/dovecot ? -- Key IDC7D6E24C
Re: I never touched nuthin'
On 2018-12-02 11:38, mick crane wrote: On 2018-12-01 14:35, Aki Tuomi wrote: On 01 December 2018 at 12:09 mick crane wrote: hello, do you mind if I ask before I start poking about ? suddenly I notice that gmail is ignoring or because there is an error getmail is not sending the delete request. Mails are sent and received but not deleted gmail so I keep getting them. mick@rapunzel:~/.getmail$ getmail --rcfile getmailrc1 Delivery error (command deliver 1363 wrote to stderr: lda(mick,)Error: net_connect_unix(/var/run/dovecot//stats-writer) failed: Permission denied) I think is apt install dovecot on debian buster probably I updated yesterday but was working OK since so I dunno what happened. is log full or something ? advices appreciated mick -- Key IDC7D6E24C Hi! you can fix this with service stats { unix_listener stats-writer { mode = 077 } } Aki I put this in 10-master.conf and still get error. OK /etc/dovecot/dovecot.conf seems like a better place. after reboot is happy -- Key IDC7D6E24C
Re: I never touched nuthin'
On 2018-12-01 14:35, Aki Tuomi wrote: On 01 December 2018 at 12:09 mick crane wrote: hello, do you mind if I ask before I start poking about ? suddenly I notice that gmail is ignoring or because there is an error getmail is not sending the delete request. Mails are sent and received but not deleted gmail so I keep getting them. mick@rapunzel:~/.getmail$ getmail --rcfile getmailrc1 Delivery error (command deliver 1363 wrote to stderr: lda(mick,)Error: net_connect_unix(/var/run/dovecot//stats-writer) failed: Permission denied) I think is apt install dovecot on debian buster probably I updated yesterday but was working OK since so I dunno what happened. is log full or something ? advices appreciated mick -- Key IDC7D6E24C Hi! you can fix this with service stats { unix_listener stats-writer { mode = 077 } } Aki I put this in 10-master.conf and still get error. -- Key IDC7D6E24C
Re: I never touched nuthin'
On 2018-12-01 14:35, Aki Tuomi wrote: On 01 December 2018 at 12:09 mick crane wrote: hello, do you mind if I ask before I start poking about ? suddenly I notice that gmail is ignoring or because there is an error getmail is not sending the delete request. Mails are sent and received but not deleted gmail so I keep getting them. mick@rapunzel:~/.getmail$ getmail --rcfile getmailrc1 Delivery error (command deliver 1363 wrote to stderr: lda(mick,)Error: net_connect_unix(/var/run/dovecot//stats-writer) failed: Permission denied) I think is apt install dovecot on debian buster probably I updated yesterday but was working OK since so I dunno what happened. is log full or something ? advices appreciated mick -- Key IDC7D6E24C Hi! you can fix this with service stats { unix_listener stats-writer { mode = 077 } } Aki hello Aki where do I put that ? mick -- Key IDC7D6E24C
I never touched nuthin'
hello, do you mind if I ask before I start poking about ? suddenly I notice that gmail is ignoring or because there is an error getmail is not sending the delete request. Mails are sent and received but not deleted gmail so I keep getting them. mick@rapunzel:~/.getmail$ getmail --rcfile getmailrc1 Delivery error (command deliver 1363 wrote to stderr: lda(mick,)Error: net_connect_unix(/var/run/dovecot//stats-writer) failed: Permission denied) I think is apt install dovecot on debian buster probably I updated yesterday but was working OK since so I dunno what happened. is log full or something ? advices appreciated mick -- Key IDC7D6E24C
Re: update to my first email
On 2018-08-18 01:32, Christy S wrote: Alright so after checking logs, rebooting the vps because why not, and removing and re-adding the account in thunderbird... Now nothing is working other than sending mail from gmail to the domain. imap does not pick up the email and trying to send with the domain just plain fails, saying it can't connect to the server. Honestly, tempted to uninstall dovecot, sasl and postfix and start again, but I don't want to run into the same issues with conflicting tutorials. Does anyone know of a good source of how to do this that's fairly recent? I'll keep searching, but all of the outdated info is kind of frustrating. If anyone has replied to me I haven't gotten it yet, so I'm not ignoring anything you may have said. For now going to give this a break. I've been working on it literally all day! :) Christy I guess the first thing is to test dovecot is working properly https://wiki.dovecot.org/TestInstallation then you use dovecot as mail delivery agent mick -- Key ID4BFEBB31
Re: post-delivery virus scan
On 2016-11-09 21:36, Brad Koehn wrote: I have discovered that many times the virus definitions I use for scanning messages (ClamAV, with the unofficial signatures http://sanesecurity.com/usage/linux-scripts/) are updated some time after my server has received an infected email. It seems the virus creators are trying to race the virus definition creators to see who can deliver first; more than half of the infected messages are found after they’ve been delivered. Great. To help detect and remove the infected messages after they’ve been delivered to users’ mailboxes, I created a small script that iterates the INBOX and Junk mailbox directories, scans recent messages for viruses, and deletes them if found. The source of my script (run via cron) is here: https://gitlab.koehn.com/snippets/9 Unfortunately Dovecot doesn’t like it if messages are deleted (dbox) out from under it. I tried a doveadm force-resync on the folder containing the messages, but it seems Dovecot is still unhappy. At least on the new version (2.2.26.0) it doesn’t crash; 2.2.25 would panic and coredump when it discovered messages had been deleted. I’m wondering if there’s a better way to scan recent messages and eradicate them so the Dovecot isn’t upset when it happens. Maybe using doveadm search? Looking for suggestions. leave an empty message behind with the same name as deleted message ? -- key ID: 0x4BFEBB31
Re: First steps in Dovecot; IMAP not working
On 2016-10-18 07:55, Moi wrote: Two things to check: > # What does dovecot think user "mailtest" has? > doveadm user mailtest I get this: field value uid 1002 gid 8 home/home/mailtest mailmbox:~/mail:INBOX=/var/mail/mailtest this looks wrong I don't think /var should be your home directory. system_groups_user mailtest > # The sticky bit should be set on /var/mail (you didn't mention > # setting it. It probably doesn't have bearing on this problem, > # but it will make it a little more secure. > chmod 1777 /var/mail You're right, I didn't do it. I usually don't use this command, I look at the log file which seems to have more details. Try > looking there for more diagnostics. Also, look at your MTA's logs as well. I'll try to locate them. Thank you. I always install "locate" and whenever I change anything do as root "/usr/bin/updatedb" then you can type "locate *.log" -- key ID: 0x4BFEBB31
Re: First steps in Dovecot; IMAP not working
On 2016-10-15 09:48, Marnaud wrote: Le 15 oct. 2016 à 9:56, mick crane <mick.cr...@gmail.com> a écrit: I assume this means there are no emails in the INBOX. send yourself a mail. This is actually one of the first thing I tried when I saw outgoing mails worked. I also tried sending mails from another address, hoping to receive an error message back, but nothing got received. I now think the INBOX itself doesn’t exist, as logs seem to mention and someone else already told. Then, of course, I’d get 0 existing mails since the INBOX doesn’t exist. Thanks. http://wiki.dovecot.org/FindMailLocation -- key ID: 0x4BFEBB31
Re: First steps in Dovecot; IMAP not working
On 2016-10-14 21:32, Marnaud wrote: Le 14 oct. 2016 à 16:06, mick crane <mick.cr...@gmail.com> a écrit: On 2016-10-14 13:43, Moi wrote: Hello, First of all, I'm sorry if you received this mail twice; I haven't received it the first time so I think it was lost. Second attempt. I've made some more tests and I still can't receive mails. Outlook doesn't complain about anything, no error message; the mails that are supposed to be received just won't appear. In the mail logs, I find this line (other lines are irrelevant): dovecot: imap-login: Aborted login (no auth attempts in 2 secs): user=<> [...] Is this a problem that looks familiar? It's a bit clueless without an error message. Any idea welcome. http://wiki.dovecot.org/TestInstallation Thank you. I’m at the “Check that it finds INBOX” section and am getting: * 0 EXISTS * 0 RECENT (the remaining text being the same as the example). So it looks like the mailbox doesn’t exist… I assume this means there are no emails in the INBOX. send yourself a mail. http://www.binarytides.com/linux-mail-command-examples/ -- key ID: 0x4BFEBB31
Re: First steps in Dovecot; IMAP not working
On 2016-10-14 13:43, Moi wrote: Hello, First of all, I'm sorry if you received this mail twice; I haven't received it the first time so I think it was lost. Second attempt. I've made some more tests and I still can't receive mails. Outlook doesn't complain about anything, no error message; the mails that are supposed to be received just won't appear. In the mail logs, I find this line (other lines are irrelevant): dovecot: imap-login: Aborted login (no auth attempts in 2 secs): user=<> [...] Is this a problem that looks familiar? It's a bit clueless without an error message. Any idea welcome. http://wiki.dovecot.org/TestInstallation -- key ID: 0x4BFEBB31
Re: Unable to login with iPhone?
On 2016-04-06 02:06, Jason Pruim wrote: If I try to telnet to port 993 from my local computer it connects, but won't let me login... Same on port 143... Any ideas? are you going through this check list ? http://wiki.dovecot.org/TestInstallation and there is quite a bit here https://www.linode.com/docs/email/postfix/troubleshooting-problems-with-postfix-dovecot-and-mysql -- key ID: 0x4BFEBB31
Re: Migrating from Olde server to Dovecot
On 2016-04-04 07:49, Hendrik Velloen wrote: Hi I am new to the mailing List, and was hoping to get some assistance migrating from an Old Cucipop + Sendmail server (running on a old Redhat v 7) to a new Dovecot setup. My new installation is Dovecot + Postfix. All is setup and working, however I want to trasnsfer the contents of the mailboxes from my old server to this new Dovecot setup. Please let me know what information will be required to transfer the mailboxes - I have tried a number of things, but with no luck. I think the correct method is the one below, but I am getting UIDL errors and AUTH errors and not sure if this is the right approach PLEASE HELP dsync -u mirror mbox:~/mail:INBOX= ~# dsync -u hendr...@tcmvpn.co.za mirror mbox:~/mail:INBOX=/var/mail/User_mbox/hendrikv dsync(hendr...@tcmvpn.co.za): Error: pop3c(196.26.136.162): AUTH PLAIN failed: -ERR Invalid command, try one of: USER name, PASS string, APOP name digest, QUIT dsync(hendr...@tcmvpn.co.za): Error: pop3c: Disconnected from remote server dsync(hendr...@tcmvpn.co.za): Error: pop3_migration: Couldn't sync mailbox POP3-MIGRATION-NS/INBOX: Internal error occurred. Refer to server log for more information. [2016-04-04 08:27:01] dsync(hendr...@tcmvpn.co.za): Error: Mailbox INBOX: Remote didn't send mail GUID=ddbe5c71e58919cfe2a40905bced091d (UID=3054) dsync(hendr...@tcmvpn.co.za): Error: Mailbox INBOX: Remote didn't send mail GUID=64087a4c7bf960114cf17ba044047900 (UID=374) dsync(hendr...@tcmvpn.co.za): Error: Mailbox INBOX: Remote didn't send mail GUID=fd28baf9e91aedaf06c6e979ca76e96f (UID=2982) dsync(hendr...@tcmvpn.co.za): Error: Mailbox INBOX: Remote didn't send mail GUID=607087e611559d2df02c0684de87e10d (UID=991) dsync(hendr...@tcmvpn.co.za): Error: Mailbox INBOX: Remote didn't send mail GUID=c6a9aebd1f535f0cd82ed612a42bae77 (UID=1541) dsync(hendr...@tcmvpn.co.za): Error: Mailbox INBOX: Remote didn't send mail GUID=4c56ffcfb600c8b216b2f1603383dc13 (UID=1007) dsync(hendr...@tcmvpn.co.za): Error: Mailbox INBOX: Remote didn't send mail GUID=96ce5556fab323206f51deb03625be8a (UID=2357) dsync(hendr...@tcmvpn.co.za): Error: Mailbox INBOX: Remote didn't send mail GUID=cda74cb161321b7c99973cc65e80a591 (UID=1401) dsync(hendr...@tcmvpn.co.za): Error: Mailbox INBOX: Remote didn't send mail GUID=b735acf7ef69b39be157a97223878cdc (UID=642) dsync(hendr...@tcmvpn.co.za): Error: Mailbox INBOX: Remote didn't send mail GUID=6d9baedf21198be32152461f96737a1a (UID=481) dsync(hendr...@tcmvpn.co.za): Error: Mailbox INBOX: Remote didn't send mail GUID=19f36b934b74ce11f1eda95e32a0b112 (UID=1998) dsync(hendr...@tcmvpn.co.za): Error: Exporting mailbox INBOX failed: Can't lookup pop3-uidl for UID=1: POP3 UIDLs couldn't be synce the descriptions here are for moving between formats. http://wiki.dovecot.org/Migration/MailFormat Isn't mbox one big file that you can copy across ? I have just made a new server with Maildir format. Probably it is not the thing to do but I copied the old ~/Maildir/cur contents to new ~/Maildir/new (or cur I forget which) seems to work except they all get the same date. mick -- key ID: 0x4BFEBB31