Mailing List Archive

Relaying all mail thru Qmail to new server
Hi all.

We have old hardware (Qmail & vpopmail) that is hosting about 2000
boxes which we are moving to new server. There sure are some customers
that has their own dns servers pointing MX to this old server, so we
need to relay all incoming mails to new server after switch-over.

Is this correct way to do it with Qmail ? :

Add file /var/qmail/control/smtproutes with server name
:our.newserver.com

Remove all domains from /var/qmail/control/virtualdomains

svc -d /service/smtpd
svc -u /service/smtpd

Then follow logs what email is still coming in. We have seperate
'front-end' servers which filters spam and transport it to mailserver,
so don't need to wait for dns TTL's to refresh.

If im missing something here or if there are smarter ways to do this,
please share ideas :)

Regards,
Kimmo Hedman
Re: Relaying all mail thru Qmail to new server [ In reply to ]
Thus said Kimmo Hedman on Tue, 05 Nov 2013 17:31:06 +0200:

> svc -d /service/smtpd
> svc -u /service/smtpd

This step isn't necessary. All that is necessary is:

svc -h /service/qmail-send

(or whatever your equivalent is for qmail-send).

Other than that, it seems like a sensible approach. Basically you'll
leave rcpthosts intact indicating that your qmail server will still
accept RCPTs for those domains that point to it. Then because there are
no locals/virtualdomains for those domains they will simply be relayed
to their final destination, which you have redirected to the new server.

Andy
--
TAI64 timestamp: 400000005279ad2e
Re: Relaying all mail thru Qmail to new server [ In reply to ]
Lainaus Andy Bradford
<amb-sendok-1386297870.keokmhoclhdnfjdgdbid@bradfords.org>:

>
> Other than that, it seems like a sensible approach. Basically you'll
> leave rcpthosts intact indicating that your qmail server will still
> accept RCPTs for those domains that point to it. Then because there are
> no locals/virtualdomains for those domains they will simply be relayed
> to their final destination, which you have redirected to the new server.
>
> Andy
> --
> TAI64 timestamp: 400000005279ad2e

This was installed with mysql support but i think it is just for
virtualusers, because all domains are in rcpthosts , morercpthosts and
virtualdomains and they get upgraded if you make changes via
qmailadmin. Or maybe i should buy commercial support.

mysql> desc vpopmail;
+-----------------+-----------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-----------------+-----------+------+-----+---------+-------+
| pw_name | char(32) | NO | PRI | | |
| pw_domain | char(64) | NO | PRI | | |
| pw_passwd | char(40) | YES | | NULL | |
| pw_uid | int(11) | YES | | NULL | |
| pw_gid | int(11) | YES | | NULL | |
| pw_gecos | char(48) | YES | | NULL | |
| pw_dir | char(160) | YES | | NULL | |
| pw_shell | char(20) | YES | | NULL | |
| pw_clear_passwd | char(16) | YES | | NULL | |
+-----------------+-----------+------+-----+---------+-------+

/Kimmo hedman
Re: Relaying all mail thru Qmail to new server [ In reply to ]
Thus said Kimmo Hedman on Wed, 06 Nov 2013 14:30:07 +0200:

> This was installed with mysql support but i think it is just for
> virtualusers, because all domains are in rcpthosts , morercpthosts
> and virtualdomains and they get upgraded if you make changes via
> qmailadmin.

Unless you're using a insensibly modified qmail, the only thing that is
relevant for delivering emails in qmail are qmail configuration files.
vpopmail database information only pertains to accounts that receive
email, now how qmail decides to route the messages.

Andy
--
TAI64 timestamp: 40000000527a6144