I've set up a mail server with postfix and dovecot on a virtual machine running debian 7. At first I basically made a seperate network with a host-only adapter , so host and guest were in the same network. 192.168.56.0/24 Network
Everything worked fine, I could send mails between those 2 pcs but now I want to change the setup.
I want to use a NAT adapter and port forwarding to reach the email server from other pc's aswell.192.168.153.0/24 Network
I have pretty much no idea what to do besides forwarding those ports, in the VM settings. For example what network is now part of mynetworks=
? What is my hostname? (hostname of the host or of the guestmachine?) What else do I have to change to make it working?
myhostname = test.example.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = test.example.com, localhost.example.com, localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 192.168.56.0/24 192.168.153.0/24
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
home_mailbox = Maildir/
mailbox_command =