postfix question

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

  1. nmy

    nmy New Member


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

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

    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

    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 to forward port 25 to bar.local. You can do this with iptables, e.g. like this:

    iptables -A PREROUTING -t nat -p tcp -i eth1 --dport 25 -j DNAT --to
  3. nmy

    nmy New Member

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

    nmy New Member

    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 [email protected] I didn't receive the mail?

    any idea?
    Last edited: Oct 17, 2008
  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[]:
    Connection timed out

    Reporting-MTA: dns;
    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[]:
    Connection timed out
    Will-Retry-Until: Sat, 18 Oct 2008 11:40:10 +0200 (CEST)

    Received: by (Postfix, from userid 2000)
    id C87FB42DC124; Fri, 17 Oct 2008 11:40:10 +0200 (CEST)
    Received: from DSPAM-Daemon (localhost.localdomain [])
    by (Postfix) with SMTP id 7AB7642DC106
    for <[email protected]>; Fri, 17 Oct 2008 11:40:10 +0200 (CEST)
    Received: from [] (unknown [])
    (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
    (No client certificate requested)
    by (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 (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
    netstat -tap
    ? 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