OK. In this email I'm going to discuss the changes I had to make in order to
get virtual domain support working under tmda/vpopmail. First, my machine
specs:
FreeBSD 4.6.1-RELEASE-p10/Qmail (1.03)/vpopmail 5.2.1/Courier Imap 1.6.1/tmda
(67-alpha?)
I run tmda-ofmipd from DJB's daemontools supervise with the following run script:
---------------------------------------------------
#!/bin/sh
exec su -l vpopmail -c "exec /usr/local/tmda/bin/tmda-ofmipd -f -p 0.0.0.0:8025 -R
imaps -S /usr/local/tmda/contrib/vpopmail-vdir.sh" 2>&1
---------------------------------------------------
I got tripped up at first because (I think) the -f and -b options are new. And with
supervise, you definately don't want your program in the background. (supervise
will think it died and try to restart it) So I had to use the -f option to keep it
in the forground.
I use a slightly modified "vpopmail-vdir.sh" script. I changed VUSERINFO from the
default to:
---------------------------------------------------
VUSERINFO=/usr/local/vpopmail/bin/vuserinfo
---------------------------------------------------
I think it might be a good idea to change this in CVS, as this is the default
location of vpopmail when installed from source, and '/home/vpopmail/' doesn't
work. You be the judge.
The only other change I had to make is described in the following unified
diff of tmda-ofmipd:
---------------------------------------------------
--- tmda-ofmipd Tue Jan 21 00:36:24 2003
+++ /usr/local/tmda/bin/tmda-ofmipd Tue Jan 21 13:34:13 2003
@@ -552,7 +552,8 @@
self.__auth_username = None
self.__auth_password = None
self.__auth_sasl = None
- self.__sasl_types = ['login', 'cram-md5', 'plain']
+# self.__sasl_types = ['login', 'cram-md5', 'plain']
+ self.__sasl_types = ['login', 'plain']
self.__auth_cram_md5_ticket = '<%s.%s@%s>' % (random.randrange(10000),
int(time.time()), FQDN)
self.__server = server
---------------------------------------------------
I had to make this change because even though CRAM-MD5 doesn't work for IMAP
auth, and I'm using IMAP auth, tmda-ofmipd is still publishing CRAM-MD5
capability to incoming clients.
Clients like 'Pegasus Mail' don't offer their users a choice of auth methods.
They simply choose CRAM-MD5 if it's available, and LOGIN if it isn't.
Therefore, I had to prevent tmda-ofmipd's publishing of CRAM-MD5 capabilities.
Also, as mentioned in my previous email, I can't get IP-based virtual domain
authentication to work via IMAP proxy yet.
I'm extremely happy to have a working virtual domain setup though! Thanks Tim!
Jesse
On Tuesday 21 January 2003 14:13, Jesse Guardiani wrote:
> After preliminary tests on my server, it appears that vpopmail Virtual
> Domain support is working well! Woo! Congrats for some excellent code, Tim!
>
> However, I was under the impression that IP-based domain support for
> IMAP and POP3 proxy was working, and I couldn't get it to work.
>
> Also, I thought that the -R option should disable CRAM-MD5 now. However,
> ofmipd is still publishing CRAM-MD5 support on -R.
>
> I'll get some code and error messages in a bit. But I've got to fix my
> broken supervise script first.
>
> Jesse
>
> On Tuesday 21 January 2003 00:56, Tim Legant wrote:
> > I've checked into CVS what I would consider alpha-level support for
> > qmail's virtual domains in tmda-ofmipd. Both VPopMail and VMailMgr
> > are supported. How that support works is rather different depending
> > on the particular virtual domain add-on you use, so I've also checked
> > in a, for now, minimal HOWTO. It should be enough to get you up and
> > running. I plan on editing and expanding it in the future.
> >
> > There are still virtual domain issues with tmda-filter and
> > tmda-pending that need to be addressed, but tmda-ofmipd should work at
> > this point. There is also a minor bug I discovered in the
> > checkpassword-style authentication in conjunction with VMailMgr's
> > vcheckpw program. I intend to address that as well.
> >
> > If you are running one of the virtual domain add-ons and are willing
> > to test CVS code, your feedback would be appreciated. Please address
> > any questions and any bug reports to the tmda-workers list.
> >
> >
> > Thanks,
> >
> > Tim
> > _________________________________________________
> > tmda-workers mailing list ([EMAIL PROTECTED])
> > http://tmda.net/lists/listinfo/tmda-workers
--
Jesse Guardiani, Systems Administrator
WingNET Internet Services,
P.O. Box 2605 // Cleveland, TN 37320-2605
423-559-LINK (v) 423-559-5145 (f)
http://www.wingnet.net
We are actively looking for companies that do a lot of long
distance faxing and want to cut their long distance bill by
up to 50%. Contact [EMAIL PROTECTED] for more info.
_________________________________________________
tmda-workers mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-workers