On 05 Dec 07, Tren Blackburn wrote:
> Try disabling qmail-ext in your vpopmail build and see what happens.


Yes, disabling qmail-ext parses the .qmail file, which also can be seen
in the source code after the part I have posted, but this breaks other
things in my setup (i.e. mailing-list handling)

Regards,
Hartmut

> 
> Regards,
> 
> Tren
> 
> ----- Original Message -----
> From: Hartmut Wernisch <[EMAIL PROTECTED]>
> To: vchkpw@inter7.com <vchkpw@inter7.com>
> Sent: Wed Dec 05 00:52:39 2007
> Subject: Re: [vchkpw] hyphen in local address part
> 
> Hello it's me again!
> 
> 
> I examined the source code of vdelivermail.c and in my understanding
> ".qmail" is never parsed for addresses with hyphens. Only ".qmail-..."
> are parsed.
> Can anybody confirm my assumption or proof it wrong? 
> 
> 
> 
> code snip from version 2.4.25:
> 
> [vdelivermail.c]
>  .
>  .
>  .
>  810 int check_forward_deliver(char *dir)
>  811 {
>  812  static char qmail_line[500];
>  813  FILE *fs;
>  814  int i;
>  815  int return_value = 0;
>  816 
>  817 #ifdef QMAIL_EXT
>  818  char tmpbuf[500];
>  819 #endif
>  820 
>  821     chdir(dir);
>  822 
>  823 #ifdef QMAIL_EXT
>  824     /* format the file name */
>  825     if (strlen(TheExt)) {
>  826         strcpy(tmpbuf,".qmail-");
>  827         strcat(tmpbuf,TheExt);
>  828         if ( (fs = fopen(tmpbuf,"r")) == NULL ) {
>  829             for (i=strlen(TheExt);i>=0;--i) {
>  830                 if (!i || TheExt[i-1]=='-') {
>  831                     strcpy(tmpbuf,".qmail-");
>  832                     strncat(tmpbuf,TheExt,i);
>  833                     strcat(tmpbuf,"default");
>  834                     if ( (fs = fopen(tmpbuf,"r")) != NULL) {
>  835                         break;
>  836                     }
>  837                 }
>  838             }
>  839         }
>  840     } else {
>  841         fs = fopen(".qmail","r");
>  842     }
>  843 #else
>  844     fs = fopen(".qmail","r");
>  845 #endif
>  .
>  .
> 
> [vdelivermail.c/]
> 
> 
> best,
> Hartmut
> 
> On 27 Nov 07, Hartmut Wernisch wrote:
> > 
> > Hello!
> > 
> > 
> > vpopmail (5.4.25) ignores the .qmail file for addresses with 
> > a hyphen in the local part like "foo-bar".
> > 
> > I know about the qmail-extension but I think that the .qmail file should
> > be processed anyway?!
> > My (very) old vpopmail (5.4.4) version respected the .qmail file!
> > 
> > Is this a bug or is my understanding/config wrong?
> > 
> > 
> > vpopmail version 5.4.25 with following compile options:
> > 
> >     ./configure --prefix=/var/vpopmail --enable-logging=p \
> >      --enable-auth-module=mysql --disable-passwd \
> >      --enable-clear-passwd=no --enable-many-domains \
> >      --enable-auth-logging --enable-valias \
> >      --enable-mysql-limits=no --enable-qmail-ext=y \
> >      --enable-ip-alias-domains=y \
> >      --enable-libdir=/usr/include/mysql \
> >      --enable-mysql-replication --enable-file-locking=n
> > 
> > 
> > vpopmail version 5.4.4 with following compile options:
> >     ./configure  --enable-qmail-ext=y --prefix=/var/vpopmail \
> >      --enable-ip-alias-domains=y --enable-logging=p \
> >      --enable-domainquotas=y
> > 
> > 
> > 
> > Thanks in advance!
> > Hartmut
> > 
> > 
> > 
> > 
> 
> 
> 
> 
> 
> 

-- 
DI Hartmut Wernisch
Technischer Leiter (CIO)                    Domaintechnik.at
email: [EMAIL PROTECTED]                  Wiener Strasse 2
www:   www.domaintechnik.at                 A-5202 Neumarkt/Wallersee

!DSPAM:47566ad832001645415496!

Reply via email to