Re: [courier-users] monitoring prgram times out
On 03/26/2017 09:44 AM, SZÉPE Viktor wrote: Running bind is too expensive for me. I'll note that Red Hat's bind package installs with an ideal configuration for a localhost-only caching DNS server. There's virtually no administrative cost, there. I usually use the caching DNS resolver in the given datacenter plus µnscd https://busybox.net/~vda/unscd/ which does local caching for Name Service - which Courier apparently is not using. Nope. nscd (and unscd) are not DNS servers, they're caches for the libc nss functions (gethostbyaddr, etc) that aren't used in Courier. -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot___ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
Re: [courier-users] Can courier sort mail for one user into multiple subfolders for imap
li...@datenritter.de writes: Below is how I did it. Unfortunately the script stopped working a few months ago writing hundreds of mails to (mbox?-)files with useful names like ".@". My debug version with some extra logging needs more input, so I'll send it to this list... ["Yo dawg, I heard you like mail filters..."] Anyway, it's meant to make everything maintenance free. When the first mail from a list you subscribed to is received, a maildir ".listname@some_domain_tld" is created and added to courierimapsubscribed. # Check X-BeenThere which every good list server sets. # List-ID is okay, too. if ( /^X-BeenThere:\s+(.*)@(.*)/ ) { # Pick local part and domain part, replace the dots with # underscores. ### BUG: This leaves LPART and DPART empty. :( ### LPART=`echo $MATCH1 | sed "s/\./_/g"` If someone were to send an email with a carefully crafted header that reads: "X-BeenThere: ; rm -rf $HOME" you'll have a lot of cleanup to do. Maybe additional quotation marks are required around "$MATCH[1|2]"? Maybe scrap the whole thing. Use backticks to feed the email to a Perl script that safely parses headers. At the very least use an additional =~ operator to verify that matched pattern is sane: LOCALPART=$MATCH1 if ($LOCALPART =~ /^[A-Za-z0-9\.\-]+$/) Then you can proceed and safely substitute $LOCALPART into an executed command. pgpx7gjaJ2FBC.pgp Description: PGP signature -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot___ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
Re: [courier-users] Can courier sort mail for one user into multiple subfolders for imap
Am 02.09.2016 um 11:01 schrieb Alessandro Vesely: >> If you would like to sort mails from this mailing list into defined >> folder, then use List-Id header as selection criterium: >> >> if (/^List-Id:.*courier-users.lists.sourceforge.net/) >> to "$HOME/Maildir/$FOLDER/" >> >> (use desired folder name instead on $FOLDER, I use - for this list - >> .Software.Courier.courier-users). > > An obvious generalization, to avoid editing $HOME/.mailfilter on every new > subscription: > > if (/^List-ID:[^<]*<([-_A-Za-z0-9]*)/) > { > DEST=`sed -nr 's/^INBOX(\\.'"$MATCH1"')$/\\1/ip' > ./Maildir/courierimapsubscribed` > if ("$DEST") > { > `test -d "./Maildir/$DEST"` > if ($RETURNCODE == 0) > to "./Maildir/$DEST"; > } > } > Below is how I did it. Unfortunately the script stopped working a few months ago writing hundreds of mails to (mbox?-)files with useful names like ".@". My debug version with some extra logging needs more input, so I'll send it to this list... ["Yo dawg, I heard you like mail filters..."] Anyway, it's meant to make everything maintenance free. When the first mail from a list you subscribed to is received, a maildir ".listname@some_domain_tld" is created and added to courierimapsubscribed. # Check X-BeenThere which every good list server sets. # List-ID is okay, too. if ( /^X-BeenThere:\s+(.*)@(.*)/ ) { # Pick local part and domain part, replace the dots with # underscores. ### BUG: This leaves LPART and DPART empty. :( ### LPART=`echo $MATCH1 | sed "s/\./_/g"` DPART=`echo $MATCH2 | sed "s/\./_/g"` PREFIX="" FOLDER=".$LPART@$DPART" # I want subfolders for organizations with more than one list: if ( /^X-BeenThere:.*specialorg.*/ ) { PREFIX=".specialorg" FOLDER=".$LPART" } NEWDIR=$HOME/Maildir/$PREFIX$FOLDER # create the maildir if it doesn't exist: `test -d "$NEWDIR"` if( $RETURNCODE == 1 ) { `maildirmake $NEWDIR` `echo "INBOX$PREFIX$FOLDER" \ >> $HOME/Maildir/courierimapsubscribed` } to $NEWDIR } Maybe additional quotation marks are required around "$MATCH[1|2]"? d. -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
Re: [courier-users] monitoring prgram times out
Idézem/Quoting Matus UHLAR - fantomas: >>> On 26.03.17 18:44, SZÉPE Viktor wrote: Running bind is too expensive for me. > >> Idézem/Quoting Matus UHLAR - fantomas : >>> are you trying to say that it's more expensive than running courier mail >>> server? > > On 29.03.17 13:30, SZÉPE Viktor wrote: >> I'd like to use the DNS resolver from the given datacenter. >> Optimizing and maintaining (thus learning) another linux daemon is >> what really is expensive. > > 1. as I stated, the server should be able to resolve localhost > > 2. if you do any kind of spam detection (blacklist), using others' name > server could result to worse spam detection. Thank you. Most of my Courier installs are satellite servers sending message through one transactional provider like Amazon SES, Mailjet, Mandrill or Sendgrid as I am not able to maintain more than 1 full featured mail server. My mail server with mailboxes has a dedicated resolver server with "unbound". SZÉPE Viktor https://github.com/szepeviktor/debian-server-tools/blob/master/CV.md -- +36-20-4242498 s...@szepe.net skype: szepe.viktor Budapest, III. kerület -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
Re: [courier-users] monitoring prgram times out
>> On 26.03.17 18:44, SZÉPE Viktor wrote: >>> Running bind is too expensive for me. >Idézem/Quoting Matus UHLAR - fantomas: >> are you trying to say that it's more expensive than running courier mail >> server? On 29.03.17 13:30, SZÉPE Viktor wrote: >I'd like to use the DNS resolver from the given datacenter. >Optimizing and maintaining (thus learning) another linux daemon is >what really is expensive. 1. as I stated, the server should be able to resolve localhost 2. if you do any kind of spam detection (blacklist), using others' name server could result to worse spam detection. -- Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/ Warning: I wish NOT to receive e-mail advertising to this address. Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. -- Benjamin Franklin, 1759 -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
Re: [courier-users] monitoring prgram times out
Idézem/Quoting Matus UHLAR - fantomas: > On 26.03.17 18:44, SZÉPE Viktor wrote: >> Running bind is too expensive for me. > > are you trying to say that it's more expensive than running courier mail > server? Hello Matus! I'd like to use the DNS resolver from the given datacenter. Optimizing and maintaining (thus learning) another linux daemon is what really is expensive. SZÉPE Viktor https://github.com/szepeviktor/debian-server-tools/blob/master/CV.md -- +36-20-4242498 s...@szepe.net skype: szepe.viktor Budapest, III. kerület -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
Re: [courier-users] Build 20170309 of Courier packages
Alessandro Vesely writes: On Fri 17/Mar/2017 01:25:36 +0100 Sam Varshavchik wrote: > Gordon Messmer writes: > >> On 03/15/2017 06:17 PM, Sam Varshavchik wrote: >> > Ok, this actually turned out to be a small typo. Fixed in the >> > just-uploaded 20170315, and it builds for me. >> >> >> courier-unicode does build. However, I'm unable to build the new >> courier package with it installed (also under mock). >> >> https://paste.fedoraproject.org/paste/X1s-KLD0Eaiz9otZerh- wl5M1UNdIGYhyRLivL9gydE= >> > > This should now be fixed in 20170316. All packages rebuilt, including > courier-authlib which was also affected. Compiling still fails for the missing C++ flags, as noted in http://www.mail-archive.com/courier-users@lists.sourceforge.net/msg38753.html That patch can work on the configure script directly (removing .ac from the filename), then it compiles fine... Out of curiosity, am I the only one stumbling on that? Only the courier-authlib package? I don't see anything in courier-authlib that needs C++. I think it's only the configure script in courier-authlib that's broken. Try build 20170329. pgpiW3wST6hi4.pgp Description: PGP signature -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot___ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
Re: [courier-users] Build 20170309 of Courier packages
On Fri 17/Mar/2017 01:25:36 +0100 Sam Varshavchik wrote: > Gordon Messmer writes: > >> On 03/15/2017 06:17 PM, Sam Varshavchik wrote: >> > Ok, this actually turned out to be a small typo. Fixed in the >> > just-uploaded 20170315, and it builds for me. >> >> >> courier-unicode does build. However, I'm unable to build the new >> courier package with it installed (also under mock). >> >> https://paste.fedoraproject.org/paste/X1s-KLD0Eaiz9otZerh-wl5M1UNdIGYhyRLivL9gydE= >> > > This should now be fixed in 20170316. All packages rebuilt, including > courier-authlib which was also affected. Compiling still fails for the missing C++ flags, as noted in http://www.mail-archive.com/courier-users@lists.sourceforge.net/msg38753.html That patch can work on the configure script directly (removing .ac from the filename), then it compiles fine... Out of curiosity, am I the only one stumbling on that? Ale -- signature.asc Description: OpenPGP digital signature -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot___ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
Re: [courier-users] monitoring prgram times out
On 26.03.17 18:44, SZÉPE Viktor wrote: >Running bind is too expensive for me. are you trying to say that it's more expensive than running courier mail server? -- Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/ Warning: I wish NOT to receive e-mail advertising to this address. Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. How does cat play with mouse? cat /dev/mouse -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
Re: [courier-users] monitoring prgram times out
>SZÉPE Viktor writes: >>2) Is it possible for Courier to skip DNS lookups for "localhost"? >> >>I wonder why Courier is not using gethostbyname(). >>/etc/hosts contains: >>127.0.0.1 localhost.localdomain localhost all recursive DNS servers should have localhost defined. Also, mailservers should use own recursive DNS servers, topologically close, so resolving localhost should not be a problem. On 26.03.17 10:32, Sam Varshavchik wrote: >gethostbyname/gethostbyaddr can only look up A addresses. Courier >needs MX records, and so needs to use its own resolver; and with its >own DNS resolver code already in place, it makes no sense to use >different resolvers. Note that different MTAs do the same. AFAIK neither sendmail nor postfix support gethostbyname() or anything other to look up /etc/hosts. -- Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/ Warning: I wish NOT to receive e-mail advertising to this address. Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. There's a long-standing bug relating to the x86 architecture that allows you to install Windows. -- Matthew D. Fuller -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users