On Apr 30, 2010 10:58am, Christian Tardif <christian.tardif@servinfo.ca> wrote:<br />> <br />> <br />> <br />>   <br />> <br />> <br />> <br />>   I actually followed the Wiki that is why I added these entries to the virtual table as you described. And I do receive emails for both domains correctly. The problem is that when I try to send an email using my normal username and the domain that I added to the virtual table it is rejected.<br />> <br />>   <br />> <br />> <br />> <br />> Oh! I see. Someone may correct me, but I think you can't send an email<br />> from a domain which isn't in the list of accepted domains. And the<br />> creation of Domain Aliases doesn't set the somewhat fake domain as a<br />> list of accepted domains and therefore, mails from that domain are<br />> rejected. To my knowledge, this would lead to an open relay situation.<br />> <br />> <br />> <br />> What you may try is:<br />> <br />> <br />> <br />> 1) put this somewhere in the main.cf.template file:<br />> <br />> <br />> <br />>         relay_domains = hash:/kolab/etc/postfix/relay_domains<br />> <br />> <br />> <br />> 2) Create the /kolab/etc/postfix/relay_domains file<br />> <br />> <br />> <br />> 3) Put this single line:<br />> <br />> <br />> <br />>         domain2.com OK<br />> <br />> <br />> <br />> 4) Create the needed db file with the command:<br />> <br />> <br />> <br />>         /kolab/sbin/postmap /kolab/etc/postfix/relay_domains<br />> <br />> <br />> <br />> 4) Reload the new config with:<br />> <br />> <br />> <br />>         /kolab/sbin/kolabconf<br />> <br />> <br />> <br />> Then, postfix should allow you to relay the fake domain2.com domain.<br />> But you still won't be allowed, though, to authenticate with this<br />> domain2.com to send mail, since the domain doesn't really exist in the<br />> kolab config.<br />> <br />> <br />> <br />> -- <br />> <br />> <br />>   <br />> <br />> Christian...<br />> <br /><br />Sounds like you probably know more about how this stuff works than I, but I was under the impression that, by default, the server will only ACCEPT mail with the TO being for any of the domains in the 'domains' section of the web-admin...<br /><br />And, it would seem to be default that you can't authenticate as user1@domain.com and send mail saying you're user2@domain.com...  But, I really don't know how it works to send mail as if it's from user1@domain2.com...<br /><br />We don't use that in our setup, I just have an alias for each user for domain2.com, maybe I don't need to have that?