A small mistake in a Dovecot error message.

2020-05-24 Thread Bill Shirley
I'm setting up a new mail server and got this message: May 21 11:55:09 vader dovecot[4090]: imap-login: Error: Diffie-Hellman key exchange requested, but no DH parameters provided. Set ssh_dh= The Dovecot parameter is actually: ss*l*_dh<=/path/to/dh.pem not ssh... Fedora release 32 (Thirty Two)

Re: Sieve "redirect" changes envelope sender in 2.3. / pigeonhole 0.5

2018-04-21 Thread Bill Shirley
On 4/20/2018 8:53 AM, Olaf Hopp wrote: On 04/20/2018 02:01 PM, Olaf Hopp wrote: Hi (Stephan?), is it a new feature of dovecot 2.3 /pigeonhole 0.5 that a sieve "redirect" changes the envelope sender of a redirected mail or simply a bug ? A sends mail to B, B redirects to C C sees B (not A!) as

Re: Sieve

2018-02-24 Thread Bill Shirley
This might get you pointed in the right direction: require "include"; require "fileinto"; require "body"; require "imap4flags"; require "regex"; if header :contains "subject" ["delayed mail", "undelivered mail", "returned to sender"] {   addflag "$label1";   stop; } if body :regex "rejected:[[:

Re: Aw: Re: problem with lda

2018-01-26 Thread Bill Shirley
Right, I figured out the symlink after I sent my response. Did you try the command switches from my post? Bill On 1/25/2018 8:07 AM, Infoomatic wrote: thanks for your input. Bill: deliver is just a symlink to dovecot-lda Stephan: I don't know, and and it even does not work when I use deliver

Re: problem with lda

2018-01-24 Thread Bill Shirley
Shouldn't the executable be dovecot-lda?: /usr/libexec/dovecot/dovecot-lda -d ${user}@${domain} -a {recipient} -f ${sender} -m ${extension} Bill On 1/24/2018 11:30 AM, Infoomatic wrote: Hello, I am currently testing the upgrade from our dovecot v2.2.23 to 2.3.0. I have a strange problem with

Re: Renewing certificates

2017-12-27 Thread Bill Shirley
I'm using acme.sh to get my Let's Encrypt certificates.  The install command is: acme.sh --installcert -d imap.example.com \     --keypath /etc/pki/dovecot/private/imap.example.com.pem \     --certpath /etc/pki/dovecot/certs/imap.example.com.crt \     --fullchainpath /etc/pki/dovecot/c

Re: ot: fail2ban dovecot setup

2017-12-17 Thread Bill Shirley
Copy dovecot-pop3imap.conf to dovecot-pop3imap.local.  Edit dovecot-pop3imap.local and add to the failregex: dovecot:.+auth failed.+rip= Then run: fail2ban-regex /var/log/dovecot.log /etc/fail2ban/filter.d/dovecot-pop3imap.local and see if you get any matches. Bill On 12/16/2017 6:56 PM, voy..

Re: sieve filter move wrong email to Junk folder

2017-12-14 Thread Bill Shirley
Also, I wouldn't use the second rule:     if header :contains "subject" ["SPAM?"] {       fileinto "Junk";       stop;     } If someone sends you an email with the subject "Can you help me with this spam?" it will get filed into Junk. Bill

Re: sieve filter move wrong email to Junk folder

2017-12-14 Thread Bill Shirley
This is what I use.  Notice the comma: require "fileinto"; if header :contains "X-Spam-Status" "Yes," {   fileinto "SystemFolders.SuspectedSpam";   stop; } Bill On 12/14/2017 1:02 PM, Richard wrote: Date: Thursday, December 14, 2017 09:47:44 -0800 From: Gao I use a sieve filter to move spam

Re: Log rotation and combining...

2017-11-16 Thread Bill Shirley
I believe you need a 'create' statement to set the permissions. Here is an example for mariadb: /var/log/mariadb/general.log /var/log/mariadb/slow_query.log /var/log/mariadb/error.log /var/log/mariadb/mariadb.log {     create 640 mysql mysql     daily     minsize 30M     notifempty

Re: Sieve global path?

2017-11-10 Thread Bill Shirley
  subscriptions dovecot.index.log    dovecot.list.index dovecot.sieve dovecot-uidvalidity.50841ad2 shared-folders  tmp Bill On 11/10/2017 6:06 AM, Alex JOST wrote: Am 10.11.2017 um 11:57 schrieb Bill Shirley: I just checked with Thunderbird, SquirrelMail, and Ro

Re: Sieve global path?

2017-11-10 Thread Bill Shirley
: Stephan von Krawczynski wrote on 10.11.2017 16:35: On Fri, 10 Nov 2017 03:41:20 -0500 Bill Shirley wrote: No it isn't shown as a folder.  All folder directories here begin with a dot. i.e.  .INBOX  .Trash  .Drafts Bill No, they don't. me thought that, too. But using the rainloop webmail

Re: Sieve global path?

2017-11-10 Thread Bill Shirley
No it isn't shown as a folder.  All folder directories here begin with a dot. i.e.  .INBOX  .Trash  .Drafts Bill On 11/10/2017 3:07 AM, Stephan von Krawczynski wrote: On Thu, 9 Nov 2017 21:02:44 -0500 Bill Shirley wrote: Set the sieve_global_dir like this. /etc/dovecot/conf

Re: Sieve global path?

2017-11-09 Thread Bill Shirley
Set the sieve_global_dir like this. /etc/dovecot/conf.d/99-mystuff.conf: . . plugin {   sieve = ~/Maildir/dovecot.sieve   sieve_dir = ~/Maildir/sieve   sieve_global_dir  = /etc/dovecot/sieve/global/   sieve_before  = /etc/dovecot/sieve/before.d/ #  sieve_bef

Re: IMAP stops responding.

2017-10-20 Thread Bill Shirley
See NATing comment below. Bill On 10/20/2017 5:24 AM, Søren Peter Skou wrote: Hiya all, I've experienced that IMAP/IMAPS stops responding. To restore service there is only one way, restart Dovecot completely. This leads to services being interrupted for some people, so it seems to only affec

Re: Mail Alias Stores in mySQL Not working

2017-10-12 Thread Bill Shirley
So ab...@kasdivi.com is an alias, not a user.  You can't login with an alias because your user_query is looking at the`mailbox` table. Have your tried logging in as: ad...@theoceanwindow.com OR you could put an entry forab...@kasdivi.com in your `mailbox` table. Bill On 10/12/2017 11:24 AM,

Re: Locking Errors

2017-10-12 Thread Bill Shirley
doveconf: Fatal: Error in configuration file /etc/dovecot/conf.d/10-master.conf line 27: Invalid size: $default_vsz_limit Have you though about fixing the configuration error? Bill On 10/12/2017 10:05 AM, List wrote: On Oct 12, 2017, at 8:56 AM, Bill Shirley wrote: Is everyone's

Re: Locking Errors

2017-10-12 Thread Bill Shirley
Is everyone's email going to /mail/user/Maildir ? What's the output of 'dovecot -n' ? Bill On 10/12/2017 9:47 AM, List wrote: We recently upgraded to version 2.2.10-8 on Centos 7 (from 2.2.10-7) and immediately started experiencing errors in the log file that look like this: Error: Broken fi

Re: Mail Alias Stores in mySQL Not working

2017-10-12 Thread Bill Shirley
Do you have an SQL entry for ab...@kasdivi.com ? Bill On 10/12/2017 9:31 AM, jason hirsh wrote: "In an earlier post you said your user_query was: user_query = SELECT CONCAT('/var/vmail/mail/', maildir) AS home, 5000 AS uid, 5000 AS gid, CONCAT('*:bytes=', quota) AS quota_rule FROM mailbox

Re: Mail Alias Stores in mySQL Not working

2017-10-11 Thread Bill Shirley
In an earlier post you said your user_query was: user_query = SELECT CONCAT('/var/vmail/mail/', maildir) AS home, 5000 AS uid, 5000 AS gid, CONCAT('*:bytes=', quota) AS quota_rule FROM mailbox WHERE username = '%u' AND active=‘1' Last post you said: mail is stored at /var/mail/vhosts and: m

Re: Mail Alias Stores in mySQL Not working

2017-10-10 Thread Bill Shirley
With that query, it appears everyone is sharing the same mail directory.  It, of course, depends on the value of `maildir`.  It doesn't look right. Have you checked your MySQL log file to see the actual query? We don't know your mailbox format.  Post your 'doveconf -n'. We don't know what your

Re: Mail Alias Stores in mySQL Not working

2017-10-10 Thread Bill Shirley
I see two problems: 1) you have two user_querys, there should only be one 2) your 2nd user_query is not limiting the SQL search with a WHERE clause Here is my setup: MySQL (root@localhost) [sys_mail]> SHOW COLUMNS FROM `Virtual_User`; ++--+--+-+

Re: Permission denied error on private key...

2017-10-07 Thread Bill Shirley
:03 AM, Bill Shirley wrote: What does ls -lZ /etc/pki/dovecot/private/mailserver.crt say? Bill On 10/7/2017 7:30 PM, SH Development wrote: I have a working dovecot/postfix/mysql server running and was trying to set up another one for replication purposes. If I copy my certificates from the

Re: Permission denied error on private key...

2017-10-07 Thread Bill Shirley
What does ls -lZ /etc/pki/dovecot/private/mailserver.crt say? Bill On 10/7/2017 7:30 PM, SH Development wrote: I have a working dovecot/postfix/mysql server running and was trying to set up another one for replication purposes. If I copy my certificates from the working server, everything wo

Re: Dovecot and Letsencrypt certs

2017-09-09 Thread Bill Shirley
;   }   fileinto "AASystemAdministration.Cron.certificate";   stop; } The redirect :copy I enable for my other servers to forward a copy to me. HTH, BIll On 9/9/2017 3:16 PM, Bill Shirley wrote: If you're using acme.sh: acme.sh --installcert -d imap.example.com \

Re: Dovecot and Letsencrypt certs

2017-09-09 Thread Bill Shirley
If you're using acme.sh: acme.sh --installcert -d imap.example.com \   --keypath /etc/pki/dovecot/private/imap.example.com.pem \   --certpath /etc/pki/dovecot/certs/imap.example.com.crt \   --fullchainpath /etc/pki/dovecot/certs/imap.example.com.full.chain.crt \   --reloadcmd    "systemctl

Re: lda

2017-09-06 Thread Bill Shirley
: Connection refused Pol why not simply use spamass-milter with postfix and then lmtp from dovecot, your desired way is really old fashioned...and has no benefit in any way On 2017-09-05 03:10, Bill Shirley wrote: Try main.cf: # dovecot 2.x mailbox_command = /usr/bin/spamc -e /usr/libexec/dovecot

Re: lda

2017-09-04 Thread Bill Shirley
Try main.cf: # dovecot 2.x mailbox_command = /usr/bin/spamc -e /usr/libexec/dovecot/dovecot-lda -a "$RECIPIENT" -f "$SENDER" -m "$EXTENSION" Bill On 9/3/2017 12:33 PM, doveco...@fuckaround.org wrote: Hi all :) I will try to use /usr/lib/dovecot/deliver instead of postfix. I'd like automatic

Re: is a self signed certificate always invalid the first time

2017-08-20 Thread Bill Shirley
I already have bind setup to allow DHCP to update. Sometimes I need to tweak things so I use nsupdate. No 'rndc reload' required. nsupdate.txt: delete Zeratul.lan.example.com A send delete 90.6.168.192.in-addr.arpa PTR send add Zeratul.lan.example.com 902 A 192.168.6.89 send add 89.6.168.192.in-

Re: /var/run/dovecot permission issues

2017-08-18 Thread Bill Shirley
I'm glad to read this thread. I didn't even know that dovecot stats existed. Which statistics do you find most useful? Bill On 8/17/2017 3:31 PM, Matt Simpson wrote: On Aug 17, 2017, at 12:07 PM, Larry Rosenman wrote: In /usr/local/etc/dovecot/conf.d/90-plugin.conf: Thanks. Those config s

Re: passwd-file, getting invalid uid 0

2017-07-18 Thread Bill Shirley
Unless your userid is also zero, my guess is that Exim isn't using the alias. This message (to me) says "I can't deliver to 'root' because that userid is zero". On Postfix, you have to run 'newaliases' after changing /etc/aliases. Bill On 7/13/2017 3:42 PM, Larry Rosenman wrote: Per my earl

Re: Moving dovecot/maildir to new host, dovecot.* files

2017-05-24 Thread Bill Shirley
I did it successfully the way you're thinking about doing it. If your uid's changed you should use rsync's --usermap= and --groupmap= I created a bash exec with an entry for each user: #!/usr/bin/bash USERMAP=400:psql,301:smbguest,501:bill GROUPMAP=400:pvsw,401:pvsw-adm,301:smbguest,501:bill ec

Re: Sieve GLOBAL + Sieve LOCAL

2017-05-18 Thread Bill Shirley
Doesn't 'keep' imply 'stop'? What if your users want the email in a different folder that the INBOX? Leave the 'else' clause off. Bill On 5/17/2017 4:07 PM, dove...@pallissard.net wrote: But what I would need is execute a global sieve_before for all users to apply some spam selection rules.

Re: Apparent Maildir permission issue

2017-01-16 Thread Bill Shirley
I've gotten errors like this when it was actually a selinux denial. If you're running selinux, check those logs too. Bill On 1/16/2017 4:09 PM, Mark Foley wrote: More info ... This is the only user having this permission problem. All other Thunderbird/dovecot users are getting mail file. The

Re: How does one mark all messages as read (imap4flag "seen") with sieve?

2016-11-11 Thread Bill Shirley
This one is for vmail which is attached. Bill On 11/10/2016 8:29 PM, Ben Johnson wrote: On 11/10/2016 3:46 AM, Bill Shirley wrote: I don't use the Anti-Spam plugin; I just fire off a BASH script every four hours with crontab which iterates thru the vmail email accounts and t

Re: How does one mark all messages as read (imap4flag "seen") with sieve?

2016-11-10 Thread Bill Shirley
I don't use the Anti-Spam plugin; I just fire off a BASH script every four hours with crontab which iterates thru the vmail email accounts and trains Spamassassin 'per-user' accounts. If the script sounds interesting I can post it here. It probably could use a little polish though. Bill On

Re: Managesieve problem

2016-07-22 Thread Bill Shirley
What directory is sieve configures to use? Mine is: sieve= ~/Maildir/dovecot.sieve Which is: drwxr-xr-x. 13 root root system_u:object_r:home_root_t:s0 4096 Jul 17 2015 /home drwx--. 13 bill bill unconfined_u:object_r:user_home_dir_t:s0 4096 Aug 30 2015 /home/bill dr

Re: Changing Password Schemes

2016-04-29 Thread Bill Shirley
Looks like an SQL update would do this: UPDATE `users` SET `passwd_SHA512` = SHA2(`passwd_clear`, 512); Bill On 4/29/2016 9:07 AM, Carl A Jeptha wrote: converting the passwords in the database from clear/plain text to SHA512-CRYPT You have a good day now, en mag jou môre ook so we

Re: autoexpunge - different settings for different users

2016-02-07 Thread Bill Shirley
If have a Bash script I invoke from cron that iterates thru /home looking for a control file in each users Maildir that looks like this: /home/bill/Maildir/maildir.dovecot.purge.conf #Mailbox : KeepDays # #INBOX

Re: doveadm search -A tries to create mailboxes

2016-01-07 Thread Bill Shirley
Hash: SHA1 On Wed, 6 Jan 2016, Bill Shirley wrote: The man page doesn't mention that 'search' updates anything. SEARCH has to open the Maildir. Dovecot has the feature to create mailboxes on the fly on access, not only on write accesses. If Dovecot wouldn't, you woul

Re: doveadm search -A tries to create mailboxes

2016-01-06 Thread Bill Shirley
On 1/6/2016 3:29 PM, Timo Sirainen wrote: On 05 Jan 2016, at 15:36, Bill Shirley wrote: [0:root@elmo ~]$ rpm -q dovecot dovecot-2.2.18-2.fc22.x86_64 I got a surprise today when I tried the doveadm search function from: http://wiki2.dovecot.org/Plugins/Expire [0:root@elmo ~]$ doveadm

doveadm search -A tries to create mailboxes

2016-01-05 Thread Bill Shirley
[0:root@elmo ~]$ rpm -q dovecot dovecot-2.2.18-2.fc22.x86_64 I got a surprise today when I tried the doveadm search function from: http://wiki2.dovecot.org/Plugins/Expire [0:root@elmo ~]$ doveadm search -A mailbox Trash savedbefore 30d doveadm(clamscan): Error: User initialization failed: Namesp

Re: [Dovecot] Help me with IMAP config

2012-11-12 Thread Bill Shirley
On 11/12/2012 4:40 AM, Tibby wrote: Hello! I have dovecot running. Imap works fine. When i connect with outlook an when i delete a message it gets crossed out but still stays in my mailbox. I want to disable this feature. I want it once its deleted then go to trash folder on the mail server a

Re: [Dovecot] spamc can't seem to call /usr/lib/dovecot/deliver

2012-10-24 Thread Bill Shirley
On 10/24/2012 2:32 PM, Robert Schetterer wrote: Am 24.10.2012 20:25, schrieb /dev/rob0: Regarding Robert's "flame" comment in the other subthread, I agree with you; I saw no flame. And I did not suggest that you were not trying to help take my sorry, as non native english, perhaps i missused "

Re: [Dovecot] spamc can't seem to call /usr/lib/dovecot/deliver

2012-10-24 Thread Bill Shirley
On 10/24/2012 2:24 PM, Robert Schetterer wrote: Am 24.10.2012 19:21, schrieb Bill Shirley: Admittedly, I have not used amavisd-new or LMTP; they may be better. But will they allow spamassassin per-user prefs? Performance is a plus; another daemon is not. That saying, I'll run another d

Re: [Dovecot] spamc can't seem to call /usr/lib/dovecot/deliver

2012-10-24 Thread Bill Shirley
On 10/24/2012 2:25 PM, /dev/rob0 wrote: On Wed, Oct 24, 2012 at 02:04:39PM -0400, Bill Shirley wrote: On 10/24/2012 1:39 PM, /dev/rob0 wrote: On Wed, Oct 24, 2012 at 01:28:41PM -0400, Bill Shirley wrote: On 10/24/2012 12:32 PM, /dev/rob0 wrote: On Tue, Oct 23, 2012 at 02:52:45PM -0600, Troy

Re: [Dovecot] spamc can't seem to call /usr/lib/dovecot/deliver

2012-10-24 Thread Bill Shirley
On 10/24/2012 1:39 PM, /dev/rob0 wrote: On Wed, Oct 24, 2012 at 01:28:41PM -0400, Bill Shirley wrote: On 10/24/2012 12:32 PM, /dev/rob0 wrote: There seems to be much confusion in this thread. I might be able able to help clear up some of it, but probably not all, because I agree with Robert

Re: [Dovecot] spamc can't seem to call /usr/lib/dovecot/deliver

2012-10-24 Thread Bill Shirley
On 10/24/2012 1:37 PM, Robert Schetterer wrote: Am 24.10.2012 18:28, schrieb Bill Shirley: I don't understand why you strongly recommend against using the mailbox_command. Is there a security risk here? no ,until you dont have made any setup failures... your right there are tons of wo

Re: [Dovecot] spamc can't seem to call /usr/lib/dovecot/deliver

2012-10-24 Thread Bill Shirley
On 10/24/2012 12:32 PM, /dev/rob0 wrote: There seems to be much confusion in this thread. I might be able to help clear up some of it, but probably not all, because I agree with Robert about using amavisd-new for filtering and LMTP for delivery. On Tue, Oct 23, 2012 at 02:52:45PM -0600, Troy Vi

Re: [Dovecot] spamc can't seem to call /usr/lib/dovecot/deliver

2012-10-24 Thread Bill Shirley
On 10/24/2012 12:44 PM, /dev/rob0 wrote: On Wed, Oct 24, 2012 at 12:28:48PM -0400, Bill Shirley wrote: I don't understand why you strongly recommend against using the mailbox_command. Is there a security risk here? One issue is that mailbox_command is only used for local(8) delivery

Re: [Dovecot] spamc can't seem to call /usr/lib/dovecot/deliver

2012-10-24 Thread Bill Shirley
On 10/24/2012 12:10 PM, Troy Vitullo wrote: On Tue, 23 Oct 2012 21:32:59 -0400 Bill Shirley wrote: On 10/23/2012 9:06 PM, Bill Shirley wrote: What is your mailbox_command in main.cf? I just use: mailbox_command = /usr/bin/spamc -u "$USER" -e /usr/lib64/dovecot/deliver -a "

Re: [Dovecot] spamc can't seem to call /usr/lib/dovecot/deliver

2012-10-24 Thread Bill Shirley
On 10/24/2012 12:09 PM, Robert Schetterer wrote: Am 24.10.2012 17:47, schrieb Bill Shirley: On 10/24/2012 2:33 AM, Robert Schetterer wrote: Am 24.10.2012 03:32, schrieb Bill Shirley: What is your mailbox_command in main.cf? I just use: mailbox_command = /usr/bin/spamc -u "$USER&quo

Re: [Dovecot] spamc can't seem to call /usr/lib/dovecot/deliver

2012-10-24 Thread Bill Shirley
On 10/24/2012 2:33 AM, Robert Schetterer wrote: Am 24.10.2012 03:32, schrieb Bill Shirley: What is your mailbox_command in main.cf? I just use: mailbox_command = /usr/bin/spamc -u "$USER" -e /usr/lib64/dovecot/deliver -a "$RECIPIENT" -f "$SENDER" -m "$E

Re: [Dovecot] spamc can't seem to call /usr/lib/dovecot/deliver

2012-10-23 Thread Bill Shirley
On 10/23/2012 9:06 PM, Bill Shirley wrote: On 10/23/2012 4:52 PM, Troy Vitullo wrote: Hi, My server uses a system comprised of postfix, dovecot and dspam to filter and deliver mail. Postfix used the following flags in calling spamc and dovecot: flags=DRhu user=dovecot:secmail argv=/usr

Re: [Dovecot] Problem with sieve. dovecot 2.0.17

2012-10-23 Thread Bill Shirley
On 10/23/2012 11:19 AM, Eliezer Croitoru wrote: Since I have lots of filtering rules in thunderbird I was thinking of using sieve instead. I want to filter incoming mail into subdirectories. like "from" store at folder "old". the script is: require ["fileinto", "envelope"]; if envelope :is "fro

Re: [Dovecot] spamc can't seem to call /usr/lib/dovecot/deliver

2012-10-23 Thread Bill Shirley
On 10/23/2012 4:52 PM, Troy Vitullo wrote: Hi, My server uses a system comprised of postfix, dovecot and dspam to filter and deliver mail. Postfix used the following flags in calling spamc and dovecot: flags=DRhu user=dovecot:secmail argv=/usr/bin/spamc -u ${recipient} -e /usr/lib/dovecot/d

Re: [Dovecot] Trouble implementing Antispam plug-in for Dovecot

2012-09-20 Thread Bill Shirley
On 9/19/2012 5:41 PM, Ben Johnson wrote: On 9/11/2012 10:40 AM, Ben Johnson wrote: You nailed it, Ben. Thanks! I downloaded/installed the dovecot-dev package from the same maintainer and was able to build Antispam without issue. The hang-up now seems to be with my configuration. I'm seeing

Re: [Dovecot] thunderbird not connecting

2012-09-06 Thread Bill Shirley
Turn on more debugging with these in your configuration: auth_verbose = yes auth_debug = yes auth_debug_passwords = yes mail_debug = yes verbose_ssl= yes and then check the server logs after trying to login. Also, I'm curious why you masked your PR

Re: [Dovecot] dovecot sasl + postfix issue

2012-09-03 Thread Bill Shirley
You should get AUTH after you STARTTLS. Bill On 9/3/2012 5:10 AM, tseveendorj wrote: Hello, I'm trying to configure postfix + Dovecot SASL for user authenticated mail relay. I set following configuration on postfix queue_directory = /var/spool/postfix smtpd_sasl_auth_enable = yes smtpd_sa