Postfix to MS Server 2003 - Mail Server

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

Postfix to MS Server 2003 - Mail Server

Hello Virtualmin Users! I want to send mails from a, lets say 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 directly to my MS Server? thanks in advance for any help ;)

Wed, 09/12/2007 - 04:07

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

mynetworks =, static-IP-adress/32

relay_domains,, ... (mail-domains for my Win2k3)

transport_maps = hash:/etc/postfix/transport
(the file transport contains: 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 OK 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 (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