postfix on VPS

Discussion in 'Installation/Configuration' started by theboy, May 26, 2007.

  1. theboy

    theboy New Member

    Hi,
    I have installed postfix on my vps(centos4.5) .It has plesk that by default
    installed qmail. So I remove qmail rpm . Now when I telnet to
    [[email protected] ~]# telnet 127.0.0.1 25
    Trying 127.0.0.1...
    Connected to 127.0.0.1.
    Escape character is '^]'.
    220 vps111.dom.com ESMTP Postfix
    ---its OK

    ifconfig

    venet0 inet addr:127.0.0.1
    venet0:0 inet addr:1.4.4.14
    venet0:1 inet addr:1.4.4.15

    It does not have any iptable firewall .
    [[email protected] ~]# iptables -nL
    Chain INPUT (policy ACCEPT)
    target prot opt source destination

    Chain FORWARD (policy ACCEPT)
    target prot opt source destination

    Chain OUTPUT (policy ACCEPT)
    target prot opt source destination

    I can connect to the server through ssh . But I can not telnet to 25 port
    of any of those ip(1.4.4.14/15) from inside or outside.
    [[email protected] ~]# telnet 1.4.4.14 25
    Trying 1.4.4.14...
    telnet: connect to address 1.4.4.14: Connection refused

    [[email protected] ~]# telnet 1.4.4.15 25
    Trying 1.4.4.15...
    telnet: connect to address 1.4.4.15: Connection refused

    Also my /etc/hosts file is also rewritten ... by some old value ?

    Can any one suggest what to do ? Please help me.Thanks.
     
    Last edited: May 26, 2007
  2. falko

    falko Super Moderator ISPConfig Developer

    What's the output of
    Code:
    netstat -tap
    ? What's the value of inet_interfaces in /etc/postfix/main.cf?
     
  3. theboy

    theboy New Member

    Hi,
    Thx for reply . The postfix problem is solved :) . But there is another
    problem . My /etc/hosts file is rewritten by a process (I faill to detect ,how?)
    I have change the/etc/hosts ...but after reboot it rewritten by old value along with my values . Can you give me idea ...what to do ?
     
  4. falko

    falko Super Moderator ISPConfig Developer

    I think this happens because it's a virtual machine. The hosts file is generated from the virtual machine's configuration file (which is on the host system) each time the vm is booted.
     

Share This Page