[vchkpw] [slightly OT] mail vs web virtual hosting
Hello, I am the SysAdmin for a small webhosting/colocation company, and we are in the midst of re-designing our network, particularly our mail servers. While in one of our discussions regarding failover load-balancing, an interesting question was brought up: Is it possible to have the mail boxes in different locations on the server, and direct the user to their mailbox based on the domain, or IP address the request is coming in on? Let me explain what I mean, using our web servers as an example (yes, I know that HTTP and mail are different protocols, but please bear with me)... We have two Linux web servers, let's say IP addresses of '192.168.1.1' and '192.168.1.2'. Each server is setup to listen on each IP address. Each domain we setup is setup on one of the servers as it's primary server, where the files are stored served from the local hard drive. The site is then setup on the other server, which would server the site off an NFS mount from an NFS server (the NFS server uses 'rsync' at midnight each night to grab the updates/changes from the web servers themselves). The VirtualHost entries would look like this: Primary: VirtualHost 192.168.1.1:80 DocumentRoot /websites/[0-9,a-z]/customerdomain.com ... /VirtualHost Secondary: VirtualHost 192.168.1.1:80 DocumentRoot /nfs/websites/[0-9,a-z]/customerdomain.com ... /VirtualHost Our router is then setup with priority load balancing: it knows that if the host header contains 192.168.1.1, to go to Server A (which serves up the site locally), but if he is down, go to Server B (which serves the site off the NFS mount). Of course, the advantage to this setup is that we could lose either server, and still be fine (some people just would not be able to FTP their site chanes), *or* we could lose the NFS server, and still be okay. Of course, if we lost a server *and* the NFS server, then we piss off half of our customers :-) So, now for the questions: 1. Is something similar possible for mail servers (it's not so much the contents of the email directories I would care about as much as the existence of the mailboxes themselves) 2. If not possible (and I am almost sure it is not), what is the reason? I would guess it is the different way the protocols work. Is there material you could point me towards to learn about this (the RFC's??) (I do know from previous posts that Vpopmail/Qmail does support IP-based domain hosting, but I am not sure that this means it can serve up the contents of a mail directory in a location other than, say, '/home/vpopmail/domains/customerdomain.com/user/Maildir'...) TIA for your patience regarding this slightly off-topic post... :-) Alan __ Post your free ad now! http://personals.yahoo.ca
[vchkpw] Ldap + vpopmail error
Hey guys, I am trying to get this going and I get this error when I try to start slapd: usr/etc/openldap/schema/qmailUser.schema: line 39: ObjectClass not found: top I have compiled ldap 2.0.27. Here is my qmailUser.schema: attributetype ( 1.3.6.1.4.1.8868.3.1.2 NAME 'qmailGID' DESC 'qmail group id' EQUALITY caseIgnoreIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{100} SINGLE-VALUE ) attributetype ( 1.3.6.1.4.1.8868.3.1.3 NAME 'qmailUID' DESC 'qmail userid' EQUALITY caseIgnoreIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{100} SINGLE-VALUE ) attributetype ( 1.3.6.1.4.1.8868.3.1.4 NAME 'qmaildomain' DESC 'qmail Domain' EQUALITY caseIgnoreIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{100} SINGLE-VALUE ) attributetype ( 1.3.6.1.4.1.8868.3.1.6 NAME 'mailQuota' DESC 'qmail quota' EQUALITY caseIgnoreIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{100} SINGLE-VALUE ) attributetype ( 1.3.6.1.4.1.8868.3.1.7 NAME 'mailMessageStore' DESC 'qmail Store' EQUALITY caseIgnoreIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{100} SINGLE-VALUE ) objectclass ( 1.3.6.1.4.1.8868.3.1 NAME 'qmailUser' DESC 'qmail local mail recipient' SUP ( top $ person $ organizationalPerson ) MAY ( qmailGID $ qmailUID $ qmaildomain $ mailQuota $ mailMessageStore $ name $ cn $ userPassword $ uid ) ) Thanks for any suggestions. Remo
[vchkpw] Relay problem with 5.2.1 and latest build.
Hi. I have strange problem with relay and i dont know where to find the problem. Im running with tcpserver -x/home/vpopmail/etc/tcp.smtp.cdb and it seems it dont even rebuild the file after i connect to the server. I have used the roaming options but still, no luck. Everything else works fine just that it seems that vpopmail dont rebuild the tcp.smtp.cdb file after a connection. Any suggestion how to start debug vpopmail so i can track down where its wrong ? Best Regards Anders Eliasson
[vchkpw] LDAP + VPOPMAIL progess :)
Here is an update on my ldap installation. I have modified vldap for my domain, with my passwd. I compiled and went ok. Now when I try to add a domain I get this below. ./vadddomain testme.com Please enter password for postmaster: enter password again: Error: No such object Error: No such object Error: No such object Error: No such object Error: Unable to chdir to vpopmail/users directory I did create a directory called users and give vpopmail all the permissions. Thanks
Re: [vchkpw] [slightly OT] mail vs web virtual hosting
At 09:32 04/01/2003 -0500, you wrote: Hi Alan, I have a pressing engagement, so I must be brief. If I miss something, feel free to ask -- I can follow up later. It is possible to have redundant servers, most mid-sized and large ISP's, as well as e-mail providers and corporations do so. It takes careful planning, hardware and solid knowledge of how the software you use works. You can certainly create a duplicate mail server, for redundancy, that can switch over to a primary role as necessary. You must ensure that the mail software on each machine is identical, as are the configurations. Using RSYNC, for instance, you can keep the contents of the mailboxes current (give or take N number of minutes between each rsync). However, that machine CANNOT act as a backup mail host -- it will simply deliver mail to an existing mailbox on the machine. Of course, the control and user files on the primary machine must be identical on the redundant host, and kept as current as possible (in case users change their passwords, for example). If you use a seperate LDAP or SQL host, you are better off. There are other options for you. Consider creating a central NFS mount which stores the mailboxes (using RAID 0+1 or 10 preferably, read up on the difference if you don't), and have each host (primary and redundant) configured identically and connect to the NFS share. The benefit to this model is you can also perform load balancing, so each host can be a primary. Depending on how you configure your router, or if you choose to use something like heartbeat with IP failover, the failure of one machine will not effect the other. Of course, then the NFS share is a potential source of failure, and you must take that into account as well. I do know some have been working on mail delivery to a database (like MySQL or Oracle) instead of to a file system (local or mounted), but I have not seen this used with Vpopmail before. That is another option. Good luck, let me know how it works out for you. -- Steve Hello, I am the SysAdmin for a small webhosting/colocation company, and we are in the midst of re-designing our network, particularly our mail servers. While in one of our discussions regarding failover load-balancing, an interesting question was brought up: Is it possible to have the mail boxes in different locations on the server, and direct the user to their mailbox based on the domain, or IP address the request is coming in on? Let me explain what I mean, using our web servers as an example (yes, I know that HTTP and mail are different protocols, but please bear with me)... We have two Linux web servers, let's say IP addresses of '192.168.1.1' and '192.168.1.2'. Each server is setup to listen on each IP address. Each domain we setup is setup on one of the servers as it's primary server, where the files are stored served from the local hard drive. The site is then setup on the other server, which would server the site off an NFS mount from an NFS server (the NFS server uses 'rsync' at midnight each night to grab the updates/changes from the web servers themselves). The VirtualHost entries would look like this: Primary: VirtualHost 192.168.1.1:80 DocumentRoot /websites/[0-9,a-z]/customerdomain.com ... /VirtualHost Secondary: VirtualHost 192.168.1.1:80 DocumentRoot /nfs/websites/[0-9,a-z]/customerdomain.com ... /VirtualHost Our router is then setup with priority load balancing: it knows that if the host header contains 192.168.1.1, to go to Server A (which serves up the site locally), but if he is down, go to Server B (which serves the site off the NFS mount). Of course, the advantage to this setup is that we could lose either server, and still be fine (some people just would not be able to FTP their site chanes), *or* we could lose the NFS server, and still be okay. Of course, if we lost a server *and* the NFS server, then we piss off half of our customers :-) So, now for the questions: 1. Is something similar possible for mail servers (it's not so much the contents of the email directories I would care about as much as the existence of the mailboxes themselves) 2. If not possible (and I am almost sure it is not), what is the reason? I would guess it is the different way the protocols work. Is there material you could point me towards to learn about this (the RFC's??) (I do know from previous posts that Vpopmail/Qmail does support IP-based domain hosting, but I am not sure that this means it can serve up the contents of a mail directory in a location other than, say, '/home/vpopmail/domains/customerdomain.com/user/Maildir'...) TIA for your patience regarding this slightly off-topic post... :-) Alan __ Post your free ad now! http://personals.yahoo.ca
[vchkpw] what is the usage of .qmail in ~vpopmail/domain/VIRTUAL_DOMAIN_NAME/USER/.qmail ??
I set up such a file with content of [EMAIL PROTECTED] but the mail to this user bounced thousand times in minutes! what is the usage of that file ? that is the part header of the bounced mail: . Return-Path: [EMAIL PROTECTED] Delivered-To: [EMAIL PROTECTED] Received: (qmail 1586 invoked by uid 89); 4 Jan 2003 07:12:55 - Delivered-To: [EMAIL PROTECTED] Received: (qmail 1578 invoked by uid 89); 4 Jan 2003 07:12:55 - Delivered-To: [EMAIL PROTECTED] Received: (qmail 1570 invoked by uid 89); 4 Jan 2003 07:12:55 - Delivered-To: [EMAIL PROTECTED] . it cost hundreds kilobytes in one header !! And is there another easy way for copy a header of a email and does not destroy the normal carrying process of a mail by virtual domain which is held by vpopmail. I want to know how to use a simple file like .qmail to redirect or just copy the email? Thanks Jerry
[vchkpw] vqadmin: Script not found or unable to stat ??
Hello, I have QMail + Vpopmail + Qmailadmin setup on a FreeBSD box, and all is working fine, thus far. I decided to download VQAdmin to take a look at it (all is latest stable source downloaded today). I followed the instructions, and the vqadmin stuff got put into my /websites/q/qmailadmin/cgi-bin directory, which is where I indicated it should go. However, when I point by browser to http://192.168.2.2/cgi-bin/vqadmin/html/main.htm, I get prompted for the username/apssword, which I enter. But then I get the following page: - Forbidden You don't have permission to access /cgi-bin/vqadmin/html/main.html on this server. - And I find this in my Apache logs: - [Sat Jan 4 21:39:40 2003] [error] [client 192.168.1.2] file permissions deny server execution: /var/www/cgi-bin/vqadmin/html/main.html - I have not changed the file permissions, and this is what they are for this file: - -rw-r--r-- 1 vpopmail vchkpw 803 Jan 4 21:43 html/main.html - I have a feeling this has something to do with an HTML file trying to be run from the cgi-bin, but if I move them to the DocumentRoot, then the page does not show up properly (the buttons have numbers on them, like what is in HTML source). Did I neglect to do something? Do I need to add something to the Directory structure I setup for '/websites/q/qmailadmin/cgi-bin/vqadmin'? TIA for your help. Alan Murrell [EMAIL PROTECTED] __ Post your free ad now! http://personals.yahoo.ca
[vchkpw] why failed to change password in sqwebmail? expect not found...
Hello, I encounter the problem that failed to change passwordin the web interface of sqwebmail. The error message in compiling time is: "expect not found - will not be able to change passwds in webmail..." Any help would be greatly appreciated. Thks Rdgs, Banks