OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: Relay Question
From: Bagaglio Alessandro (alexbsemafor.ch)
Date: Fri Apr 28 2000 - 02:27:25 CDT


Hi everybody

I have a Problem which Postfix Version 19991231p105-0 on SuSE Linux 6.4.

I use Postfix on a Bastion Host, which is the main MX Server for my
Domain (eg. mydom.ch), now i want to set up Postfix as follows: If a
mail for the domain mydom.ch arrives, i want to relay it to a specified
Host (eg smtp-gw.mydom.ch) via SMTP, all outgoing mails can be delivered
directly to the SMTP Servers in the Internet.

on the relay Host (smtp-gw.mydom.ch) a version of Sendmail is running.

I have tried to configure my Postfix with the transport table:

in main.cf
        relay_domains =
        transport_maps = hash:/etc/postfix/transport
        default_transport = smtp
        mydestination = localhost.mydom.ch, mydom.ch

in /etc/postfix/transport:
        mydom.ch smtp: smtp-gw.mydom.ch
        .mydom.ch smtp: smtp-gw.mydom.ch
        localhost.mydom.ch local:

i make postmap /etc/postfix/transport and postfix reload

Now if i start postfix, sending mail to the internet works. But if
someone send a mail to usermydom.ch i get the following error message:

<usermydom.ch>: Name service error for doamin smtp-gw.mydom.ch: host
not found

and the MAILER-DAEMONmydom.ch (on the Bastion Host) send a mail back to
the sender, whith this error message.

If i make a nslookup of smtp-gw.mydom.ch on the bastion host, i recieve
the valid IP Adress of smtp-gw.mydom.ch

What did i wrong???

thx for any hints or ideas.

greets
alex