#1  
Old 15th October 2008, 18:56
nmy nmy is offline
Junior Member
 
Join Date: May 2008
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default postfix question

hi,

sorry for my bad english but I try to explain my problem

so I have a server foo.com link to external on eth1 with a ip
on the second network card eth2 I have a static ip 192.168.1.205

with ip_forwarding enabled

the eth2 go ton a switch

and a second server bar.local is connected to the switch with a static ip too 192.168.1.20

on the bar.local server I can ping google

my question is can I install a postfix server on bar.local server for send outgoing and receive incoming mail from public network?

if yes how can I make that?
Reply With Quote
Sponsored Links
  #2  
Old 16th October 2008, 14:48
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

You'd have to configure foo.com to forward port 25 to bar.local. You can do this with iptables, e.g. like this:

Code:
iptables -A PREROUTING -t nat -p tcp -i eth1 --dport 25 -j DNAT --to 192.168.1.20:25
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 16th October 2008, 20:10
nmy nmy is offline
Junior Member
 
Join Date: May 2008
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thank you very much for your help and your tips.
Reply With Quote
  #4  
Old 17th October 2008, 11:47
nmy nmy is offline
Junior Member
 
Join Date: May 2008
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

so I have an error when I try to receive a mail from network

I can't send a mail from network to my server

so when I send a mail from gmail to my postfix server with this foo@foo.com I didn't receive the mail?

any idea?

Last edited by nmy; 17th October 2008 at 11:56.
Reply With Quote
  #5  
Old 17th October 2008, 14:16
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Any errors in the mail log?
Did you receive a bounce message in your Gmail account?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 17th October 2008, 14:40
nmy nmy is offline
Junior Member
 
Join Date: May 2008
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

The mail system

<o.opatte@mail.fovideo.be>: connect to mail.fovideo.be[85.201.16.211]:
Connection timed out



Reporting-MTA: dns; mail.nmy.be
X-Postfix-Queue-ID: C87FB42DC124
X-Postfix-Sender: rfc822; nmy@nmy.be
Arrival-Date: Fri, 17 Oct 2008 11:40:10 +0200 (CEST)

Final-Recipient: rfc822; o.opatte@mail.fovideo.be
Action: delayed
Status: 4.4.1
Diagnostic-Code: X-Postfix; connect to mail.fovideo.be[85.201.16.211]:
Connection timed out
Will-Retry-Until: Sat, 18 Oct 2008 11:40:10 +0200 (CEST)



Received: by mail.nmy.be (Postfix, from userid 2000)
id C87FB42DC124; Fri, 17 Oct 2008 11:40:10 +0200 (CEST)
Received: from DSPAM-Daemon (localhost.localdomain [127.0.0.1])
by mail.nmy.be (Postfix) with SMTP id 7AB7642DC106
for <o.opatte@mail.fovideo.be>; Fri, 17 Oct 2008 11:40:10 +0200 (CEST)
Received: from [192.168.0.100] (unknown [82.212.178.139])
(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
(No client certificate requested)
by mail.nmy.be (Postfix) with ESMTP id 1868842DC0FA
for <o.opatte@mail.fovideo.be>; Fri, 17 Oct 2008 11:40:10 +0200 (CEST)
Message-ID: <48F86007.7000904@nmy.be>
Date: Fri, 17 Oct 2008 11:51:03 +0200
From: Theys Robin <nmy@nmy.be>
User-Agent: Thunderbird 2.0.0.17 (X11/20080925)
MIME-Version: 1.0
To: o.opatte@mail.fovideo.be
Subject: [SPAM?] test
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-DSPAM-Result: Spam
X-DSPAM-Processed: Fri Oct 17 11:40:10 2008
X-DSPAM-Confidence: 0.7167
X-DSPAM-Probability: 1.0000
X-DSPAM-Signature: 48f85d7a297372039721446
X-CUSTOM-MOTD: Have a great day
Reply With Quote
  #7  
Old 18th October 2008, 16:39
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

What are the outputs of
Code:
netstat -tap
and
Code:
ifconfig
? Is eth1 really the Internet interface?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 18th October 2008, 19:00
nmy nmy is offline
Junior Member
 
Join Date: May 2008
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

heres outuput of netstat -tap

Quote:
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:704 *:* LISTEN 2645/rpc.mountd
tcp 0 0 localhost.localdom:2208 *:* LISTEN 2250/hpiod
tcp 0 0 *:nfs *:* LISTEN -
tcp 0 0 *:afpovertcp *:* LISTEN 2600/afpd
tcp 0 0 *:swat *:* LISTEN 2655/inetd
tcp 0 0 localhost.localdo:mysql *:* LISTEN 2338/mysqld
tcp 0 0 *:netbios-ssn *:* LISTEN 2664/smbd
tcp 0 0 *:49551 *:* LISTEN -
tcp 0 0 *:sunrpc *:* LISTEN 1975/portmap
tcp 0 0 *:auth *:* LISTEN 2655/inetd
tcp 0 0 192.168.1.205:domain *:* LISTEN 11123/named
tcp 0 0 user-85-201-16-2:domain *:* LISTEN 11123/named
tcp 0 0 localhost.locald:domain *:* LISTEN 11123/named
tcp 0 0 localhost.localdoma:ipp *:* LISTEN 2523/cupsd
tcp 0 0 localhost.localdoma:953 *:* LISTEN 11123/named
tcp 0 0 *:57019 *:* LISTEN 2736/rpc.statd
tcp 0 0 localhost.localdom:4700 *:* LISTEN 2602/cnid_metad
tcp 0 0 *:microsoft-ds *:* LISTEN 2664/smbd
tcp 0 0 localhost.localdo:56573 *:* LISTEN 2253/python
tcp 0 0 192.168.1.205:39256 192.168.1.231:50231 ESTABLISHED13774/zmc
tcp 0 0 192.168.1.205:48855 192.168.1.233:50233 ESTABLISHED13778/zmc
tcp 0 0 user-85-201-16-21:imaps 192.168.1.154:50823 ESTABLISHED3116/imapd
tcp 0 0 192.168.1.205:57027 192.168.1.236:50236 ESTABLISHED13784/zmc
tcp 0 0 192.168.1.205:55657 192.168.1.234:50234 ESTABLISHED13780/zmc
tcp 0 0 192.168.1.205:50806 192.168.1.232:50232 ESTABLISHED13776/zmc
tcp6 0 0 *:www *:* LISTEN 10578/apache2
tcp6 0 0 *:domain *:* LISTEN 11123/named
tcp6 0 0 *:ssh *:* LISTEN 2688/sshd
tcp6 0 0 ip6-localhost:953 *:* LISTEN 11123/named
and the ifconfig
Quote:
eth1 Link encap:Ethernet HWaddr 00:17:A4:8F:8F:64
inet addr:85.201.16.211 Bcast:85.201.23.255 Mask:255.255.248.0
inet6 addr: fe80::217:a4ff:fe8f:8f64/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2451725 errors:0 dropped:0 overruns:0 frame:0
TX packets:2185439 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1133795584 (1.0 GiB) TX bytes:432576484 (412.5 MiB)
Interrupt:169

eth2 Link encap:Ethernet HWaddr 00:0C:F6:48:83:87
inet addr:192.168.1.205 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20c:f6ff:fe48:8387/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:151203575 errors:0 dropped:0 overruns:0 frame:0
TX packets:87782426 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1377192635 (1.2 GiB) TX bytes:2532226859 (2.3 GiB)
Interrupt:225 Base address:0x5000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:4821 errors:0 dropped:0 overruns:0 frame:0
TX packets:4821 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:934750 (912.8 KiB) TX bytes:934750 (912.8 KiB)
Reply With Quote
  #9  
Old 19th October 2008, 13:36
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
 
Default

Your Postfix isn't running. Please start it.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Undelivered Mail Returned to Sender Error202 General 5 7th May 2009 11:14
localhost postfix/master: fatal: bind 127.0.0.1 port 125: Permission denied g18c Installation/Configuration 4 24th March 2009 17:39
Mail System Error - Returned Mail tristanlee85 General 16 16th March 2008 09:40
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 15:47
Verify email setup meekish Installation/Configuration 28 27th October 2006 15:36


All times are GMT +2. The time now is 14:45.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.