Frog's Technical Page

Aliasing with PostFix

(Courtesy cmeclax)


Step1:

First, you got to configure PostFix to make it understand what aliasing is:

Grab your favorite text editor and modify /etc/postfix/main.cf
You got to add the line:

recipient_canonical_maps = hash:/etc/postfix/recipient_canonical

Create an empty file /etc/postfix/recipient_canonical

Reload Postfix (for example: on Mandrake): /etc/rc.d/init.d/postfix reload

That is a one-time chore.


Step2:

Every time you want to add/change/delete aliases, you will have to do the following:

Grab you favorite text editor and modify /etc/postfix/recipient_canonical
You got to add/change/delete lines like:

FrogRemailer@bigfoot.com FrogRemailer-5@bigfoot.com

(That is a tab between the two addresses)

Type: postmap recipient_canonical

New aliasing will take effect shortly after.


Back to Tek's Index or Root Index or Root Main Pages