postfix question

Discussion in 'Installation/Configuration' started by nmy, Oct 15, 2008.

  1. nmy

    nmy New Member

    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?
     
  2. falko

    falko Super Moderator ISPConfig Developer

    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
     
  3. nmy

    nmy New Member

    thank you very much for your help and your tips. :p
     
  4. nmy

    nmy New Member

  5. falko

    falko Super Moderator ISPConfig Developer

    Any errors in the mail log?
    Did you receive a bounce message in your Gmail account?
     
  6. nmy

    nmy New Member

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

    The mail system

    <[email protected]>: 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; [email protected]
    Arrival-Date: Fri, 17 Oct 2008 11:40:10 +0200 (CEST)

    Final-Recipient: rfc822; [email protected]
    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 <[email protected]>; 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 <[email protected]>; Fri, 17 Oct 2008 11:40:10 +0200 (CEST)
    Message-ID: <[email protected]>
    Date: Fri, 17 Oct 2008 11:51:03 +0200
    From: Theys Robin <[email protected]>
    User-Agent: Thunderbird 2.0.0.17 (X11/20080925)
    MIME-Version: 1.0
    To: [email protected]
    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
     
  7. falko

    falko Super Moderator ISPConfig Developer

    What are the outputs of
    Code:
    netstat -tap
    and
    Code:
    ifconfig
    ? Is eth1 really the Internet interface?
     
  8. nmy

    nmy New Member

    heres outuput of netstat -tap

    and the ifconfig
     
  9. falko

    falko Super Moderator ISPConfig Developer

    Your Postfix isn't running. Please start it.
     

Share This Page