Howto create virtual user-domain setups in the same fashion sendmail does it with its virtusertable.
OK.. now i cant even beging to think how many times i've seen this question asked around, either on IRC, message boards or any where else people could
possibly post a question about something.. so here it is.. easy as it gets easy as 1, 2, 3.
FIRST,
create yourself a file in /etc/postfix called virtual
vi /etc/postfix/virtual
how this works is like this in the same type of way virtusertable did it with sendmail this follows suite only with one addition mostly.. below here is an example between the --cuts-- how it would look.
------------------------------- cut ---------------------------------
domain.com anything
something@domain.com physical_user_on_box
something2@domain.com some_other_user_on_box
---------------------------------------------------------------------
anything in this just means anything it does nothing but should be
there i suppose.. now something@ is in regaurds to say domain.com is your clients email and they want 2 emails to go to the same user persay, support@ and info@ so ..
info@client-domain.com your_clients_username support@client-domain.com your_clients_username
now of course.. your_clients_username is there account they have on your box they use to check there email, so therefore now info@ and support@
will forward to the one user account, just follow suite for additional domains.
once you have this file created, do..
postmap /etc/mail/virtual
this gives you your *.db file..
before you reload postfix add this to your postfix main.cf
virtual_maps = hash:/etc/postfix/virtual
then
postfix reload
Done
Written by: Didjital One (didjital1@ePIMP.com )
|