[EMAIL PROTECTED] wrote:
Greetings,
I've been trying to figure out two things for my qmail boxes this morning,
though no luck so far with googling:
1) How to block all MX servers for a domain?
I'm getting inundated with large amounts of junk mail from various
mailservers owned by a large ISP. The mail can come from any number of
servers, like:
mx1.largeISP.com
mx2.largeISP.com
some_name_mx.largeISP.com
If they use that naming scheme, you can add them to badmailfrom like this:
@largeisp.com
Or if the machine all use the same HELO, you could use:
*.largeisp.com
Or you can do it the hard way and resolve all of their IP addresses and
either block them in iptables or in your tcp.smtp file.
Is there a way I can universally block all incoming SMPT connections from
*.largeISP.com?
2) I'm setting up an additional mailserver and plan on migrating some
virtual domains from existing qmail server A to new qmail server B.
While I'll be updating MX records to make sure mail for these domains
flows to the correct MX server, there'll be a period of time where cached
DNS lookups cause mail for moved domains to still try to flow to server A.
Is there a way to get qmail on server A to forward mail for:
<any_user>@<moved_virtual_domain>.com
to
<any_user>@<moved_virual_domain>.com on server B?
In other words, forward all incoming mail for <moved_virtual_domain> on
server A to server B to avoid bounces and slow deliveries while the new
DNS info is propogating?
I've done this in the past. I did a backup of the current running
machine, then stopped it. Restored the backup onto the new machine.
Change the MX records in DNS. On the now-old-machine, delete all of the
domains, and then re-add them into the /var/qmail/control/rcpthosts
file. This will tell the now-old-machine to accept emails for those
domains, and then forward them to the new machine (whihc it knows by
doing DNS lookups).
---------------------------------------------------------------------
QmailToaster hosted by: VR Hosted <http://www.vr.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]