[courier-users] filenames in maildir
When maildrop stores a message in Maildir++ it uses a filename according to the standard. Is it possible to reach the values that the filename is built up by inside of maildrop? If possible, I would like to include this in the logfiles maildrop makes. Arvinn --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
[courier-users] maildrop and calculating the current size of the Maildir
I use maildrop to insert a bunch of variables in a sql table. This way I can easily create nice stats of stored messages. If possible, I would like to include the size of the Maildir of the user. When in the process of storing a message is maildrop calcualting the size? Is it possible to somehow export this value to a variable? Arvinn --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
[courier-users] reseting variables in maildrop
Can MATCH varibles be set only once in maildrop? I try to pull out values from headers using $MATCH2, $MATCH3.. and so on.. The problem is that it seems like $MATCH2 won't be set again when doing a think like this: if ( /^From: *!.*/ ) { MAILFROM=getaddr($MATCH2) } /^Received: from .* \(!.*! \[![0-9]\.[0-9]\.[0-9]\.[0-9]!\]\)\n\tby frontendhost.example.com /:w CLIENTHOST=$MATCH2 CLIENTIP=$MATCH4 My problem here is that $CLIENTHOST is set to the same as $MAILFROM, or is there something else that is wrong? I use maildrop 1.8. Arvinn --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
Re: [courier-users] reseting variables in maildrop
Bowie Bailey wrote: From: Bowie Bailey /^Received: from .*\(!.*!\[![0-9]+\.[0-9]+\.[0-9]+\.[0-9]+!\]\)[\n\t ]+by frontendhost.example.com /:w Ack! Don't miss the space after the \t in the character class that got split up. It should be: [\n\t ]+ Bowie I allready used an if around it. I just didn't paste it in. But I guess you are right that regexp doesn't match. However.. it still doesn't with your corrections. I been tweaking it for hours so I guess I just should give up:) Thanks for the help anyway! Arvinn --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
Re: [courier-users] reseting variables in maildrop
Bowie Bailey wrote: From: Arvinn Løkkebakken [mailto:[EMAIL PROTECTED] Bowie Bailey wrote: From: Bowie Bailey /^Received: from .*\(!.*!\[![0-9]+\.[0-9]+\.[0-9]+\.[0-9]+!\]\)[\n\t ]+by frontendhost.example.com /:w I allready used an if around it. I just didn't paste it in. But I guess you are right that regexp doesn't match. However.. it still doesn't with your corrections. I been tweaking it for hours so I guess I just should give up:) Thanks for the help anyway! Post an example header that you expect it to match and I'll see if I can figure out what's wrong. Bowie Received: from camomile.cloud9.net (camomile.cloud9.net [168.100.1.3]) by evercom.sandakeronline.com (Postfix) with ESMTP id D211B27 Hopefully this line won't breek on the way. The values I want to pull out there is the hostname camomile.cloud9.net (not the helo string) and the ip. Thank you. Arvinn --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
Re: [courier-users] reseting variables in maildrop
Bowie Bailey wrote: From: Arvinn Løkkebakken [mailto:[EMAIL PROTECTED] Bowie Bailey wrote: From: Arvinn Løkkebakken [mailto:[EMAIL PROTECTED] Bowie Bailey wrote: From: Bowie Bailey /^Received: from .*\(!.*!\[![0-9]+\.[0-9]+\.[0-9]+\.[0-9]+!\]\)[\n\t ]+by frontendhost.example.com /:w I allready used an if around it. I just didn't paste it in. But I guess you are right that regexp doesn't match. However.. it still doesn't with your corrections. I been tweaking it for hours so I guess I just should give up:) Thanks for the help anyway! Post an example header that you expect it to match and I'll see if I can figure out what's wrong. Received: from camomile.cloud9.net (camomile.cloud9.net [168.100.1.3]) by evercom.sandakeronline.com (Postfix) with ESMTP id D211B27 Hopefully this line won't break on the way. The values I want to pull out there is the hostname camomile.cloud9.net (not the helo string) and the ip. I did a bit of testing, and this pattern works for me: /^Received: from.*\(!.*!\[![0-9]+\.[0-9]+\.[0-9]+\.[0-9]+!\]\) [\n\t ]+by evercom\.sandakeronline\.com/ (I manually split it this time to avoid any confusion) The :w may have been what was messing you up. This caused the pattern to be matched against the body rather than the header (:wh may have been what you were looking for). Also, the :w causes the ^ and $ characters to be interpreted differently so that they match the beginning of the section rather than each line. You should be able to use the pattern without any modifiers. This will give you a line-by-line match on the headers. Multiline headers will automatically be concatenated so that they can be searched as a single line. Bowie Great. Thank you very much. Arvinn --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
Re: [courier-users] IMAP / POP3
Patric Wilms wrote: Hi, i use the courier with mysql and maildir format. pop3 and imap works verynice but i have a little problem. A user can get his emails from his account test@test.com via pop3 and imap. I want a restriction! In the Database should be a row for example protocol , in it there is the information how the user can get his emails, via pop3 o r imap but not both types of protocols. Courier has to query these information. If he isnt allowed to access his emails via imap he should get a message or get disconnected or something like. Is there a solution for doing something like that? Kind regards, Patric From autmysqlrc.dist: ##NAME: MYSQL_AUXOPTIONS:0 # # Auxiliary options. The MYSQL_AUXOPTIONS field should be a char field that # contains a single string consisting of comma-separated ATTRIBUTE=NAME # pairs. These names are additional attributes that define various per-account # options, as given in INSTALL's description of the Account OPTIONS # setting. # # MYSQL_AUXOPTIONS_FIELDauxoptions # # You might want to try something like this, if you'd like to use a bunch # of individual fields, instead of a single text blob: # # MYSQL_AUXOPTIONS_FIELDCONCAT(disableimap=,disableimap,,disablepop3= ,disablepop3,,disablewebmail=,disablewebmail,,sharedgroup=,sharedgroup) # # This will let you define fields called disableimap, etc, with the end result # being something that the OPTIONS parser understands. Arvinn --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
[courier-users] autocreating directories
Is it possible to have maildrop auto-create a virtual user's (user i SQL) home and Maildir directories when running in delivery mode (maildrop -d), and then install the quota with the quota value found in the SQL field? I tried to script this in maildroprc, but it looks like it won't run at all as long as the home directory doesn't exist. Arvinn --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
Re: [courier-users] autocreating directories
Ricky Chan wrote: Arvinn Løkkebakken wrote: I tried to script this in maildroprc, but it looks like it won't run at all as long as the home directory doesn't exist. Not that I know off. However, if you are comfortable with writing some code, you can look at authdaemon.c, find chdir(ainfo-homedir), it fails here cause homedir doesn't exist.. You can write some code to auto-create the directory structure for you in thise case. Ah, great. I'll give it a go. Thanks. This is the way I did it as we get a hundred's of users added all the time but a large percentage never use the system, so it wastes inodes/diskspace by pre-creating. (It does matter when you have a couple of hundreds of inodes used on our your storage which are not used!). Sure, but at some point you need to create the directory anyway. When is it time? :) Arvinn --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
Re: [courier-users] autocreating directories
Ricky Chan wrote: Here is mine. To enable add ENABLE_CREATEDIR=1 in your authlib start up config, pretty self explainatory. (okay I know if not enabled it will try chdir twice and can be tidied up to avoid this). if (chdir(ainfo-homedir)) { /* try at least once the create dir if createdir defined */ if(getenv(ENABLE_CREATEDIR)) { auth_mkdir(ainfo-homedir); } if(chdir(ainfo-homedir)) { fprintf(stderr, WARN: %s: chdir(%s) failed!!\n, ainfo-address, ainfo-homedir); perror(WARN: error); return (1); } } Thanks a lot. --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
[courier-users] quota and MYSQL_QUOTA_FIELD confusion
Hi. I'm a little confused when it comes to the use of quota. The doc says that the quota must me installed to the maildir by using maildirmake -q S ./Maildir. 1. What's the ending S? I couldn't find anything about it in the man-pages. 2. In my authmysqlrc I refer to a field MYSQL_QUOTA_FIELD. What is it used for? Will the value in this field override the one set with maildirmake -q ? By reading the comments in autmysqlrc it looks like this is the value for the quota. This seem redundant with setting the value with maildirmake -q, but I never got quota working (i.e. the imap client doesn't report any) without running maildirmake -q. 3. Must the value in MYSQL_QUOTA_FIELD end with the S too? 4. In the maildirmake(1) man-page I find: -q quota install a quota on the maildir. See Maildir Quotas, below. .. but the string Maildir Quotas isn't mentioend anywhere else in the man-page. 5. Once the maildir is up and running with quota. Is it possible to change it by chaning the value in MYSQL_QUOTA_FIELD only? Or do I have to rerun maildirmake -q, or do I have to do both? My setup is postfix + maildrop 1.8 + courier-imap 4 + courier-authlib 0-55 on FreeBSD. No other programs are storing messages to the maildirs but maildrop. No other programs but courier-imap is used moving messages betwwen imap-folders. I would really appreciate any kind of guidance. An URL would be very nice. Arvinn --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users