LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-02-2007, 03:47 PM   #1
waelaltaqi
Member
 
Registered: Sep 2005
Location: USA, TN
Distribution: CentOS & Ubuntu for Desktop
Posts: 454

Rep: Reputation: 31
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?

Last edited by waelaltaqi; 04-02-2007 at 03:51 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
postfix and relay shafey Linux - Networking 2 03-04-2006 01:22 AM
postfix and relay shafey Linux - Networking 3 03-02-2006 10:50 AM
Postfix as a mail relay (getting relay access denied) hypexr Linux - Software 3 09-13-2005 07:15 PM
Postfix Relay eeades Linux - Software 0 02-01-2005 03:44 PM
relay postfix SkYzOpReNiCk Linux - Networking 5 01-22-2002 10:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration