hostbuyout
11-08-2002, 12:08 PM
Hello,
I have customers that want to host multiple domains on one linux machine, without using a control panel, virtual hosts are simple with apache, how do I handle virtual email routing. I know that cpanel has cpop, are there any other virtual mail daemons available that are stable? What do people here use for their machines?
thanks!
ScottD
11-08-2002, 12:12 PM
Go here: http://inter7.com/vpopmail/
Look at vpopmail with qmail, an excellent combination.
Good luck!
hostbuyout
11-08-2002, 12:14 PM
Thank you! Looks like just what I need. Have you had good experiences with vpopmail? I'll have to load it up and beat it some this weekend.
thank you!
ScottD
11-08-2002, 12:20 PM
I don't really know of a better combination. It's one of those things that just works and works exactly as documented.
I use this combination and it has been flawless so far. Hopefully I didn't just jynx myself!
I'm using EXIM + QPOPPER and both of them are using MySQL for domains and accounts.:smokin:
wakkow
11-08-2002, 10:06 PM
Miha, how did you get that working? I went with vpopmail/qmail because I couldn't find an alternative that didn't require pulling arms and legs to get working.. vpopmail/qmail works, but I don't really like the weird way qmail wants to be setup and run (at least in my opinion). It seems the author likes things differently than the way the rest of the system works.. oh well..
Anyways, on the qpopper site, it says this:
Virtual domains are not currently supported by qpopper, but you can handle them by configuring your MTA (e.g., Sendmail) to map, say, joe@domain1 to user23, and joe@domain2 to user89 (or whatever). Then you tell Joe #1 that his email address is joe@domain1.x.y and his POP user name is user23, and Joe #2 that his email address is joe@domain2.x.y and his POP user name is user89.
Is that what you're doing or were you able to find a "better" way?
1) compile (exactly, not from RPM) yourself MySQL
2) get exim-3.36 from ftp.exim.org
3) in exim's Makefile set the following:
MAKE_SHELL=/bin/sh
CHOWN_COMMAND=/bin/chown
CHGRP_COMMAND=/bin/chgrp
MV_COMMAND=/bin/mv
RM_COMMAND=/bin/rm
PERL_COMMAND=/usr/bin/perl
INFO_DIRECTORY=/usr/info
COMPRESS_COMMAND=/bin/gzip
ZCAT_COMMAND=/usr/bin/zcat
CONFIGURE_FILE=/etc/exim/exim.conf
EXIM_UID=111
EXIM_GID=12
# EXIM_MONITOR=eximon.bin
LOG_FILE_PATH=/var/log/exim/exim_%slog
LOG_DIRECTORY_MODE=0750
LOG_MODE=0644
LOOKUP_MYSQL=yes
LOOKUP_INCLUDE=-I /path/to/include/mysql
LOOKUP_LIBS=-L/path/to/lib/mysql -lmysqlclient
MSGLOG_DIRECTORY_MODE=0700
PID_FILE_PATH=/var/run/exim%s.pid
SPOOL_DIRECTORY=/var/spool/mail
SPOOL_DIRECTORY_MODE=07
SPOOL_MODE=0600
then get yourself qpopper and MySQL patch and compile:
./configure \
--prefix=/usr \
--enable-shy \
--enable-log-login-mysql \
--enable-mysql \
--enable-fast-update \
--with-mysqlconfig=/etc/qpopper/popper.conf \
--disable-check-pw-max \
--enable-specialauth \
--disable-hash-dir-check
then take a look how to make exim work with MySQL and the same for qpopper. setup configs and create mysql db, run exim and qpopper and you're ready to add domains/accounts to mysql depending on how your configs are set.
Search for docs and you will find some.
Miha.