Hello,

I need some help with the following configuration setup:

- I have 4 domains, with several unix-account users. the uses/domains are a 
complete mix.
- myhostname: blabla.xs4all.nl =>this is my ISP IP and so my Modem. But mail 
addressed to @xs4all should not be delivered to the local machine, 
 because I am not that provider. 

For both reasons I did not setup a primary domain to deliver email, but only 4 
virtual ones.
Because else all unix users should have a primary domain email address, which 
is not the case.

Ok let me give you some parts of my config which should be important. And 
hopefully you can give
me feedback on how I did this. Good, bad, Better do it in an other way etc.

ISP hostname: blabla.xs4all.nl   (can't change this ofcourse)
My Linux hostname: davinci.insidedomain.lan     # points in /etc/hosts to 
127.0.0.1

main.cf

myhostname = blabla.xs4all.nl          #(because of HELO, and the FQDN)
myorigin = davinci.insidedomain.lan            # to deliver to local
mydestination = localhost, davinci.insidedomain.lan   # because I don't want to 
deliver to @xs4all.nl, I don't use $myhostname etc etc

smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_auth_enable = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, 
reject_unauth_destination
broken_sasl_auth_clients = yes

#virtual domains
virtual_alias_domains = domain1.com domain2.com domain3.com domain4.com    # 
well just the 4 domains
virtual_alias_maps = hash:/etc/postfix/virtual


And so virtual contains the mappings form email address to unix user account

Everything seems to work fine now. Mail comes in and is deliverd to the local 
box, for example: 
        to=<jo...@davinci.insidedomain.lan>, orig_to=<jo...@domain2.com>, 
relay=local, ...

But I am not sure if this is the way it should be done.
        
Thanks!

Regards,
Johan


Reply via email to