Hello everyone,
We are doing some testing involving migrating domains from Qmail(pop/smtp) to Exchange. Our Qmail server runs NetQmail 1.05, Simscan 1.1, Vpopmail 5.4.13, ClamAV 0.92.1, SpamAssassin 3.1.7.
We wish to be able to stop receipt of mail by the Qmail server (MX1) for a specific virtual domain, preferably forcing the mail to queue on MX 2.
I have been testing things using a test domain, and am aware that when using Vpopmail, changes to /var/qmail/control/virtualdomains and /var/qmail/control/morercpthosts will not make a difference provided that the Vpopmail Mail folder exists for the domain. (delivery order is local first)
I moved this folder, but this only resulted in delivery to the domain being delayed, until the folder was restored – the mail was still receipted into the Qmail queue on MX1
I know I’m missing something here, there’s probably something really simple I should be doing, but I’ve not been able to uncover it from google searching and my own efforts haven’t produced the required result. I shall restate what I’m trying to do here:
We need to disable receipt of E-Mail for a specific virtual domain we host mail for – preferably in a way that will force the mail to queue on our other qmail server, MX 2, and we need to be able to re-enable receipt of E-Mail at will. Please, how would we go about this properly?
If anyone could supply some useful advice, it would be greatly appreciated,
Thanks in Advance, and Cheers,
Michael Hutchinson
Manux Solutions Limited
On Thursday, August 14 at 10:24 AM, quoth Michael Hutchinson:
> We wish to be able to stop receipt of mail by the Qmail server (MX1)
> for a specific virtual domain, preferably forcing the mail to queue
> on MX 2.
So remove the domain from /var/qmail/control/rcpthosts (or
morercpthosts, if you have that many, but remember you'll have to
rebuild morercpthosts.cdb).
> I have been testing things using a test domain, and am aware that
> when using Vpopmail, changes to /var/qmail/control/virtualdomains
> and /var/qmail/control/morercpthosts will not make a difference
> provided that the Vpopmail Mail folder exists for the domain.
> (delivery order is local first)
The existence of the vpopmail mail folder is irrelevant, what matters
is whether the domain is listed in /var/qmail/control/rcpthosts or
/var/qmail/control/morercpthosts.
> and we need to be able to re-enable receipt of E-Mail at will.
> Please, how would we go about this properly?
When you need to re-enable receipt of that email, you can just add it
back to the rcpthosts file.
A word of warning, though: doing this will cause qmail to REFUSE the
mail (it will say to the sender: "I'm not allowed to receive mail for
this domain! do not try again!"), not merely fail to accept the mail.
There's a difference. The difference is that the sender WILL NOT try
again. The only way to reliably ensure that the sender tries the next
domain in the MX list is to refuse to answer, which you obviously
cannot do on a per-domain basis (because you have no way of knowing
what the recipient domain will be at connection time).
If you're testing whether this domain's backup MX will queue messages,
the right way to do it is to remove your primary server from the DNS
records (and wait).
~Kyle
- --
Unthinking respect for authority is the greatest enemy of truth.
-- Albert Einstein
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
iEYEARECAAYFAkijbdUACgkQBkIOoMqOI14rLQCfRVAyyHkRrrOICxcYaXs8L+bC
ZxcAoKHafIAZQyRwr1XlvOj9Y62K/iWo
=mEXg
-----END PGP SIGNATURE-----
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-...@muc.de