Re: [vchkpw] qmailtap for mail archive
On Mon, Feb 23, 2009 at 5:58 PM, Jukka Kurkela jukka.kurk...@tjc.fi wrote: dhaval thakar wrote: snip /var/qmail/control/taps contains us...@test.com:us...@arch.test.com mailto:s...@arch.test.com us...@test.com:us...@arch.test.com mailto:s...@arch.test.com us...@test.com:us...@arch.test.com mailto:s...@arch.test.com in above config mails for remote domains gets copied to relevant archive id. But if us...@test.com mailto:us...@test.com have sent mail to us...@test.com mailto:us...@test.com, copy of sent mail is there on us...@arch.test.com mailto:us...@arch.test.com but there is no received copy on te...@arch.test.com mailto:te...@arch.test.com this is a feature of the tap patch. it first checks from address against taps and then if that didn't match it checks to address. you could try replacing the ( tapped == 0 tapcheck()==1 ) checks with ( tapcheck()==1 ) in qmail-queue.c and see if it works then. thanks I have done necessary changes its working fine. thank you very much. !DSPAM:49a29ee132681928970407!
[vchkpw] vpopmail+mysql
Dear All, i am trying to compile vpopmail (5.4.24) with mysql I used ./configure --enable-logging=p --enable-auth-module=mysql --disable-passwd --enable-clear-passwd --disable-many-domains --enable-auth-logging --enable-sql-logging --enable-valias --disable-mysql-limits --enable-incdir=/usr/lib/mysql --enable-onchange-script --enable-libdir=/var/lib/mysql --enable-libdir=/usr/lib/mysql vpopmail 5.4.24 Current settings --- vpopmail directory = /home/vpopmail domains directory = /home/vpopmail/domains uid = 508 gid = 503 roaming users = OFF --disable-roaming-users (default) password learning = OFF --disable-learn-passwords (default) md5 passwords = ON --enable-md5-passwords (default) file locking = ON --enable-file-locking (default) vdelivermail fsync = OFF --disable-file-sync (default) make seekable = ON --enable-make-seekable (default) clear passwd = ON --enable-clear-passwd (default) user dir hashing = ON --enable-users-big-dir (default) address extensions = OFF --disable-qmail-ext (default) ip alias = OFF --disable-ip-alias-domains (default) onchange script = ON --enable-onchange-script auth module = mysql --enable-auth-module=mysql mysql replication = OFF --disable-mysql-replication (default) sql logging = ON --enable-sql-logging mysql limits = OFF --disable-mysql-limits (default) SQL valias table = ON --enable-valias auth inc = -I/usr/lib/mysql auth lib = -L/usr/lib/mysql -lmysqlclient -lz -lm system passwords = OFF --disable-passwd (default) pop syslog = show failed attempts with clear text password --enable-logging=p auth logging = ON --enable-auth-logging (default) one domain per SQL table = --disable-many-domains spamassassin = OFF --disable-spamassassin (default) maildrop = OFF --disable-maildrop (default) during make, i am getting following error vauth.c:33:19: error: mysql.h: No such file or directory vauth.c:40: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mysql_update’ vauth.c:41: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mysql_read_getall’ vauth.c:59: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token vauth.c:60: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token vauth.c:68: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘row’ vauth.c:69: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘row_getall’ vauth.c: In function ‘vauth_open_update’: vauth.c:206: warning: implicit declaration of function ‘mysql_ping’ vauth.c:206: error: ‘mysql_update’ undeclared (first use in this function) vauth.c:206: error: (Each undeclared identifier is reported only once vauth.c:206: error: for each function it appears in.) vauth.c:212: warning: implicit declaration of function ‘mysql_init’ vauth.c:213: warning: implicit declaration of function ‘mysql_options’ vauth.c:213: error: ‘MYSQL_OPT_CONNECT_TIMEOUT’ undeclared (first use in this function) vauth.c:216: warning: implicit declaration of function ‘mysql_real_connect’ vauth.c:226: warning: implicit declaration of function ‘mysql_select_db’ vauth.c:230: warning: implicit declaration of function ‘mysql_query’ vauth.c:236: warning: implicit declaration of function ‘mysql_error’ vauth.c:236: warning: format ‘%s’ expects type ‘char *’, but argument 4 has type ‘int’ vauth.c: In function ‘vauth_open_read_getall’: vauth.c:316: error: ‘mysql_read_getall’ undeclared (first use in this function) vauth.c: In function ‘vauth_create_table’: vauth.c:343: error: ‘mysql_update’ undeclared (first use in this function) vauth.c:346: warning: format ‘%s’ expects type ‘char *’, but argument 4 has type ‘int’ vauth.c: In function ‘vauth_adduser’: vauth.c:428: error: ‘mysql_update’ undeclared (first use in this function) vauth.c:429: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’ vauth.c: In function ‘vauth_getpw’: vauth.c:480: error: ‘mysql_update’ undeclared (first use in this function) vauth.c:481: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’ vauth.c:504: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’ vauth.c:509: error: ‘res_update’ undeclared (first use in this function) vauth.c:509: warning: implicit declaration of function ‘mysql_store_result’ vauth.c:514: warning: implicit declaration of function ‘mysql_num_rows’ vauth.c:515: warning: implicit declaration of function ‘mysql_free_result’ vauth.c:533: error: ‘row’ undeclared (first use in this function) vauth.c:533: warning: implicit declaration of function ‘mysql_fetch_row’ vauth.c: In function ‘vauth_deldomain’: vauth.c:582: error: ‘mysql_update’ undeclared (first use in this function) vauth.c: In function ‘vauth_deluser’: vauth.c:636: error: ‘mysql_update’ undeclared (first use in this function) vauth.c: In function ‘vauth_setquota’: vauth.c:687: error: ‘mysql_update’ undeclared (first use in this function) vauth.c:688: warning: format ‘%s’ expects type ‘char
Re: [vchkpw] vpopmail+mysql
dear list, thanks for the guidance, my problem is solved once after installation of devel package. during next upgradation i'll switch to centos. thanks regards dhaval D. Hilbig wrote: Dhaval, For now, you shouldn't specify the --enable-auth-logging option because it's got bugs up through v5.4.26. Like Quey said, you'll need the mysql-devel package. And as for Fedora on a production server, you might want to consider an alternative. I use CentOS (http://www.centos.org) which is effectively a RHEL production release. -Original Message- From: Quey [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 22, 2008 12:44 AM To: vchkpw@inter7.com Subject: Re: [vchkpw] vpopmail+mysql Why you want to use fedora on a production server I'll never know, but as usual with everything butchered to buggery by RH, you dont have the headers files, so you need to install the -devel packages of mysql (and anything you want to build against), if your not commited try a decent server OS like Slackware or one of the BSD's On 22/04/08 16:22:08, Dhaval Thakar wrote: Dear All, i am trying to compile vpopmail (5.4.24) with mysql I used ./configure --enable-logging=p --enable-auth-module=mysql -- disable-passwd --enable-clear-passwd --disable-many-domains -- enable-auth-logging --enable-sql-logging --enable-valias --disable- mysql-limits --enable-incdir=/usr/lib/mysql --enable-onchange- script --enable-libdir=/var/lib/mysql --enable-libdir=/usr/lib/ mysql vpopmail 5.4.24 Current settings --- vpopmail directory = /home/vpopmail domains directory = /home/vpopmail/domains uid = 508 gid = 503 roaming users = OFF --disable-roaming-users (default) password learning = OFF --disable-learn-passwords (default) md5 passwords = ON --enable-md5-passwords (default) file locking = ON --enable-file-locking (default) vdelivermail fsync = OFF --disable-file-sync (default) make seekable = ON --enable-make-seekable (default) clear passwd = ON --enable-clear-passwd (default) user dir hashing = ON --enable-users-big-dir (default) address extensions = OFF --disable-qmail-ext (default) ip alias = OFF --disable-ip-alias-domains (default) onchange script = ON --enable-onchange-script auth module = mysql --enable-auth-module=mysql mysql replication = OFF --disable-mysql-replication (default) sql logging = ON --enable-sql-logging mysql limits = OFF --disable-mysql-limits (default) SQL valias table = ON --enable-valias auth inc = -I/usr/lib/mysql auth lib = -L/usr/lib/mysql -lmysqlclient -lz -lm system passwords = OFF --disable-passwd (default) pop syslog = show failed attempts with clear text password -- enable-logging=p auth logging = ON --enable-auth-logging (default) one domain per SQL table = --disable-many-domains spamassassin = OFF --disable-spamassassin (default) maildrop = OFF --disable-maildrop (default) during make, i am getting following error vauth.c:33:19: error: mysql.h: No such file or directory vauth.c:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'mysql_update' vauth.c:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'mysql_read_getall' vauth.c:59: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token vauth.c:60: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token vauth.c:68: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'row' vauth.c:69: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'row_getall' vauth.c: In function 'vauth_open_update': vauth.c:206: warning: implicit declaration of function 'mysql_ping' vauth.c:206: error: 'mysql_update' undeclared (first use in this function) vauth.c:206: error: (Each undeclared identifier is reported only once vauth.c:206: error: for each function it appears in.) vauth.c:212: warning: implicit declaration of function 'mysql_init' vauth.c:213: warning: implicit declaration of function 'mysql_options' vauth.c:213: error: 'MYSQL_OPT_CONNECT_TIMEOUT' undeclared (first use in this function) vauth.c:216: warning: implicit declaration of function 'mysql_real_connect' vauth.c:226: warning: implicit declaration of function 'mysql_select_db' vauth.c:230: warning: implicit declaration of function 'mysql_query' vauth.c:236: warning: implicit declaration of function 'mysql_error' vauth.c:236: warning: format '%s' expects type 'char *', but argument 4 has type 'int' vauth.c: In function 'vauth_open_read_getall': vauth.c:316: error: 'mysql_read_getall' undeclared (first use in this function) vauth.c: In function 'vauth_create_table': vauth.c:343: error: 'mysql_update' undeclared (first use in this function) vauth.c:346: warning: format '%s' expects type 'char *', but argument 4 has type 'int' vauth.c: In function 'vauth_adduser': vauth.c:428: error: 'mysql_update' undeclared (first use in this function) vauth.c:429: warning: format '%s' expects type 'char *', but argument 3 has
Re: [vchkpw] dovecot + vpopmail
Rick Macdougall wrote: Dhaval Thakar wrote: can anyone please guide me with vpasswd.cdb not getting modified while using dovecot, whereas its working proper with courier-authlib. i have recompiled vpopmail also. Why would vpasswd.cdb get modified by a pop or imap process ? Regards, Rick whenever user logonto mail server, last auth gets updated if i am using courier-authlib. for me it us required to find user login information to disable if he/she not logged in for 60 days. this info is not getting updated when i am using dovecot. !DSPAM:47cb8c81120501788339861!
Re: [vchkpw] dovecot + vpopmail
Shane Chrisp wrote: On Sat, 2008-03-01 at 11:30 +0530, Dhaval Thakar wrote: dear list, dovecot performs better for mailbox sized in GBs, i am trying to use dovecot with vpopmail. I am using vpasswd.cdb. vpopmail version 5.4.24. Installed dovecot 1.0.10. it performed better then courier. the only problem i am facing with dovecot is its not updating vpasswd.cdb. last auth is not updated. there is no quota indication on squirrelmail. This sounds like you dont have the quota modules loaded. I use squirrelmail and it displays the quota fine. I have the following in my dovecot.conf protocol imap { mail_plugins = imap_quota quota trash and plugin { quota = maildir thanks this has solved my quota display problem. can anyone please guide me with vpasswd.cdb not getting modified while using dovecot, whereas its working proper with courier-authlib. i have recompiled vpopmail also. I remember I also changed some options in squirrelmail but I dont remember what I changed and what it was for other than one the setting being changed from courier-imap. Shane kindly suggest if anyone is aware of solution for the above problem. thanks regards dhaval !DSPAM:47c92215120509853536757!
[vchkpw] dovecot + vpopmail
dear list, dovecot performs better for mailbox sized in GBs, i am trying to use dovecot with vpopmail. I am using vpasswd.cdb. vpopmail version 5.4.24. Installed dovecot 1.0.10. it performed better then courier. the only problem i am facing with dovecot is its not updating vpasswd.cdb. last auth is not updated. there is no quota indication on squirrelmail. kindly suggest if anyone is aware of solution for the above problem. thanks regards dhaval !DSPAM:47c8f125120501494432258!
Re: [vchkpw] Quota Excess Notification
Kenny Lee wrote: Hi Dhaval, i have created a file called ".quotawarn.msg" inside the folder "/home/vpopmail/domains/" ... and i also set the permission to vpopmail.vchkpw -rw-r--r-- 1 vpopmail vchkpw 467 Oct 26 13:08 .quotawarn.msg ==Content of the file== From: Mail Delivery System [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: User:; Subject: Mail quota warning Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit Dear Mail User, Your mailbox on the server is now more than 90% full. So that if you still want your mailbox able to receive mail, you need to remove some messages from your mailbox (Delete Purge messages ). Thank you Regards, System Administrator == End of Content== after i have setup all of the things, i tried to push in the mail to hit 90% quota, i still unable to get the msg ... i have read the README.quotas and found that we need to modify the vdelivermail.c and re-compile. Do i need to modify the file? i have checked the file and below is one of the part related to QUOTA_WARN_PERCENT ===part of the file "vdeivermail.c"== if (QUOTA_WARN_PERCENT = 0 vmaildir_readquota(address, format_maildirquota(quota)) = QUOTA_WARN_PERCENT) { deliver_quota_warning(address, format_maildirquota(quota)); = do i need to change the "if (QUOTA_WARN_PERCENT = 0 " to "if (QUOTA_WARN_PERCENT = 90 ", then re-compile the vpopmail? this should work, this is all i have done in my server. the only diff is From: Mail Delivery System lt;[EMAIL PROTECTED] in my file, which should not make any impact check readme, it says To change the percentage to something other than 90, edit QUOTA_WARN_PERCENT in vdelivermail.c and recompile.
Re: [vchkpw] Quota Excess Notification
Kenny Lee wrote: Hi all, i am using qmail + courier imap + vpopmail + qmailadmin for my email server for my email users, they are using Outlook Express to check the mails from my email server (with IMAP) and i have set a email quota for each user. ok, the question is ... how user can be notified, once they are going to hit the max. of quota? can system automatic send an email to user? Please advise ... Thank you Regards, Kenny following is what i use at my end. save following as /home/vpopmail/domains/..quotawarn.msg with permission vpopmail:vchkpw From: Mail Delivery System lt;[EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Diskhog User:; Subject: Mail quota warning Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit Dear Mail User, Your mailbox on the server is now more than 90% full. So that you can continue to receive mail you need to remove some messages from your mailbox (Delete messages from inbox, sent etc..). To delete Mails Kindly logon to http:// Regards,
Re: [vchkpw] Quota Excess Notification
Kenny Lee wrote: Hi Dhaval, i just need to create the msg file? how about the configuration for vpopmail, which to call this msg to send? dear just you need to copy this file set proper permissions, now try filling up storage of test email account, it should work. for reference, vpopmail source/README.quotas