Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #181844 > unrolled thread

Delivery to accounts of the same domain on two different servers

Started byDaniel <daniel-listas@gmx.net>
First post2017-06-06 20:50 +0200
Last post2017-06-06 20:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.debian.user


Contents

  Delivery to accounts of the same domain on two different servers Daniel <daniel-listas@gmx.net> - 2017-06-06 20:50 +0200

#181844 — Delivery to accounts of the same domain on two different servers

FromDaniel <daniel-listas@gmx.net>
Date2017-06-06 20:50 +0200
SubjectDelivery to accounts of the same domain on two different servers
Message-ID<tPrIe-45h-29@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

Hi all!

I am gradually migrating the accounts of a server (let's say
mail1.domain.com) to another server (let's say mail2.domain.com).

In mail2.domain.com I'm using something like this:

----------------------------------------------------------------
virtual_alias_domains = domain.com
virtual_alias_maps = hash:/etc/postfix/virtual
----------------------------------------------------------------

Where /etc/postfix/virtual has something like this:

----------------------------------------------------------------
john@domain.com       john
----------------------------------------------------------------

John is a SASL user. Delivery on this way is working. The current MX is
mail1.domain.com and mail2.domain.com is receiving emails via fetchmail.

The issue arises when a mailbox migrated to be used from
mail2.domain.com wants to send an email to a non-migrated mailbox. I get
something like this:

----------------------------------------------------------------
An error occurred while sending mail. The mail server responded:
5.1.1 <nataly@domain.com>: Recipient address rejected: User unknown in
virtual alias table.
 Please check the message recipient "nataly@domain.com" and try again.
----------------------------------------------------------------

Is there a way to get Postfix at mail2.domain.com knows that the
mailboxes of domain.com for non-migrated accounts are at
mail1.domain.com? Maybe using a transport table?


Thanks in advance for your time.

Kind regards,
Daniel

[toc] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web