On 06/22/2013 04:27 PM, Dan McAllister wrote:
For the sake of those following this thread, I thought I would share how
I solved this problem:

What I wanted:
   - SOME of my hosted domains want to use a 3rd party SPAM filter for
both inbound AND outbound mail
   - the 3rd party filter is expensive (well, far more expensive than my
normal fees), so not ALL clients want the added filtering
   - QMail apparently has no way to redirect only SOME outbound messages
to a smart host (filter)

So the problem was simple: find a way to route only some domains to the
SPAM filter

How I got there:
  - Since the machine that hosts email has 2 available public IPs & is
capable of running a VM, I created a 2nd server (as a VM guest)
  - The 2nd QMail server is set to use the smarthost filter... that is:
     - inbound SMTP connections are allowed ONLY from one of the
smarthost servers (tcprules)
     - outbound SMTP connections go only to the smarthost filter
(smtproutes)
     - maildirs (/home/vpopmail/domains) are NFS mounted between servers
so that only the MAIN server (VM host) has actual mail storage
     - vpopmail on the premium mail server (guest os) connects to the
MySQL server on the main server (host os)
     - users for the premium service connect to the premium server for
outbound mail, but the "standard" server for POP/IMAP

That was the best I could think of... anyone with ideas for a better
way, I'm open to suggestions!

Dan McAllister
QMT DNS/Mirror Admin


---------------------------------------------------------------------

That looks like a very suitable solution, Dan.

I'm curious to know which virtualization platform you implemented on your QMT host.

I would caution others who may attempt this, that it's generally best to have the virtualization host dedicated to running VMs, and not mix in other services (such as an instance of QMT in this case). In this case, it's expedient given the situation. I believe Dan would be wise to consider creating a 2nd VM for taking on original Main server's role, as well as a 3rd VM for providing the mail store via NFS to the other 2 VMs.

As always with Linux, there's more than one way to "skin a cat".

Nice solution, Dan.

--
-Eric 'shubes'


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to