Re: [vchkpw] a vpopbull question
Hello mbeltran, If you are using vpopbull ou probably are also interested in my patch sent some months ago to this maillist that still doesn't make part of the official releases of vpopmail ... ### This patch makes vpopbull work with multiple domains in the argument The base 5.4.x AFAIK only processes the first domain due to nested use of strtok --- ../vpopmail-5.4.10-IPLNet-9/vpopbull.c 2004-01-11 09:16:53.0 + +++ vpopbull.c 2005-05-18 14:00:30.0 +0100 @@ -127,16 +127,16 @@ } if (( EmailFile[0] != 0 || DoNothing == 1) && Domain[0] != 0 ) { - + char *idx; /* Process list of domains */ -domain = strtok(Domain, " "); +domain = strtok_r(Domain, " ",&idx); while (domain != NULL ) { if((vget_assign(domain, domain_dir, sizeof(domain_dir), NULL, NULL)) != NULL) { process_domain(domain, fsi, fsx ); } else { fprintf(stderr, "Error: domain %s does not exist\n", domain); } -domain = strtok(NULL, " "); +domain = strtok_r(NULL, " ",&idx); } vexit(0); @@ -150,11 +150,12 @@ } while ( fgets(TmpBuf, sizeof(TmpBuf), fsassign) != NULL ) { - if ( (alias=strtok(TmpBuf, TOKENS)) == NULL ) continue; - if ( (domain=strtok(NULL, TOKENS)) == NULL ) continue; - if ( (tmpstr=strtok(NULL, TOKENS)) == NULL ) continue; - if ( (tmpstr=strtok(NULL, TOKENS)) == NULL ) continue; - if ( (domain_dir=strtok(NULL, TOKENS)) == NULL ) continue; + char *idx; + if ( (alias=strtok_r(TmpBuf, TOKENS,&idx)) == NULL ) continue; + if ( (domain=strtok_r(NULL, TOKENS,&idx)) == NULL ) continue; + if ( (tmpstr=strtok_r(NULL, TOKENS,&idx)) == NULL ) continue; + if ( (tmpstr=strtok_r(NULL, TOKENS,&idx)) == NULL ) continue; + if ( (domain_dir=strtok_r(NULL, TOKENS,&idx)) == NULL ) continue; alias++; /* point past leading + */ alias[strlen(alias)-1] = '\0'; /* remove trailing - */ if (strcmp (alias, domain) != 0) { Friday, October 7, 2005, 4:13:54 PM, you wrote: > Hello > Yesterday I want to get a list of all emails accounts on my mail server, so > i run vpopbull. I got this message > ~vpopmail/bin/vpopbull -n -V >> ~mbeltran/cuentas.txt > skipping promotionalrepaldo/home.123.hn (alias of promotionalhome.123.hn) > skipping simon.intertel.hn (alias of hn2.com) > skipping t.hn2.com (alias of david.intertel.hn) > skipping ps.com.sv (alias of powersystems.com.sv) > skipping data-sistemas.com (alias of magicsoftware.hn > When i look the file cuentas.txt, in fact, vpopbull skip to list accounts in > a alias domain. > the question is: how can get the missing alias mails? > I really need all accounts beause i need then for use in a recipients > features for spamcontrol pathc > thanks in advance > Mario -- Best regards, Pedromailto:[EMAIL PROTECTED]
RE: [vchkpw] a vpopbull question
thank you very much work fine :) -Mensaje original- De: John Simpson [mailto:[EMAIL PROTECTED] Enviado el: Monday, October 10, 2005 12:13 AM Para: vchkpw@inter7.com Asunto: Re: [vchkpw] a vpopbull question On 2005-10-07, at 1830, [EMAIL PROTECTED] wrote: > >> you may want to look at my "mkvalidrcptto" script- > > I'm interested on your script mkvalidrcptto but it has not a help. > what is > the syntax? there's no real syntax- you just run it. it scans the directories it needs and sends the output to its "standard out" channel. you can direct the output into a file or pipe it into another program using the standard shell mechanisms (i.e. the ">" and "|" operators.) > I don't know if I wrong but I understand that if I have this: > > main domain: hn2.com > alias of hn2.com: simon.intertel.hn > > So, if i have this email ie: > [EMAIL PROTECTED] (of course it has an alias > [EMAIL PROTECTED]) > > When I run ./mkvalidrcptto.pl [syntax ] I'll got the following > list?: > [EMAIL PROTECTED] > [EMAIL PROTECTED] sounds right to me... just run the script and see what it gives you. it doesn't change anything on the system, the only thing it does is prints out the list. try something like "./mkvalidrcptto.pl | less" to see how it works. even better, try "less mkvalidrcptto.pl" and inspect the script itself. even if you're not a programmer, the comments in the code should be fairly clear. -- | John M. Simpson - KG4ZOW - Programmer At Large | | http://www.jms1.net/ <[EMAIL PROTECTED]> | -- | Mac OS X proves that it's easier to make UNIX | | pretty than it is to make Windows secure. | --
Re: [vchkpw] a vpopbull question
On 2005-10-07, at 1830, [EMAIL PROTECTED] wrote: you may want to look at my "mkvalidrcptto" script- I'm interested on your script mkvalidrcptto but it has not a help. what is the syntax? there's no real syntax- you just run it. it scans the directories it needs and sends the output to its "standard out" channel. you can direct the output into a file or pipe it into another program using the standard shell mechanisms (i.e. the ">" and "|" operators.) I don't know if I wrong but I understand that if I have this: main domain: hn2.com alias of hn2.com: simon.intertel.hn So, if i have this email ie: [EMAIL PROTECTED] (of course it has an alias [EMAIL PROTECTED]) When I run ./mkvalidrcptto.pl [syntax ] I'll got the following list?: [EMAIL PROTECTED] [EMAIL PROTECTED] sounds right to me... just run the script and see what it gives you. it doesn't change anything on the system, the only thing it does is prints out the list. try something like "./mkvalidrcptto.pl | less" to see how it works. even better, try "less mkvalidrcptto.pl" and inspect the script itself. even if you're not a programmer, the comments in the code should be fairly clear. -- | John M. Simpson - KG4ZOW - Programmer At Large | | http://www.jms1.net/ <[EMAIL PROTECTED]> | -- | Mac OS X proves that it's easier to make UNIX | | pretty than it is to make Windows secure. | -- PGP.sig Description: This is a digitally signed message part
RE: [vchkpw] a vpopbull question
Mr. Simpson: thank you for your advice. >you may want to look at my "mkvalidrcptto" script- I'm interested on your script mkvalidrcptto but it has not a help. what is the syntax? >it scans the system and vpopmail directories and generates a list of valid email addresses, with "@domain" for domains which accept all email addresses. I don't know if I wrong but I understand that if I have this: main domain: hn2.com alias of hn2.com: simon.intertel.hn So, if i have this email ie: [EMAIL PROTECTED] (of course it has an alias [EMAIL PROTECTED]) When I run ./mkvalidrcptto.pl [syntax ] I'll got the following list?: [EMAIL PROTECTED] [EMAIL PROTECTED] Thanks in advence Mario
Re: [vchkpw] a vpopbull question
On 2005-10-07, at 1113, [EMAIL PROTECTED] wrote: Yesterday I want to get a list of all emails accounts on my mail server, so i run vpopbull. I got this message ~vpopmail/bin/vpopbull -n -V >> ~mbeltran/cuentas.txt skipping promotionalrepaldo/home.123.hn (alias of promotionalhome. 123.hn) skipping simon.intertel.hn (alias of hn2.com) ... When i look the file cuentas.txt, in fact, vpopbull skip to list accounts in a alias domain. the question is: how can get the missing alias mails? short answer: you can't. it's written so that your users will see one copy of the message when they log into their mailbox. it adds each PHYSICAL mailbox addresses once- if you were to force it to include these "alias domains", users in the alias domains would possibly receive multiple copies. I really need all accounts beause i need then for use in a recipients features for spamcontrol pathc vpopbull is the wrong tool for the job. this is the equivalent of using a chisel to loosen a screw- it can eventually be forced to work, but it's a lot of unnecessary effort. vpopbull is designed to fake message deliveries into vpopmail mailboxes, not to build a list of valid email addresses. you may want to look at my "mkvalidrcptto" script- it scans the system and vpopmail directories and generates a list of valid email addresses, with "@domain" for domains which accept all email addresses. it was designed to build a file for use with my "validrcptto.cdb" patch, although its output is just a plain-text list of email addresses (and "@domain" lines) and can be used for any number of other things, whether you're using my patches or not. http://qmail.jms1.net/patches/validrcptto.cdb.shtml -- | John M. Simpson - KG4ZOW - Programmer At Large | | http://www.jms1.net/ <[EMAIL PROTECTED]> | -- | Mac OS X proves that it's easier to make UNIX | | pretty than it is to make Windows secure. | -- PGP.sig Description: This is a digitally signed message part
[vchkpw] a vpopbull question
Hello Yesterday I want to get a list of all emails accounts on my mail server, so i run vpopbull. I got this message ~vpopmail/bin/vpopbull -n -V >> ~mbeltran/cuentas.txt skipping promotionalrepaldo/home.123.hn (alias of promotionalhome.123.hn) skipping simon.intertel.hn (alias of hn2.com) skipping t.hn2.com (alias of david.intertel.hn) skipping ps.com.sv (alias of powersystems.com.sv) skipping data-sistemas.com (alias of magicsoftware.hn When i look the file cuentas.txt, in fact, vpopbull skip to list accounts in a alias domain. the question is: how can get the missing alias mails? I really need all accounts beause i need then for use in a recipients features for spamcontrol pathc thanks in advance Mario
[vchkpw] a vpopbull question
Hi all Somebody knows how can I post an email in html format to serveral virtualdomains in my system box with vpopbull? Thanks in advance Mario