Re: [vchkpw] how to define 2 or more archive addresses?
Hi Bulend, You should handle this issue by defining an alias for t...@domain.com with many members. Then, you can forward mail to many addresses. Best Regards. Monday, May 10, 2010, 6:43:54 PM, you wrote: I use taps patch on qmail. cat taps; a...@domain.com:t...@domain.com When I send an email from a...@domain.com to x...@internet.com, the mail also comes to t...@domain.com Namely it works. But I wish to define two or more archive addresses. How can I do that ? -- Ismail YENIGUL Endersys Ltd. Proje Yöneticisi / Project Manager Phone :+90 216-4709423 | Mobile:+90 533 747 36 65 Fax :+90 216-4709508 | web: http://www.endersys.com.tr Blog: http://blog.endersys.com Twitter: http://www.twitter.com/endersys LPI (Linux Professional Institute) Turkey http://www.lpi-turkey.com SurGATE Labs: http://www.surgate.com !DSPAM:4be82b2632713564011693!
[vchkpw] Two patch about qmail-remote logging and smtp auth user verification
Hello, As Endersys, we released two patches for qmail. 1) qmail canonicalised recipient logging and more patch: http://blog.endersys.com/2009/12/qmail-canonicalised-recipient-logging-and-more-patch/ 2) qmail from address and SMTP-AUTH username check patch http://blog.endersys.com/2009/12/qmail-from-address-and-smtp-auth-username-check-patch Best Regards. -- Ismail YENIGUL Endersys Ltd. Proje Yöneticisi / Project Manager Phone :+90 216-4709423 | Mobile:+90 533 747 36 65 Fax :+90 216-4709508 | web: http://www.endersys.com.tr Blog: http://blog.endersys.com Twitter: http://www.twitter.com/endersys LPI: The #1 Linux Certification for IT Professionals LPI (Linux Professional Institute) Turkey http://www.lpi-turkey.com !DSPAM:4b28f46232713096414691!
Re[2]: [vchkpw] offtopic sorry!
Hi Ronald, You can bypass RBL checking for authenticated users with spamdyke. (http://www.spamdyke.org) A quote from web page: Full SMTP AUTH support, so your users can bypass all filters, even from remote locations. spamdyke can provide SMTP AUTH even if qmail is completely unpatched. Thanks. Thursday, September 24, 2009, 5:27:01 PM, you wrote: You cannot because RBL checking happens before SMTP authentication as far as I know. Sincerely, - Wouter van der Schagt -- From: Ronaldo Chan ron...@revlink.ph Sent: Thursday, September 24, 2009 10:14 PM To: vchkpw@inter7.com Subject: [vchkpw] offtopic sorry! Hi! Good day, has anyone from you guys know how can i bypass rbl checking if the sender was already authenticated with smtp? i use spamcontrol implementation of smtpd-auth, i know this is not really the proper channel for this, but i'm really desperate to solve this issue Best regards, Ronaldo Chan -- Ismail YENIGUL Endersys Ltd. Proje Yöneticisi / Project Manager Phone :+90 216-4709423 | Mobile:+90 533 747 36 65 Fax :+90 216-4709508 | web: http://www.endersys.com.tr Endersys blog aç?ld?. http://blog.endersys.com !DSPAM:4abb848332711600461271!
Re: [vchkpw] Use onchange for add user to ezmlm
Hi Alessio, A sample script may look like the following: #!/bin/sh cmd=$1; if [ $cmd = add_user ] then email=$2; # [EMAIL PROTECTED], see README.onchange /usr/local/bin/ezmlm-sub ~vpopmail/domain/listname $email fi if [ $cmd = del_user ] then email=$2; # [EMAIL PROTECTED], see README.onchange /usr/local/bin/ezmlm-unsub ~vpopmail/domain/listname $email fi Not: Be sure that ~vpopmail/etc/onchange is executable Thanks. Tuesday, April 8, 2008, 8:08:11 PM, you wrote: On my qmail+vpopmail installation i want use the feature of onchange script to automatically add users to an ezmlm list when they are created. Users are added through vpopmaild. I read the documentation for onchange, but I am not very clear how it works. Could someone give me an example on how to create a script for ~vpopmail/etc/onchange ? Many thanks. -- Ismail YENIGUL Yönetici/Manager Servis ve Destek Bölümü/System Services and Support Division Tel: +90 216-470 94 23 Fax: +90 216-470 95 08 http://www.endersys.com.tr !DSPAM:4800fcde120501398410658!
Re[2]: [vchkpw] SMTP Authenticaton
Wouter, If you still want to try smtp auth on the different server. You can install vpopmail on the smtp auth server with the same config on your mail server. And you can define the remote vpopmail db(mysql or pgsql) in your smtp auth server vpopmail.mysql file. So you don't have to define the domains in the smtp auth server. I am already using this configuration at one of our customers without any problem. Thanks. Saturday, April 12, 2008, 8:33:22 AM, you wrote: Hi, Thank you for your suggestions. I have implemented it in the same way you have seems to work now :) Thanks again and have a nice weekend. - Wouter - Original Message - From: Tonix (Antonio Nati) [EMAIL PROTECTED] To: vchkpw@inter7.com Sent: Thursday, April 10, 2008 4:56 PM Subject: Re: [vchkpw] SMTP Authenticaton Tonix (Antonio Nati) ha scritto: I guess you use vpopmail. Sorry for the stupid deduction, I confused this mailing list with the general qmail mailing list :-). Tonino If you use chkuser patch (on for qmail/vpopmail), or Shupp's toaster which includes chkuser, you can force a server to accept only authenticated sessions. So, you can set up a dedicated port (like the submission port) or a dedicated IP only for this purpose. See http://www.interazioni.it/opensource/chkuser/ for more details. Tonino Wouter van der Schagt ha scritto: My apologies, you already mentioned it.. by firewall restriction. Another question.. spammers could still connect if they knew they were supposed to connect to port 587 am i correct? Or did you find a way around this as well? Thanks - Wouter - Original Message - From: Alastair Battrick [EMAIL PROTECTED] To: vchkpw@inter7.com Sent: Thursday, April 10, 2008 4:39 PM Subject: Re: [vchkpw] SMTP Authenticaton Wouter van der Schagt wrote: An option for us to setup a different server that only handles smtp functionality for our client, however the problem then is that a domain needs to exist on two servers. one for the popbox and one for smtp authentication to work. Or is it possible for the vpopmail to connect to the database on the other mailserver for authentication or would that be too slow? Does anybody have any other suggestions perhaps? Hi Wouter I ran into this same problem. I got around it by creating a SMTP submission port that accepts SMTP Auth emails into the server on port 587. Port 25 only accepts messages from our spam appliance by firewall restriction. Each mail client has to be set to use port 587 and SMTP Auth of course. -- Alastair Battrick -- [EMAIL PROTECTED]Interazioni di Antonio Nati http://www.interazioni.it @interazioni.it -- Ismail YENIGUL Yönetici/Manager Servis ve Destek Bölümü/System Services and Support Division Tel: +90 216-470 94 23 Fax: +90 216-470 95 08 http://www.endersys.com.tr !DSPAM:4800fed4120501759827712!
[vchkpw] new onchange cmd patch in vpalias.c : valias_insert_first
Hello, Nowadays, I am working on vpopmail+LDAP environment. As you know, --enable-valias is only works on SQL backends, So when you create an alias over qmailadmin, we can't get this information. I would like to make user lookup on LDAP on my SMTP GW server. Because of the problem described above, aliases are not stored on LDAP and the mails come to alias address are rejected on GW. To solve the problem, I added the following patch to the vpopmail 5.4.25. This patch will call onchange script with valias_insert_first cmd. I know that there is already valias_insert. But it is triggered even if you change to content of the .qmail-xxx alias. What I wanted to do here. Only call valias_insert_first when a new/fresh alias file is created. Then,you can create a script to add/delete LDAP entries for the aliases. I was trying to do same stuff for ezmlm mailing lists + qmailadmin. But John M. Simpson already made it :) http://qmail.jms1.net/vpopmail/qmailadmin-1.2.11-onchange.patch Thanks. # diff -ruN vpalias.c.orig vpalias.c --- vpalias.c.orig 2007-05-22 06:59:01.0 +0300 +++ vpalias.c 2008-01-14 11:25:32.0 +0200 @@ -114,6 +114,7 @@ int valias_insert( char *alias, char *domain, char *alias_line) { int i; + int firstalias = 0; char *tmpstr; char Dir[156]; char *p; @@ -140,6 +141,14 @@ Dir[i++] = (*p == '.' ? ':' : *p); Dir[i] = '\0'; +#ifdef ONCHANGE_SCRIPT +if ( (fs = fopen(Dir, r)) == NULL ) { +if (errno == ENOENT) { /* the file is not exist, so it is a new .qmail-xxx file */ +firstalias = 1; +} + } +#endif + if ( (fs = fopen(Dir, a)) == NULL ) { return(-1); } @@ -154,6 +163,10 @@ /* tell other programs that data has changed */ snprintf ( onchange_buf, MAX_BUFF, [EMAIL PROTECTED] - %s, alias, domain, alias_line ); call_onchange ( valias_insert ); + if(firstalias == 1) + snprintf ( onchange_buf, MAX_BUFF, %s %s, alias, domain); + call_onchange ( valias_insert_first); + } } #endif -- Ismail YENIGUL Yönetici/Manager Servis ve Destek Bölümü/System Services and Support Division Tel: +90 216 344 07 15 Fax: +90 216 344 07 16 http://www.endersys.com.tr !DSPAM:478b2d73310541993387059! vpopmail-5.4.25-onchange-vpalias.patch Description: Binary data
[vchkpw] vchkpw gives Segmentation fault when no argument provided
Hello, vchkpw gives Segmentation fault when it is issued without argument. # ./vchkpw Segmentation fault: 11 (core dumped) I know that vchkpw must be issued with an argument. But I think it is good tho inform the user when he/she runs it without argument. The following simple patch will make happy vhckpw. Thanks. # diff -ruN vchkpw.c.orig --- vchkpw.c.orig Fri Jan 11 19:42:36 2008 +++ vchkpw.cFri Jan 11 19:42:53 2008 @@ -160,6 +160,12 @@ * Note that the popular Courier-IMAP does not use vchkpw, it * links libvpopmail directly into its server. */ +if (argc == 1) { + fprintf(stderr, %s: vchkpw is only for talking with qmail-popup and qmail-pop3d. \ + It is not for runnning on the command line.\n, VchkpwLogName); + vchkpw_exit(11); + } + if (strstr (argv[1], true) != NULL) /* used as STMP AUTH */ ConnType = SMTP_CONN; else if (strstr (argv[1], imap) != NULL) /* used with IMAP */ -- Ismail YENIGUL Yönetici/Manager Servis ve Destek Bölümü/System Services and Support Division Tel: +90 216 344 07 15 Fax: +90 216 344 07 16 http://www.endersys.com.tr !DSPAM:4787b001310542095521980!
[vchkpw] additional ldap changes (mail attribute) to patch 1609348
Hello Again, Previously, a patch was submitted by Vitali Malicky about LDAP changes with the patch id: 1609348 url:https://sourceforge.net/tracker/?func=detailatid=577800aid=1609348group_id=85937 According to the changelog of vpopmail, This patch was added to vpopmail 5.4.20. When I checked vpopmail 5.4.25, I recognized that this patch is not really added. I made some changes on this patch to be compatible with Addressbook stuffs. 1. Vitali was assigning [EMAIL PROTECTED] as cn value, I changed it with GECOS value. (because, addressbooks consider cn as a full name of the person) 2. I added new ldap attribute (mail) to be able to search mail addresses over the addressbook. As a result, with this patch, vpopmail will be compatible with OpenLDAP 2.3.X and have a basic addressbook feature. You can find the patch at https://sourceforge.net/tracker/index.php?func=detailaid=1867246group_id=85937atid=577800 Thanks. Wednesday, January 2, 2008, 11:43:28 AM, you wrote: Hello, According to the ChangeLog, the patch name in the subject was added to vpopmail 5.4.20 5.4.20 - Released 21-Aug-2007 Vitali Malicky (coonardoo), Ismail Yenigul - add ldap patch [1909348] But, when I tried to test vpopmail-5.4.20 and 5.4.26 with ldap support (openldap 2.3.X), I got the qmailUser' requires attribute 'sn' error. I recognized that the patch is not added into vpopmail. /* Background info: This patch introduces sn and cn ldap attributes to be able to use openldap 2.3.X. and sn and cn attributes MUST in qmailUser.schema) */ Normally, If the patch was added to vpopmail, we should have the following lines in the vldap.[ch]. + cn, /* 7 LDAP's cn demanded by objectClass: qmailUser [EMAIL PROTECTED] */ + sn, /* 8 LDAP's cn demanded by objectClass: qmailUser [EMAIL PROTECTED] */ +lm[7]-mod_values[0] = safe_strdup(inpw-pw_cn); /* cn [EMAIL PROTECTED] */ +lm[8]-mod_values[0] = safe_strdup(inpw-pw_sn); /* sn [EMAIL PROTECTED] */ etc. patch url: https://sourceforge.net/tracker/?func=detailatid=577800aid=1609348group_id=85937 -- Ismail YENIGUL Yönetici/Manager Servis ve Destek Bölümü/System Services and Support Division Tel: +90 216 344 07 15 Fax: +90 216 344 07 16 http://www.endersys.com.tr !DSPAM:4783f7b4310541964932056!
Re[2]: [vchkpw] OT: Webmail trends for vpopmail/qmail/IMAP
Hello, you may have a look to the Claros Intouch webmail at http://www.claros.org/ But, It is written in java, so it requires tomcat etc. Thanks. Thursday, January 3, 2008, 11:12:56 PM, you wrote: ISP Lists wrote: Off-topic, perhaps respond off-list? What are the hot applications in F/OSS webmail that start to move towards AJAX clients (yahoo! mail beta, gmail) that might function well on a vpopmail/qmail/IMAP infrastructure? I looked at Sourceforge and didn't see much that would leap past squirrelmail. We use RoundCube in addition to Squirell. http://roundcube.net/ Regards, Rick Thanks Rick, good stuff! Any other ideas are most appreciated. -- Ismail YENIGUL Yönetici/Manager Servis ve Destek Bölümü/System Services and Support Division Tel: +90 216 344 07 15 Fax: +90 216 344 07 16 http://www.endersys.com.tr !DSPAM:477dedc7310545967290621!
Re: [vchkpw] writing a relaying app
Hi Darek, Did you check open_smtp_relay() function in vpopmail.c If you use this function also you can also remove the IP address of the user from the tcp.smtp.cdb after a certain time-period (timeout) by modifying the tcp.smtp files (tcp.smtp, open-smtp, tcp.smtp.cdb etc) in clearopensmtp.c // #ifdef POP_AUTH_OPEN_RELAY /* This function is used to grab the user's ip address * and add it to the ip's that are allowed to relay mail * through this server. * * For mysql backend, the ip is added to the relay table * For cdb backend, the ip is added to the ~vpopmail/etc/open-smtp file * * Then the update_rules() function is called which * combines the tcp.smtp rules with the relay-table/open-smtp rules * to build a new tcp.smtp.cdb file for tcpserver to use * * This function is called after a successful pop-auth by vchkpw, * (assuming that roaming users are enabled) */ int open_smtp_relay() { ... } Thursday, July 19, 2007, 7:49:25 PM, you wrote: Hi there, i'm interested in using the library to write a small app that would add an IP to the relay list (open-smtp or tcp.smtp.cdb). The docs are a bit sparse on this. Idid find: int vauth_addomain( char *domain) domain = domain name to add to authentication system But I cannot find any mention of the function in any of the sources in 5.4.13, nor the library. # strings ~vpopmail/lib/libvpopmail.a | grep vauth_addomain # Doing a grep on the sources, I'm looking at cdb/cdbmake_add.c : int cdbmake_add(cdbm,h,p,alloc) cdb/cdbmake_add.c : int cdbmake_split(cdbm,alloc) Various functions in vauth.c and possibly vcdb.c int vadd_ip_map( char *ip, char *domain) or int vauth_adduser_line(FILE *, char *, char *, char *, char *, char *, int); Anyone have any more insight? I simply want to be able to add an IP to tcp.smtp.cdb for imap-before-smtp for an imap server that doesn't have that functionality for vpopmail but has functionality to execute a program after a successful login. Thanks, Darek -- Ismail YENIGUL Tel: +90 533 747 3665 [EMAIL PROTECTED] http://www.endersys.com http://www.endersys.com.tr
Re: [vchkpw] deleting user from mysql backend
Hi Matt, Check your mysql tables. Possible domain is not deleted from MySQL DB for a reason (db connection problem, corrupted tables etc...) Does this happen only when you delete the domain? what about creating domains and users? Friday, July 13, 2007, 10:39:59 PM, you wrote: Hello all, I'm getting a strange error when I try to delete a domain from the mysql backend. I use command: vdeldomain domain and it returns with: Warning: Failed while attempting to delete domain from auth backend Everything seems to delete okay though, the entry from rcpthosts, virtualdomains, assign, and the directory in ~vpopmail/domains. Any ideas? Matt -- Ismail YENIGUL Tel: +90 533 747 3665 [EMAIL PROTECTED] http://www.endersys.com http://www.endersys.com.tr
Re: [vchkpw] help me with vpopmail and ldap
caseIgnoreIA5Match SUBSTR caseIgnoreIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{512} ) # # qldapAdmin Attributes # attributetype ( 1.3.6.1.4.1.7914.1.4.1.1 NAME 'qladnmanager' DESC '' EQUALITY distinguishedNameMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.12 ) attributetype ( 1.3.6.1.4.1.7914.1.4.1.2 NAME 'qlaDomainList' DESC '' EQUALITY caseIgnoreIA5Match SUBSTR caseIgnoreIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} ) attributetype ( 1.3.6.1.4.1.7914.1.4.1.3 NAME 'qlaUidPrefix' DESC '' EQUALITY caseIgnoreIA5Match SUBSTR caseIgnoreIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} SINGLE-VALUE ) attributetype ( 1.3.6.1.4.1.7914.1.4.1.4 NAME 'qlaQmailUid' DESC '' EQUALITY integerMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE ) attributetype ( 1.3.6.1.4.1.7914.1.4.1.5 NAME 'qlaQmailGid' DESC '' EQUALITY integerMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE ) attributetype ( 1.3.6.1.4.1.7914.1.4.1.6 NAME 'qlaMailMStorePrefix' DESC '' EQUALITY caseIgnoreIA5Match SUBSTR caseIgnoreIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} SINGLE-VALUE ) attributetype ( 1.3.6.1.4.1.7914.1.4.1.7 NAME 'qlaMailQuotaSize' DESC '' EQUALITY integerMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE ) attributetype ( 1.3.6.1.4.1.7914.1.4.1.8 NAME 'qlaMailQuotaCount' DESC '' EQUALITY integerMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE ) attributetype ( 1.3.6.1.4.1.7914.1.4.1.9 NAME 'qlaMailSizeMax' DESC '' EQUALITY integerMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE ) attributetype ( 1.3.6.1.4.1.7914.1.4.1.10 NAME 'qlaMailHostList' DESC '' EQUALITY caseIgnoreIA5Match SUBSTR caseIgnoreIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} ) # Object Class Definitions objectclass ( 1.3.6.1.4.1.7914.1.2.2.1 NAME 'qmailUser' DESC 'QMail-LDAP User' SUP top AUXILIARY MUST ( mail ) MAY ( uid $ mailMessageStore $ homeDirectory $ userPassword $ mailQuota $ mailAlternateAddress $ qmailUID $ qmailGID $ mailHost $ mailForwardingAddress $ deliveryProgramPath $ qmailDotMode $ deliveryMode $ mailReplyText $ accountStatus $ qmailAccountPurge $ qmaildomain $ mailQuotaSize $ mailQuotaCount $ mailSizeMax ) ) objectclass ( 1.3.6.1.4.1.7914.1.3.2.1 NAME 'qmailGroup' DESC 'QMail-LDAP Group' SUP top AUXILIARY MUST ( mail $ mailAlternateAddress $ mailMessageStore ) MAY ( dnmember $ rfc822member $ filtermember $ senderconfirm $ membersonly $ confirmtext $ dnmoderator $ rfc822moderator $ moderatortext $ dnsender $ rfc822sender $ filtersender) ) objectclass ( 1.3.6.1.4.1.7914.1.4.2.1 NAME 'qldapAdmin' DESC 'QMail-LDAP Subtree Admin' SUP top AUXILIARY MUST ( qlaDnManager $ qlaDomainList $ qlaMailMStorePrefix $ qlaMailHostList ) MAY ( qlaUidPrefix $ qlaQmailUid $ qlaQmailGid $ qlaMailQuotaSize $ qlaMailQuotaCount $ qlaMailSizeMax ) ) -- Ismail YENIGUL Tel: +90 533 747 3665 [EMAIL PROTECTED] http://www.endersys.com http://www.endersys.com.tr
Re[2]: [vchkpw] Why is vadduser creating a hierarchy?
Dave, vuserinfo -d [EMAIL PROTECTED] will give you the user's Maildir directory. # ~vpopmail/bin/vuserinfo -d [EMAIL PROTECTED] /home/vpopmail/domains/domain.com/postmaster You can add the following lines to the your script (I don't know what kind of script (perl, shell etc) do you use, so I will write a shell code. newdir=`vuserinfo -d [EMAIL PROTECTED]; oldir=/nfsmountdir/domainname/user; # don't delete the users under ~vpopmail/domains/ base dir if [ ! $newdir == $oldir ]; then rm -fr $newdir mv $oldir $newdir chown -R vpopmail:vchkpw $newdir fi I wrote this script to give you an idea. Please try it in your lab and Use at your own risk! I highly suggest you to take a backup of your existing data. Sunday, October 8, 2006, 11:56:47 PM, you wrote: Sure, I've tried to get vconvert to work on the source server, but it's a really old version of vpopmail and the files for the users on an NFS mount in a non-standard folder. There are other issues with the source configuration, but in short, they have all 7000 users in one primary domain folder. I have written a script (you know that now) that is parsing this source folder, then parsing the /etc/shadow file, and creating a series of commands to directly call /home/vpopmail/vadduser with the required values (per user) for every user. So the problem is that I've got to solve the sync of the user Maildirs once we're ready to migrate completely. My sources are in a sinpgle domain folder, now my targets are in a single domain folder. Once I rsync the folder data, I'm essentially ready to go. My thinking was that I could repair the big-dirs issue after the fact by slowly moving users' Maildirs from the domain folder to a domain subfolder. The alternative solution would be to find a much smarter way to rysnc the data based upon where the big-dirs enabled target migration puts the users' maildirs. I suppose I could go down that road too, scripting for it, but I suspect the rsync activity would take considerably longer than the few hours it does now. We're moving almost 25G of email, albeit within a local LAN. Appreciate your consideration of options, opinions welcome! Ismail YENIGUL wrote: Dave, What is the problem with big-dirs while migrating the users? If you can tell us the reason of the disabling big-dirs, We can try to find out a solution without disabling big-dirs. I guess it is related with the script? Sunday, October 8, 2006, 11:29:56 PM, you wrote: OK, fair point. So let me ask this please. If I migrate with big-dirs DISABLED, then I recompile to enable big-dirs AND I move some accounts into subfolders a, b, c, etc while making appropriate adjustments in vpopmail table, is that an appropriate way to control this risk? THANKS! Ismail YENIGUL wrote: Dave, Please note that creating 7000 sub directories in a single directory will effect your performance negatively. Friday, October 6, 2006, 11:50:26 PM, you wrote: Rick Macdougall wrote: Dave Richardson wrote: I'm using a script to add thousands of user accounts as part of a migration for a single domain. It's a perl script making repeated calls to /home/vpopmail/bin/vadduser -e dsfgskjghaekjrgkr [EMAIL PROTECTED] The scripting is working fine, I see the accounts correctly in MySQL's vpopmail table. However, I'm seeing vadduser create a hierarchy of folders after about the first 80-100 users are added. Using subfolders A-z,0-9. I only have about 7,000 users to manage and would rather NOT subtree (whatever the term is) this user hierarchy. What logic controls when vadduser decides to subtree the folders for a particular domain? Or, should I just let my script run out all the migrations, create the user/Maildirs wherever, and then start moving them to the root of the domain folder? That leaves some nasty work in SQL to clean up the home folder field! Hi, Configure vpopmail with --disable-users-big-dir. --disable-users-big-dirDisable hashing of user directories. Regards, Rick Thanks Rick and Jon! -- Ismail YENIGUL [EMAIL PROTECTED] http://www.endersys.com
Re[2]: [vchkpw] Why is vadduser creating a hierarchy?
Dave, What is the problem with big-dirs while migrating the users? If you can tell us the reason of the disabling big-dirs, We can try to find out a solution without disabling big-dirs. I guess it is related with the script? Sunday, October 8, 2006, 11:29:56 PM, you wrote: OK, fair point. So let me ask this please. If I migrate with big-dirs DISABLED, then I recompile to enable big-dirs AND I move some accounts into subfolders a, b, c, etc while making appropriate adjustments in vpopmail table, is that an appropriate way to control this risk? THANKS! Ismail YENIGUL wrote: Dave, Please note that creating 7000 sub directories in a single directory will effect your performance negatively. Friday, October 6, 2006, 11:50:26 PM, you wrote: Rick Macdougall wrote: Dave Richardson wrote: I'm using a script to add thousands of user accounts as part of a migration for a single domain. It's a perl script making repeated calls to /home/vpopmail/bin/vadduser -e dsfgskjghaekjrgkr [EMAIL PROTECTED] The scripting is working fine, I see the accounts correctly in MySQL's vpopmail table. However, I'm seeing vadduser create a hierarchy of folders after about the first 80-100 users are added. Using subfolders A-z,0-9. I only have about 7,000 users to manage and would rather NOT subtree (whatever the term is) this user hierarchy. What logic controls when vadduser decides to subtree the folders for a particular domain? Or, should I just let my script run out all the migrations, create the user/Maildirs wherever, and then start moving them to the root of the domain folder? That leaves some nasty work in SQL to clean up the home folder field! Hi, Configure vpopmail with --disable-users-big-dir. --disable-users-big-dirDisable hashing of user directories. Regards, Rick Thanks Rick and Jon! -- Ismail YENIGUL Proje Yöneticisi / Project Manager [EMAIL PROTECTED] http://www.endersys.com
Re[2]: [vchkpw] Why is vadduser creating a hierarchy?
Dave, Please note that creating 7000 sub directories in a single directory will effect your performance negatively. Friday, October 6, 2006, 11:50:26 PM, you wrote: Rick Macdougall wrote: Dave Richardson wrote: I'm using a script to add thousands of user accounts as part of a migration for a single domain. It's a perl script making repeated calls to /home/vpopmail/bin/vadduser -e dsfgskjghaekjrgkr [EMAIL PROTECTED] The scripting is working fine, I see the accounts correctly in MySQL's vpopmail table. However, I'm seeing vadduser create a hierarchy of folders after about the first 80-100 users are added. Using subfolders A-z,0-9. I only have about 7,000 users to manage and would rather NOT subtree (whatever the term is) this user hierarchy. What logic controls when vadduser decides to subtree the folders for a particular domain? Or, should I just let my script run out all the migrations, create the user/Maildirs wherever, and then start moving them to the root of the domain folder? That leaves some nasty work in SQL to clean up the home folder field! Hi, Configure vpopmail with --disable-users-big-dir. --disable-users-big-dirDisable hashing of user directories. Regards, Rick Thanks Rick and Jon! -- Ismail YENIGUL Proje Yöneticisi / Project Manager [EMAIL PROTECTED] http://www.endersys.com
Re: [vchkpw] List of all domains?
Hi Robin, # cat /var/qmail/control/virtualdomains /var/qmail/control/morevirtualdomains |cut -d : -f1 Best Regards Saturday, August 26, 2006, 8:59:38 AM, you wrote: Hi, Just wondering what the canonical way is to get a list of all domains on a server? I've come up with this: vdominfo | \ perl -ne 'if ((/^domain: /) !(/alias of/)) \ { s/^domain: //; print; }' For clarity, the perl code is equivalent to: while () { if ( (/^domain: /) !(/alias of/)) { s/^domain: //; print; } } The algorithm is: For every line: if it starts with domain: and does not contain the text alias of delete domain: from the start of the line print the line Any other ideas? R. -- Ismail YENIGUL Proje Yöneticisi / Project Manager [EMAIL PROTECTED] http://www.endersys.com
Re: migrating users
hi i write a program for this http://www.EnderUNIX.ORG here is description: --- EnderUNIX Vpwd2SQL is a tool, written in PERL that is used to convert '/etc/shadow or /etc/master.passwd' accounts to vpopmail accounts. It does the conversion this way ; 1. reads /etc/shadow or /etc/master.passwd to extract user information. 2. creates the domain in the MySQL database. 3. creates the accounts in the database, correctly updating the 'passwords in the database' with the existing (shadow) password. 4. If exists, any /var/spool/mail/$user or /var/mail/$user mailboxes are converted to $HOME/Maildir/ mails. 5. changing sqwebmail password (sqwebmail-pass file in $user Maildir directory ) , so $user can login from sqwebmail without any problem bye Ismail YENIGUL http://www.enderunix.org http://yenigul.net On Wed, 1 Aug 2001, KK wrote: hello Aadish - i think u can use the vconvert command found in the /home-directory-of-vpopmail/bin/ folder to convert ur accounts to MySql. just read the man page for vconvert. Btw, will u pls let me know how have u been using /etc/passwd file for email user authentication? How do u dynamically create new email users and append their data to the /etc/passwd file? Do u use the Unix adduser command, if yes how do u do it because the adduser command has only root permission and any command run from a remote browser runs as nobody. thanks for any suggestions/help. --- Aadish Shrestha [EMAIL PROTECTED] wrote: Hi I've just configured a fresh mail server with qmail and vpopmail. Vpopmail uses mysql db. NOw i need to migrate my users from old mail server to this one. I'm using only qmail in the older server with authentication from flat password file /etc/passwd. HOw can i acheive this?? Aadish = KK [EMAIL PROTECTED], [EMAIL PROTECTED] Associate Netesoft India Ltd. http://www.netesoft.com P: 91.40.6319813 __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
Re: instalation of courier-imap
hi your mysql library flag is missing in authlib/Makefile in authlib/Makefile file find LDFLAGS line and set it to LDFLAGS=-L/your/mysql/lib/path -lmysqlclient change the /your/mysql/lib/path to with your mysql lib dir if you do not know , where it is use #find / -name libmysqlclient.a it will print you to your mysql lib dir byee On Mon, 22 Jan 2001, BOFH wrote: Hi! RH 6.2, mysql 3.23.31 installed in /mysql vpopmail-4.9.6 installed in /mail/vpopmail. when i'm building courier-imap-1.3.0.. ./configure mmake [...] gcc -I/mail/vpopmail/include -g -O2 -Wall -I.. -I./.. -L/mail/vpopmail/lib -o authuser db modauthuserdb.o libauthmod.a libauth.a ../userdb/libuserdb.a ../gdbmobj/libgdbmobj.a -lgdbm ../md5/libmd5.a -lcrypt gcc -DHAVE_CONFIG_H -I. -I. -I. -I/mail/vpopmail/include -g -O2 -Wall -I.. -I./.. -c modauthvchkpw.c gcc -I/mail/vpopmail/include -g -O2 -Wall -I.. -I./.. -L/mail/vpopmail/lib -o authvchk pw modauthvchkpw.o libauthmod.a libauth.a ../md5/libmd5.a -lvpopmail -lm -lcrypt //mail/vpopmail/lib/libvpopmail.a(vauth.o): In function `vauth_open': /root/vpopmail-4.9.6/vauth.c:59: undefined reference to `mysql_init' /root/vpopmail-4.9.6/vauth.c:61: undefined reference to `mysql_real_connect' /root/vpopmail-4.9.6/vauth.c:63: undefined reference to `mysql_real_connect' /root/vpopmail-4.9.6/vauth.c:70: undefined reference to `mysql_query' /root/vpopmail-4.9.6/vauth.c:123: undefined reference to `mysql_query' /root/vpopmail-4.9.6/vauth.c:127: undefined reference to `mysql_store_result' /root/vpopmail-4.9.6/vauth.c:128: undefined reference to `mysql_free_result' /mail/vpopmail/lib/libvpopmail.a(vauth.o): In function `vauth_adduser_size': /root/vpopmail-4.9.6/vauth.c:199: undefined [...] some other errors.. [...] /root/vpopmail-4.9.6/vauth.c:661: undefined reference to `mysql_store_result' /root/vpopmail-4.9.6/vauth.c:662: undefined reference to `mysql_free_result' /mail/vpopmail/lib/libvpopmail.a(vauth.o): In function `vclose': /root/vpopmail-4.9.6/vauth.c:676: undefined reference to `mysql_close' collect2: ld returned 1 exit status make[1]: *** [authvchkpw] Error 1 make[1]: Leaving directory `/root/courier-imap-1.3.0/authlib' make: *** [all-recursive] Error 1 Any sugestions? __ WS -- Ismail YENIGUL ? echo "UNIX: Live Free or Die !\n"; ?
Re: compiling sqwebmail+vpopmail(mysql)
hi what is your LDFLAGS it should like this at authlib/Makefile file LDFLAGS =-L/your/mysql/lib/path -lmysqlclient if you do not know where is your mysql lib path use # find / -name libmysqlclient.a to find which directory your mysql lib byee On Mon, 15 Jan 2001, [EMAIL PROTECTED] wrote: Hi all. I have problem with compiling SQWEBMAIL-1.1.2 with Vpopmail-4.9.7 using Mysql storage. Vpopmail and Qmailadmin works fine=20 (did manualy changes in Makefile for links to -lmysqlclient, before i = did this changes for Qmailadmin it returns the same error messages like = below.) but i'cant compile sqwebmail .. i'v tried to find out the links to -lmysqlclient in Sqwebmail sources, = but didn't find it :(((.=20 Any suggestion? =20 error messages from Sqwebmail 'make' /home/vpopmail/lib/libvpopmail.a(vauth.o): In function `vauth_open': /usr/install/vpopmail-4.9.7/vauth.c(.text+0x26): undefined reference to = `mysql_init' -- Ismail YENIGUL ? echo "UNIX: Live Free or Die !\n"; ?
Courier-imap compile error on Solaris 7.0
hii i am triying to compile courier-imap on solaris i typed ./configure --without-authmysql --enable-workarounds-for-imap-client-bugs --with-waitfunc=wait3 --without-authldap --with-authvchkpw my mysql lib =/usr/local/mysql/lib #ls -l /usr/local/mysql/lib -rw-r--r-- 1 root root 14908 Feb 13 2000 libdbug.a -rw-r--r-- 1 root root 762336 Oct 28 1999 libmygcc.a -rw-r--r-- 1 root root 148260 Feb 13 2000 libmysqlclient.a -rw-r--r-- 1 root root 26148 Feb 13 2000 libmystrings.a -rw-r--r-- 1 root root 162928 Feb 13 2000 libmysys.a i set LDFLAGS=-L/export/home/vpopmail/lib -lvpopmail -L/usr/local/mysql/lib -lmysqlclient and authvchkpw_LDADD = libauthmod.a libauth.a ../md5/libmd5.a -lvpopmail -lm $(CRYPTLIBS) -lmysqlclient when i type #make i get following errors make[1]: Entering directory `/export/home/yenigul/courier-imap-1.2.3/authlib' gcc -I/export/home/vpopmail/include -g -O2 -Wall -I.. -I./.. -L/export/home/vpopmail/lib -L/usr/local/mysql/lib -o authvchkpw modauthvchkpw.o libauthmod.a libauth.a ../md5/libmd5.a -lvpopmail -lm -lcrypt -lmysqlclient Undefined first referenced symbol in file socket/usr/local/mysql/lib/libmysqlclient.a(libmysql.o) gethostbyname /usr/local/mysql/lib/libmysqlclient.a(libmysql.o) setsockopt /usr/local/mysql/lib/libmysqlclient.a(libmysql.o) getservbyname /usr/local/mysql/lib/libmysqlclient.a(libmysql.o) getsockopt /usr/local/mysql/lib/libmysqlclient.a(libmysql.o) inet_addr /usr/local/mysql/lib/libmysqlclient.a(libmysql.o) shutdown /usr/local/mysql/lib/libmysqlclient.a(libmysql.o) connect /usr/local/mysql/lib/libmysqlclient.a(libmysql.o) ld: fatal: Symbol referencing errors. No output written to authvchkpw collect2: ld returned 1 exit status make[1]: *** [authvchkpw] Error 1 make[1]: Leaving directory `/export/home/yenigul/courier-imap-1.2.3/authlib' make: *** [all-recursive] Error 1 what is problem ? thanx Ismail
Sqwebmail +vpopmail make error on Solaris 2.7(sparc)
hi i am trying again again compile to sqwebmail courier-imap with vpopmail-4.9.4 (MySQL supported) i set LDFLAG="-L/export/home/vpopmail/lib -lvpopmail -L/usr/local/mysql/lib -lmysqlclient" at authlib/Makefile when i write make ,i get following error make[1]: Entering directory `/export/home/yenigul/sqwebmail-1.1.0/authlib' gcc -I/export/home/vpopmail/include -g -O2 -Wall -I.. -I./.. -L/export/home/vpopmail/lib -lvpopmail -L/usr/local/mysql/lib -lmysqlclient -o authvchkpw modauthvchkpw.o libauthmod.a libauth.a ../md5/libmd5.a -lvpopmail -lm -lcrypt Undefined first referenced symbol in file mysql_close /export/home/vpopmail/lib/libvpopmail.a(vauth.o) mysql_free_result /export/home/vpopmail/lib/libvpopmail.a(vauth.o) mysql_fetch_row /export/home/vpopmail/lib/libvpopmail.a(vauth.o) mysql_real_connect /export/home/vpopmail/lib/libvpopmail.a(vauth.o) mysql_use_result/export/home/vpopmail/lib/libvpopmail.a(vauth.o) mysql_select_db /export/home/vpopmail/lib/libvpopmail.a(vauth.o) mysql_store_result /export/home/vpopmail/lib/libvpopmail.a(vauth. mysql_open_smtp_relay libauth.a(preauthvchkpw.o) mysql_query /export/home/vpopmail/lib/libvpopmail.a(vauth.o) mysql_init /export/home/vpopmail/lib/libvpopmail.a(vauth.o) ld: fatal: Symbol referencing errors. No output written to authvchkpw collect2: ld returned 1 exit status make[1]: *** [authvchkpw] Error 1 make[1]: Leaving directory `/export/home/yenigul/sqwebmail-1.1.0/authlib' make: *** [all-recursive] Error 1 my mysql lib is at /usr/local/mysql/lib root@pikachu:/export/home/vpopmail/bin#ls -l /usr/local/mysql/lib/ total 2258 -rw-r--r-- 1 root root 14908 Feb 13 2000 libdbug.a -rw-r--r-- 1 root root 762336 Oct 28 1999 libmygcc.a -rw-r--r-- 1 root root 148260 Feb 13 2000 libmysqlclient.a -rw-r--r-- 1 root root 26148 Feb 13 2000 libmystrings.a -rw-r--r-- 1 root root 162928 Feb 13 2000 libmysys.a root@pikachu:/export/home/vpopmail/bin# i am getting same error at courier-imap please help i am fedup with from compiling sqwebmail and courier-imap thanx