On 06/06/17 17:44, Wietse Venema wrote: > Daniel:
Hi, Wietse. What an honor to receive this response from you :) > Checking application/pgp-signature: FAILURE Here the signature is validated correctly with Thunderbird and Mutt. Maybe the client does not have the public key (ID 14E61D37) and so was not able to validate the signature? > -- Start of PGP signed section. >> Hi again. >> >> On 06/06/17 12:11, Daniel Bareiro wrote: >> >>> 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: >>> >>> ---------------------------------------------------------------- >>> j...@domain.com john >>> ---------------------------------------------------------------- >>> >>> John is a SASL user (fortunately I was able to get this to work. I will >>> soon respond to my other thread indicating what the problem was). >>> 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 <nat...@domain.com>: Recipient address rejected: User unknown in >>> virtual alias table. >>> Please check the message recipient "nat...@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. >> I've tried something like this: >> >> ---------------------------------------------------------------- >> nat...@domain.com smtp:mail1.domain.com:25 >> ---------------------------------------------------------------- >> >> and adding: >> >> ---------------------------------------------------------------- >> transport_maps = hash:/etc/postfix/transport >> ---------------------------------------------------------------- >> >> But I'm still getting the "Recipient address rejected: User unknown in >> virtual alias table" message. > Instead of removing the user from virtual_alias_maps, replace it with > a 1:1 mapping: > > nat...@domain.com nat...@domain.com I was able to resolve it by commenting the "virtual_alias_domains" line on /etc/postfix/main.cf. On that way users who are not in /etc/postfix/virtual are sent via relayhost. What do you think? Anyway maybe your solution is better because in the end all users will have to be in /etc/postfix/virtual :) Thank you for your time and interest. Much appreciated. Kind regards, Daniel
signature.asc
Description: OpenPGP digital signature