Postfix to MS Server 2003 - Mail Server

2 posts / 0 new
Last post
#1 Tue, 09/11/2007 - 09:37
webinger

Postfix to MS Server 2003 - Mail Server

Hello Virtualmin Users! I want to send mails from a, lets say xyz.com domain, from my debian dedicated server to a microsoft 2003 mail server which has a static ip-adress. How can i prevent my postfix from checking the virtual alias table (User unknown in virtual alias table) of my Debian server and send the mails for xyz.com directly to my MS Server? thanks in advance for any help ;)

Wed, 09/12/2007 - 04:07
webinger

OK i have solved it myself ;)
this is what you need for something like that.
main.cf:
mydestination = $mydomain, localhost, localhost.$mydomain, static-IP-adress

mynetworks = 127.0.0.0/8, static-IP-adress/32

relay_domains =xyz.com,xyz2.com, ... (mail-domains for my Win2k3)

transport_maps = hash:/etc/postfix/transport
(the file transport contains: xyz.com smtp:[static-ip-adress] -> save transport and enter postmap transport in the right directory (generates transport.db)

relay_recipient_maps = hash:/etc/postfix/relay_recipients

relay_recipients contains
mailuser1@xyz.com OK
mailuser2@xyz.com OK
then enter: postmap transport (generates relay_recipients.db)

then u have to delete the virtual domain entries in your virtual domain mapping file for xyz.com (if your created them) otherwise you get (User unknown in virtual alias table) ;)

hey Joe Maybe this would be a nice feature for virtualmin pro ^^

Topic locked