PDA

View Full Version : noob questions about severall parts of the guide


ovidiu
08-26-2004, 08:31 AM
01. ./config-fast your_fqdn_hostname (ex: ./config-fast mail.mydomain.com)
should I give mail.mydomain.com or mydomain.com here? If I input mail.mydomain.com and run the ./config-fast I get the following message after it completes: "Now qmail will refuse to accept SMTP messages except to mail.mydomain.com" which makes sense but if I take a look at the qmail plugin for webmin it says:"Qmail will accept for delivery to local users email to the domains and hostnames listed in the text box to the left." After reading this text it makes more sense to change mail.mydomain.com to mydomain.com

02. VQADMIN - gives me errors. I had followed the guide, things were running smooth but now vqadmin stopped working. I can still login but if I attempt to use it i.e. view all domains I get an error: Invalid content length - and a german text saying there was an error while initialising the gui.

I reinstalled vpopmail and vqadmin but I still get this error.

03. when creating a new virtual host with virtualmin should one choose to create email for the new domain as well or should I avoid that in order not to confuse qmail settings?

ovidiu
08-26-2004, 08:34 AM
concerning 02. - looks like I can still login to vqadmin but that is all I can do. I can't login to qmailadmin so I guess somehow the domains/login data has been deleted. Thats why I want to get vqadmin to work again...

stormspotter
08-26-2004, 12:02 PM
1.

I did mydomain.com though it is not real important once you finish setting things up. After you add domains or alias domains through vqadmin, qmail will accept mail for those additional domains as well - this is part of what vpopmail does.

In my case I used mydomain.com - since this is what I'll have friends using to send me e-mail, not mail.mydomain.com. Then, should I have mail being sent to mail.mydomain.com for any reason, I set it up as an alias domain for mydomain.com in vqadmin.

2.

What if you delete vqadmin and then re-install. Also, don't use the old source directory for vqadmin when re-installing. Wipe out the vqadmin installation. Wipe out the vqadmin source directory and then untar vqadmin in your downloads/qmailrocks directory again. Follow the instructions in the qmailrocks guide and see if that doesn't help anything.

Also, to verify things about your second post concerning #2:
If you do a 'cat /var/qmail/users/assign' do you see any of the additional domains you had setup?
Then do a 'ls /home/vpopmail/domains' - do you see any of the additional domains there?

3.

That would depend on whether virtualmin knows about how to use vpopmail to create e-mail for the new domain or not. Sorry, I am not familiar with virtualmin.

ovidiu
08-26-2004, 12:11 PM
01 - understood

02. whats the easiest way to delete all occurencies of vqadmin? I guess an updatedb and a locate vqadmin* will show me all locations.

I'll delete them and retry. I was just not sure if the error is with vqadmin or with vpopmail as I understood vqadmin is a kind of gui for vpopmail?

cat /var/qmail/users/assign gives me a . as response
ls /home/vpopmail/domains gives nothing back

I guess the domains are gone - no problem if I get vqadmin to work I'll fix them again

03. I guess virtualmin does setup a unix user for the virtual domain I setup and I can chose if I want a mailbox for that user or not. if I chose yes and the user is named myseconddomain.com there will be a mailbox by that name. after setting up myseconddomain.com with vqadmin will there be problems? also I think if I chose no mail accepting for my new virtual domain virtualmin will not setup the dns records of my local bind but as I have my domains pointed forward to my IP I guess it will work nevertheless

I guess I will have to test this after getting vqadmin back to work.

ovidiu
08-26-2004, 12:35 PM
I have deleted every occurence of vpopmail and vqadmin, deleted the qmailrocks package, redownloaded and gone through the steps involving vpopmail and vqadmin again. same result.
I try to add new domain, fill in everything and click on add new domain:

I get the result saying: ErrorInvalid content length

below I get a german error message saying: there was an error while initializing the interface. if this error persists please contact your admin

any other ideas?

stormspotter
08-26-2004, 12:58 PM
2.

Yes, it does look like you don't have any domains setup. If vqadmin is still giving the error in German, I would go ahead and re-install vqadmin. If the problem is simply that it's not showing any domains, you might try following the links to add a domain.

3.

I believe all of vqadmin's files are installed in /path/to/cgi-bin/vqadmin/ . So, just doing a 'rm -r /path/to/cgi-bin/vqadmin/' should wipe it out sufficiently.

HTH,
Jacob

stormspotter
08-26-2004, 01:01 PM
What happens if you add a new domain from the command line? cd to /home/vpopmail/bin (assuming /home/vpopmail is where you installed vpopmail) and run './vadddomain yourdomain.com'. Does it give you any errors? If yes, what are the errors?

Once we establish whether vpopmail is working properly or not then we can work on vqadmin some more.

HTH,
Jacob

ovidiu
08-26-2004, 01:09 PM
well I did not even know about that cml usage of vpopmail

the new domain was successfully added after I entered the password for postmaster. still with vqadmin I can't even have a look at the added domain nor can I add a mail account.

=> seems like the error lies with vqadmin


used vadddomain and vadduser and mail is working again. just wondering how to read mails of system users like root, ovidiu (my account) etc. the read users mails module of webmin doesn't seem to work with vpopmail/qmail combination. I can see there is new mail (indicated by the size of the users maildir) but I can't read it. webmin says there is no mail in /home/ovidiu/maildir -
In step 9 of the guide (finalizing the installation) I had setup ovidiu as the alias for those 4 mailaccounts (postmaster, root, mailer-daemon and anonymous) but how can I read local users mails? is it possible with qmail or do I have to alias those 4 to a real email@mydomain.com address?

stormspotter
08-26-2004, 01:31 PM
One more test. What happens if you try to add a user to the domain? Does mail successfully get delivered to that user for the new domain?

During the installation of vqadmin, do you get any errors? What is the full text of the errors you get when trying to login to vqadmin?

Jacob

ovidiu
08-26-2004, 01:45 PM
well I already did that. using ./vadduser mail works like I just said in my last post. I set up a testuser and it works. he can send/receive mails.

I already gave you the full error message that happens within vqadmin. I can login but every action be it list users, list domains, edit or add domains gives the same error as result.

I'll send you a pm with the ip and login details for vqadmin so you can see for yourself.

when installing vqadmin there are no errors I could see.

and I just wanted to add that I got the whole guide/installation working but I had some problems with php and changing stuff in php.ini is the only thing I remember doing between having a working mail system, and afterwards. the only thing I changed in php.ini was what you suggested in the other post, changing the temp folder for php to /tmp

ovidiu
08-27-2004, 04:23 AM
last addition to my problem:

vqadmin does not work, vpopmail works in commandline mode but I can't login with qmailadmin.

If I won't get any further suggestions I'll restore a backup I made before starting the qmail installation and start over again. It won't take longer than 1-2 hours so I guess I'll start it all over.

ovidiu
09-13-2004, 06:11 AM
ok, I did a reinstall and all of a sudden vqadmin and qmailadmin are working again.

I don't know and I don't really care what went wrong but I am still having a small problem with qmailadmin:

The situation is this: when installing I always entered my servers IP where I was being asked for a domain (mostly).

The install section for squirrelmail gives this instruction:

<VirtualHost 1.2.3.4:80>
ServerName mail.mydomain.com
ServerAlias mail.*
ServerAdmin postmaster@mydomain.com
DocumentRoot /var/www/webmail
</VirtualHost>

I followed this instructions and the problem I have is this: I also added 2 virtual domains to apache configurations. Now if I enter mydomain.com I see my domain, if I visit mail.mydomains.com I reach my webmail . Thats fine so far.
But if I just enter my IP I reach squirrelmail as well.

During the installation of qmailadmin I had to enter the path to my web directory and to my cgi-bin directory. I entered the path to the main web directory of my server and not to one of my virtual domains. Now if I visit 65.***.***.***/cgi-bin/qmailadmin I get to the qmailadmin web interface because the cgi-bin path was right but I can't see any images because the path to the images is wrong - during the installation I enterd the right path but because of the virtualhost setting for the webmail interface apache is looking for the qmailadmin images in madomain.com/webmail/ which is not right.

I hope I made myself clear enough for somebody to be able to help.

stormspotter
09-13-2004, 11:00 AM
Do you have a default domain setup in Apache? It should be a VirtualHost entry for www.mydomain.com and it should be placed in your config file before all of the other VirtualHosts. It sounds like mail.* is your first VirtualHost entry and that's why you are noticing the weird problem with qmailadmin images.

HTH,
Jacob