waelaltaqi |
04-02-2007 03: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:
Code:
Qmail/SqurielMail--<-Relay--< PostFix/MailScanner --<--IPCOP Firewall
Postfix: 192.168.0.201. Qmail: 192.168.0.200.
i setup smtp port forwarder to 192.168.0.201.
I have the following config in /etc/postfix/main.cf :
Code:
myhostname = mailgw.mydomain
mydomain = mydomain.com
myorgin = $mydomain
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain $mydomain
mynetwork_style = host
relay_domains= relay_domain.com
transport_maps = hash:/etc/postfix/transport
i appended this line to /etc/postfix/trasport:
Code:
relay_domain smtp:192.168.0.200
then i did:
Code:
postmap /etc/postfix/transport
postfix stop
postfix start
then i tried to send a test message from Gmail to my user@relay_domain.com and it's not going through. Here is what i get from /var/log/maillog:
Code:
Apr 2 13:54:22 mailgw postfix/smtpd[21060]: connect from ug-out-1314.google.com[66.249.92.173]
Apr 2 13:54:22 mailgw postfix/smtpd[21060]: D7FF14EDD3: client=ug-out-1314.google.com[66.249.92.173]
Apr 2 13:54:23 mailgw postfix/cleanup[21063]: D7FF14EDD3: hold: header Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173])??by mailgw.mydomain.com(Postfix) with ESMTP id D7FF14EDD3??for <wael.altaqi@waelaltaqi.com>; Mon, 2 Apr 2007 13:54:22 from ug-out-1314.google.com[66.249.92.173]; from=<wael.altaqi@gmail.com> to=<wael.altaqi@mydomain.com> proto=ESMTP helo=<ug-out-1314.google.com>
Apr 2 13:54:23 mailgw postfix/cleanup[21063]: D7FF14EDD3: message-id=<791ee93e0704021342mba87e35re5616b2eee715b6f@mail.gmail.com>
Apr 2 13:54:53 mailgw postfix/smtpd[21060]: disconnect from ug-out-1314.google.com[66.249.92.173]
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?
|