----- Original Message ----- 
From: "Charles Sprickman" <[EMAIL PROTECTED]>
To: "tonix (Antonio Nati)" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, September 05, 2003 7:41 AM
Subject: Re: [vchkpw] 5.3.26 error with chkusr patch + mysql


> FWIW, I'm getting a similar error with 5.3.27:

> qmail-smtpd.o: In function `realrcpt_check':
> qmail-smtpd.o(.text+0xc51): undefined reference to `vget_real_domain'
> *** Error code 1
>
> As mentioned below, if I comment out the section referencing
> "vget_real_domain" in qmail-smtpd.c, it does compile, but I would think
> that would affect functionality, no?
>
> [EMAIL PROTECTED]/usr/local/src/toaster/vpopmail/vpopmail-5.3.27]# grep
> vget_real_dom *
>
> ChangeLog:         - removed the need for vget_real_domain() function
> ChangeLog:           tracked it down to vget_real_domain calling
> ChangeLog:           the vget_real_domain() function to change the domain
> vpopmail.h:int vget_real_domain(char *domain, int len );
>
> Looks like the function is gone...

That function was removed in 5.3.26 because it was obsoleted quite a while
ago (5.1.10 according to the changelog). Before removing, I remember
checking through all the vpopmail source and confirmed there was no calls to
this function. However I see now that your patch was using this code still.

The recommended way to lookup a "real domain" is now by calling vget_assign
like this :

vget_assign(somedomain, NULL, 0, NULL, NULL)

If somedomain was an alias domain, it will be rewritten as the real domain
If somdomain was a real domain, then it will return unchanged.

Hope that helps

Michael.


Reply via email to