I must admit, I am curious as heck what this is for. Qmailadmin is most usefull for individual domain administration, but here I find code that leads me to believe that it could also be used for vpopmail administration as well (domain additions/deletions, perhaps showing users and resources used). Is this something being worked on for a future version, or is it something that I am just flat out missing in the documentation? The following is from qmailadmin.c , so I suspect this is being compiled in, but how to access it???
 
Anyone have any ideas?  
 
                      /* authenticate a system admin */
                        } else {
                                chdir(Vpophome);
                                load_limits();
 
                                pw = vauth_user( "postmaster", Domain, Password, "" );
                                if ( pw == NULL ) {
                                        show_login();
                                        fprintf(actout,
                                "<Center><h2>Invalid Login</h2></center>");
                                        exit(0);
                                }
 
                                sprintf(TmpBuf, "%s/Maildir",pw->pw_dir);
                                del_id_files( TmpBuf);
 
                                Mytime = time(NULL);
                                sprintf(TmpBuf, "%s/Maildir/%d.qw", pw->pw_dir);
                                fs = fopen(TmpBuf, "w");
                                if ( fs == NULL ) {
                                        fprintf(actout,"bad file\n"); exit(0);}
                                fputs(ip_addr,fs);
                                fclose(fs);
 
                                sprintf(TmpBuf1, "%s/domains",
                                        Vpophome);
                                chdir(TmpBuf1);
                                load_limits();
 
                                set_admin_type();
                                show_domain_admin();
                                show_domains();
                                show_controls();
                                show_status();
                                show_man_pages_index();
                                exit(0);

Reply via email to