Managing relocated users
Contents
vmm also provides a relocated table for Postfix. This table provides new contact information for users which no longer exists in the form of an e-mail address. The information is used in "user has moved to new_location" bounce messages.
Postfix will reject e-mails for recipients if their address could be found in the relocated table. See the following excerpt from the mail log:
Dec 29 05:18:04 hostname postfix/smtpd[21456]: connect from host.dom.tld[10.1.2.3] Dec 29 05:18:04 hostname postfix/smtpd[21456]: NOQUEUE: reject: RCPT from host.dom.tld[10.1.2.3]: 550 5.1.6 <b.user@example.com>: Recipient address rejected: User has moved to b-user@somewhere-else.tld; from=<sender@dom.tld> to=<b.user@example.com> proto=ESMTP helo=<host.dom.tld> Dec 29 05:18:05 hostname postfix/smtpd[21456]: disconnect from host.dom.tld[10.1.2.3]
Add pgsql:/etc/postfix/pgsql-relocated_maps.cf to your relocated_maps in Postfix' main.cf in order to use this optional lookup table.
Creating a relocated user
Syntax:
vmm relocatedadd old_address new_address
vmm ra old_address new_address
Use this subcommand to create an new relocated user.
Example:
hostname ~ # vmm relocatedadd b.user@example.com b-user@somewhere-else.tld hostname ~ #
Relocated information
Syntax:
vmm relocatedinfo old_address
vmm ri old_address
This subcommand shows the new address of the relocated user with old_address.
Example:
hostname ~ # vmm relocatedinfo b.user@example.com
Relocated information
---------------------
User »b.user@example.com« has moved to »b-user@somewhere-else.tld«
hostname ~ #
Deleting a relocated user
Syntax:
vmm relocateddelete old_address
vmm rd old_address
Use this subcommand in order to delete the relocated user with the address old_address.
Example:
hostname ~ # vmm relocateddelete b.user@example.com hostname ~ #
