-   Linux - Software (
-   -   Postfix relay (

waelaltaqi 04-02-2007 04:47 PM

Postfix relay
I'm trying to setup postfix MTA which relays mail to another MTA i have on my local network. i installed postfix no problem and i can telnet into it and send e-mails. Below is a simple drawing of my net:

Qmail/SqurielMail--<-Relay--< PostFix/MailScanner --<--IPCOP Firewall
Postfix: Qmail:

i setup smtp port forwarder to
I have the following config in /etc/postfix/ :

        myhostname = mailgw.mydomain
                mydomain =
                myorgin = $mydomain
                inet_interfaces = all
                mydestination = $myhostname, localhost.$mydomain $mydomain
                mynetwork_style = host
                transport_maps = hash:/etc/postfix/transport

i appended this line to /etc/postfix/trasport:

relay_domain smtp:
then i did:

postmap /etc/postfix/transport
postfix stop
postfix start

then i tried to send a test message from Gmail to my and it's not going through. Here is what i get from /var/log/maillog:


Apr  2 13:54:22 mailgw postfix/smtpd[21060]: connect from[]
Apr  2 13:54:22 mailgw postfix/smtpd[21060]: D7FF14EDD3:[]
Apr  2 13:54:23 mailgw postfix/cleanup[21063]: D7FF14EDD3: hold: header Received: from ( [])??by with ESMTP id D7FF14EDD3??for <>; Mon,  2 Apr 2007 13:54:22 from[]; from=<> to=<> proto=ESMTP helo=<>
Apr  2 13:54:23 mailgw postfix/cleanup[21063]: D7FF14EDD3: message-id=<>
Apr  2 13:54:53 mailgw postfix/smtpd[21060]: disconnect from[]

i never recieved test e-mails. From the log above, it seems that postfix is not relaying. i don't know if there is another log i should look at for errors. Any ideas?

All times are GMT -5. The time now is 07:45 AM.