13,420
edits
Changes
→Setup Your MTA to Use Correct Domain
# Now, send emails messages between both of your vm2 and vm3 machines. The sender address should now read that the received mail messages came from '''root@yourdomain.org'''.
::The next step is to configure what addrssess the server will receive email for. This is done using postfix by setting the '''mydestination''' parameter (configuration variable) to include '''$mydomain''' (this is assuming you've set up '''mydomain''', '''myorigin''' , and '''inet_interfaces''' properly).
<ol><li value="4">Edit the '''/etc/postfix/main.cf''' file.</li><li>Scroll down to the line containing: '''mydestination''' and change line to the text shown below:</li></ol>