On Sun, 8 Jul 2012 09:07:14 -0400 (EDT)
Wietse Venema <wie...@porcupine.org> wrote:

> Christopher J. Ruwe:
> > I am currently fighting against a postfix-dovecot installation,
> > wich I have taken from another functional server and adapted IPs
> > and names. The new installation is behaving differently in so much
> > as the new one delivers locally where the old one delivers using
> > dovecot and virtual mailboxes.
> 
> Instead of struggling with a broken modified configuration,
> 
> 1) Copy the UNMODIFIED WORKING Postfix configuration files to the
> new machine.
> 
>     # rsync -av old:/etc/postfix /etc
> 
> 2) Copy the UNMODIFIED WORKING Postgres database (and configuration)
> to the new machine.
> 
> 3) Execute (as root): "postfix upgrade-configuration".
> 
> 4) Report what does not work.
> 
> Then we can troubleshoot the configuration that was known to work,
> and we won't have to worry about the things that you changed while
> trying to fix things.
> 
>       Wietse

Thank you for your fast answer ( and that on a Sunday!).

I have followed your suggestion - not to the letter, but in principle,
as I migrate across archs and hosts.

First, I impersonated mail.cruwe.de setting hostname and /etc/hosts.

Then, I sql-dumped and reimported the pgdb; then rsynced the
postfix-configs. I changed the configs where IPs were concerned and
checked delivery for c...@mail.cruwe.de - that worked.

I then added a test@muellerbackwaren.local account, which I could have
mail delivered to via dovecot and virtual maps. Worked too.

Pruning all mail.cruwe.de-entries from the DB and switching the
impersonification back to the correct mail.muellerbackwaren.local did no
harm, dovecot continued to deliver.

Step by step, I then tried to adapt main.cf to the new server and found
the culprit in mydomain = cruwe.de. Changig mydomain =
muellerbackwaren.local leads to

Jul  8 22:08:42 mail postfix/smtp[1878]: B2BB713E4: 
to=<cjr@mail.muellerbackwaren.local>, relay=none, delay=0.14, 
delays=0.02/0.08/0.04/0, dsn=5.4.4, status=bounced (Host or domain name not 
found. Name service error for name=mail.muellerbackwaren.local type=A: Host not 
found)

When I add muellerbackwaren.local to /etc/hosts (it has only
mail.muellerbackwaren.local at this point), I get instead


Jul  8 22:09:28 mail postfix/local[1999]: 144761410: 
to=<test@muellerbackwaren.local>, relay=local, delay=0.97, 
delays=0.54/0.03/0/0.4, dsn=5.1.1, status=bounced (unknown user: "test")

That is were I was before.  How can I, without having a named to
nameserve proper domains, change main.cf  to reflect that I am, in fact,
catering mail for muellerbackwaren.local as $mydomain?

Anyways, thanks for that slight ruffle of yours in calling me to
discipline ... at least I now know how I have come to that erronous
state. 

Cheers,
-- 
Christopher
TZ: GMT + 2h

Attachment: signature.asc
Description: PGP signature

Reply via email to