Re: sasl service for other app

2022-12-12 Thread justina colmena ~biz
Okay.  Let's try this. With the snippet you posted from
"/etc/dovecot/conf.d/10-master.conf "
inside the "service auth {...}" section. 

This is from my "/etc/postfix/master.cf"

> submission inet n   -   n   -   -   smtpd
> #  -o syslog_name=postfix/submission
> 
>   -o smtpd_tls_security_level=encrypt
>   -o smtpd_sasl_auth_enable=yes
>   -o smtpd_sasl_type=dovecot
>   -o smtpd_sasl_path=private/auth
>   -o smtpd_sasl_security_options=noanonymous



On Thursday, December 8, 2022 4:49:06 AM AKST Shawn Heisey wrote:
> On 12/7/22 21:53, Henry R wrote:
> > can dovecot run as a general sasl service for other apps? such as webdav.
> 
> I am using dovecot to provide authentication for postfix submission. 
> This is the config in postfix:
> 
> smtpd_sasl_type = dovecot
> # Referring to /var/spool/postfix/private/auth
> smtpd_sasl_path = private/auth
> 
> In /etc/dovecot/conf.d/10-master.conf I have this:
> 
>unix_listener /var/spool/postfix/private/auth {
>  mode = 0666
>  user = postfix
>  group = postfix
>}
> 
> If the application supports using a socket for sasl, then I would
> imagine that Dovecot should work.
> 
> Postfix is using the same postfixadmin database for email addresses that
> Dovecot is, but for authentication, it's all Dovecot.
> 
> I should probably look into Dovecot's submission support so I don't need
> to have postfix using that auth socket, just haven't found the time.
> 
> Thanks,
> Shawn


-- 
https://justina.abeja.colmena.biz/




Re: mail filters

2022-12-12 Thread Benny Pedersen

John Stoffel skrev den 2022-12-13 01:42:


I use something like this and it's pretty good:

   require ["fileinto", "envelope"];
   require "imap4flags";
   require "regex";


can be merged into one line


   if header :contains "Sender" "linux-kernel-ow...@vger.kernel.org" {
 fileinto "lkml";
   }
   elsif header :contains "X-Mailing-List" 
"linux-ker...@vger.kernel.org"

   {
 fileinto "lkml";
   }


can be merged into one line if "List-Id: Dovecot Mailing List 
" is used



   else {
 # The rest goes into INBOX
 # default is "implicit keep", we do it explicitly here
 keep;
   }



posting to maillist will get dupes in return since message-id would not 
change, if any thing should be filtered as dupe delte the sent mail or 
do nothing :)


Re: mail filters

2022-12-12 Thread John Stoffel
> "mick" == mick crane  writes:

> I'm using what ever is in Debian Bookworm, I'm pretty sure.
> These filters?

sieve of some sort.

> I collect from different email addresses like gmail and that.  If
> filter for the "Sent to" email address, move to this directory If
> "From" contains "blah", move to this other directory.  If something
> is Sent to and also From contains "blah" then I get 2 copies of the
> message in both filter directories.  How can I fix this?  regards

By posting an example of the non-working filter code?  Otherwise how
do we know what's giong wrong?

Maybe you're filtering the wrong way?  

I use something like this and it's pretty good:

   require ["fileinto", "envelope"];
   require "imap4flags";
   require "regex";

   if header :contains "Sender" "linux-kernel-ow...@vger.kernel.org" {
 fileinto "lkml";
   }
   elsif header :contains "X-Mailing-List" "linux-ker...@vger.kernel.org"
   {
 fileinto "lkml";
   }
   else {
 # The rest goes into INBOX
 # default is "implicit keep", we do it explicitly here
 keep;
   }


There's an implicit exit in each block as I recall and as my notes in
there show... I've got a whole bunch of other matches.  

Now where *my* rules fail at times is handling duplicates which were
went to a mailing list AND sent to me directly.  I need to fix it, but
haven't bothered to spend the time yet.




mail filters

2022-12-12 Thread mick.crane

I'm using what ever is in Debian Bookworm, I'm pretty sure.
These filters?
I collect from different email addresses like gmail and that.
If filter for the "Sent to" email address, move to this directory
If "From" contains "blah", move to this other directory.
If something is Sent to and also From contains "blah" then I get 2 
copies of the message in both filter directories.

How can I fix this?
regards

mick