Defcon1-Header
Tool-BarfreeBSD ArticlesSearch Our SiteHOMEfreeBSD LinksContribute to FreeBSD HelpFreeBSD FilesFreeBSD Script Corner

Howto create virtual user-domain setups in the same fashion 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

© 1997 - 20013 Defcon1, www.defcon1.org , Copyrights for all materials on this web site are held by the individual authors, artists, photographers or creators. Materials may not be reproduced or otherwise distributed without permission of www.defcon1.org and the content's original author.

Defcon1-Header2
Tool-Bar-2Defcon1  Webmail