Here is the situation: I have an alias domain bdhtechnology.net which is
aliased to bdhtechnology.com.  If I run '~vpopmail/bin/valias
bdhtechnology.com' I can see all of the aliases for the domain.  However if
I run '~vpopmail/bin/valias bdhtechnology.net' I get no output at all.
Furthermore if I run '~vpopmail/bin/valias -n bdhtechnology.com' (or with
any domain) I get a seg. fault.

Attached is the discussion with John Simpson from the qmailrocks mailing
list.  He believes this issue is a bug in vpopmail.

I am using vpopmail v5.4.18 w/ MySQL support.  Here is my configure line:
./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-roaming-users --enable-onchange-script
--enable-libdir=/var/lib/mysql


Thanks,
Chad



!DSPAM:45f8428219871130719336!
--- Begin Message ---
On 2007-03-13, at 1729, Chad E. Berg wrote:
John Simpson [EMAIL PROTECTED] wrote:
I enabled debugging to try and find
out the problem of why the alias' for an aliased domain were being
rejected
by validrcptto.  Never did figure out why and it is still happening.

To explain the problem again I am having problems sending to alias' in an aliased domain because they aren't found in the validrcptto.cdb file. In
other words I have an aliased domain bdhtechnology.net aliased to
bdhtechnology.com.  I have alias users setup for bdhtechnology.com,
webmaster for example, but the aliased domain doesn't show the alias'. So
~vpopmail/bin/valias bdhtechnology.net produces nothing whereas
~vpopmail/bin/valias bdhtechnology.com shows the expected output.

i remember.

(1) what version of vpopmail are you using? did you compile it with
mysql support?

I am using vpopmail v.5.4.18 w/ mysql support, and no I don't specifically
need to be using mysql.  Configure options are:
./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-roaming-users --enable-onchange-script
--enable-libdir=/var/lib/mysql

i suspect that the solution for now will be to not use mysql, but that means you're going to have to convert everything back to the original vpasswd.cdb files in each domain's directory. i remember there being a script in the "contrib" directory of the vpopmail source

(3) send the full, un-edited contents of your control/virtualdomains
and users/assign files.

[EMAIL PROTECTED]:/var/qmail/control# cat virtualdomains
...
bdhtechnology.com:bdhtechnology.com
...
bdhtechnology.net:bdhtechnology.net

---------------------------------------------------------------------- ------

[EMAIL PROTECTED]:/var/qmail# cat users/assign
...
+bdhtechnology.com-:bdhtechnology.com:1012:110:/home/vpopmail/ domains/bdhtechnology.com:-::
...
+bdhtechnology.net-:bdhtechnology.com:1012:110:/home/vpopmail/ domains/bdhtechnology.com:-::

if you know the format of the users/assign file, you can see how "vaddaliasdomain" actually works- at least when you're using vpasswd.cdb files. each domain has it's own virtual userid, but both userids have the same "home directory".

(4) send the full, un-edited output from the following commands, run
as root (where "_____" is the domain you're having problems with.)

        ~vpopmail/bin/vdominfo -n
        ~vpopmail/bin/vuserinfo -n -D _____
        ~vpopmail/bin/valias -n _____

[EMAIL PROTECTED]:/var/qmail# ~vpopmail/bin/vdominfo -n
...
bdhtechnology.com
...
bdhtechnology.net (alias of bdhtechnology.com)

okay, so vpopmail knows that one domain is an alias of the other.

[EMAIL PROTECTED]:/var/qmail# ~vpopmail/bin/valias -n bdhtechnology.net
Segmentation fault

This command seems to produce a seg. fault no matter which domain is used
(bdhtechnology.com has no problems with validrcptto).
[EMAIL PROTECTED]:/var/qmail# ~vpopmail/bin/valias -n bdhtechnology.com
Segmentation fault

But without the -n switch, or with the -s switch I get no output
[EMAIL PROTECTED]:/var/qmail# ~vpopmail/bin/valias -s bdhtechnology.net

you appear to have found a bug in vpopmail.

on my own server, where "jms1.org" is an aliasdomain of "jms1.net", the commands "valias -n jms1.net" and "valias -n jms1.org" produce identical output- a list of all of the aliases within the domain. of course i'm not using mysql (i'm using vpasswd.cdb files in each domain's directory) so that's probably a big hint as to where the bug will be found- somewhere in the mysql code.

you need to report this to the vpopmail mailing list. feel free to forward this message, intact, as part of your bug report... and also let them know that i apologize, i've been really busy, and haven't had time to even look at the vpopmail list in over a month.

----------------------------------------------------------------
| John M. Simpson    ---   KG4ZOW   ---    Programmer At Large |
| http://www.jms1.net/                         <[EMAIL PROTECTED]> |
----------------------------------------------------------------
| http://video.google.com/videoplay?docid=-4312730277175242198 |
----------------------------------------------------------------




!DSPAM:45f8428219871130719336!

Attachment: PGP.sig
Description: This is a digitally signed message part


--- End Message ---

Reply via email to