Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 04-02-2007, 04:47 PM   #1
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:
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?

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 02:22 AM
postfix and relay shafey Linux - Networking 3 03-02-2006 11:50 AM
Postfix as a mail relay (getting relay access denied) hypexr Linux - Software 3 09-13-2005 08:15 PM
Postfix Relay eeades Linux - Software 0 02-01-2005 04:44 PM
relay postfix SkYzOpReNiCk Linux - Networking 5 01-22-2002 11:32 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:37 AM.

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