Ok... Maybe I don't understand qmail as much as I thought or I can't find the info in the man pages. My understanding is if the domain is listed in virtualdomains, then qmail-send treats this delivery as local and will not read smtproutes. This is where I am not clear and would love to be corrected. I don't want delivery to happen on my public facing mail server, but I would like to run chkuser there to prevent bad mail from even coming into my mail system.
I guess I understand everything you have said except for the relation between smtproutes, virtualdomains and how qmail process this flow. If anyone can clear this up or slap me upside the head with an obvious answer that I am missing, that would be great. Thanks ---------- Brian Lanier Network Engineer Quexion, LLC 858.573.2323 x2 4858 Mercury St., Suite 200, San Diego, CA 92111 EnterpriseMail - complete business email from Quexion No more spam. No more viruses. www.quexion.com >-----Original Message----- >From: tonix (Antonio Nati) [mailto:[EMAIL PROTECTED] >Sent: Friday, January 14, 2005 1:17 AM >To: email@example.com >Subject: Re: [vchkpw] chkuser 2.0 and vpopmail w/mysql > > >I feel these two statements are not in opposition. > >chkuser checks recipients only for domains who are in virtualdomains. > >When a domain is already inside virtualdomains, for a new user you may >simply add a new line with MySQL vpopmail database, and the user will be >added automatically as it is used the first time (the first incoming >message). > >In this way, using a replica MySQL on a front-end qmail system, it will use >chkuser for all domains that are listed in virtualdomains and have all >users within MySQL. So it looks simply like you have to add your domains to >virtualdomains, and put them also in smtproutes. > >Tonino > >At 21.00 12/01/2005, you wrote: >>Quick question that I can't seem to sort out myself. I see people are >doing >>the same thing based on the archives but I can't seem to find a definitive >>answer. >> >>Using a smart host relay to do initial mail checking running qmail. All my >>virtual domains are setup up correctly but not listed in the >virtualdomains >>file. Instead we are using the smtproutes file to pass on to the rest of >our >>mail system. This all works great. Vpopmail 5.4.7 is setup using MySQL >with >>a replicated read only host on the smart relay. I noticed in the archives >>that people have used the chkuser patch to qmail in this situation with >>great success. My question is this: In the FAQ at >>http://www.interazioni.it/opensource/chkuser/documentation/faq/general.htm >l >>it states that chkuser will do the checking only if the domain exists in >>rcpthosts(or morercpthosts) AND virtualdomains. The archives seem to >suggest >>that if you are using MySQL, you don't need the entries in virtualdomains. >>Am I misreading this? What would be the correct setup in this case >assuming >>checking on all domains? Any clarification would be great. Thanks >> >>Brian Lanier >