Problem on install/configure postfix

Discussion in 'Server Operation' started by satimis, Oct 26, 2007.

  1. satimis

    satimis Member

    Hi folks,


    Continued on "The Perfect Setup - Ubuntu Feisty Fawn (Ubuntu 7.04) - Page 5"
    http://www.howtoforge.com/perfect_setup_ubuntu704_p5

    All went through w/o major problem unitl coming to "telnet localhost 25". I copy/paste the commands on the "Howto" to proceed.


    Please help me to clarify following points

    1)
    On running;
    Code:
    # postconf -e 'smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination'
    
    I replaced "permit_mynetworks" with "permit_eth0". Did I make a mistake here? I have only one NIC on this PC


    2)
    On running;
    # openssl genrsa -des3 -rand /etc/hosts -out smtpd.key 1024
    Code:
    284 semi-random bytes loaded
    Generating RSA private key, 1024 bit long modulus
    .........++++++
    .............++++++
    e is 65537 (0x10001)
    Enter pass phrase for smtpd.key:1024 [Enter]
    Verifying - Enter pass phrase for smtpd.key:1024[Enter]
    
    I use the same smtpd.key number "1024". Can I use different number?



    Coming to "telnet localhost 25"

    # telnet localhost 25
    Code:
    Trying 127.0.0.1...
    telnet: Unable to connect to remote host: Connection timed out
    

    The firewall blocks it.
    # iptables -F


    # cat /etc/rc.local | grep 127.0.0.1
    Code:
    iptables -I OUTPUT 3 -j REJECT -s 127.0.0.1 --reject-with icmp-port-unreachable
    

    # telnet localhost 25
    Code:
    Trying 127.0.0.1...
    Connected to localhost.localdomain.
    Escape character is '^]'.
    220 server1.example.com ESMTP Postfix (Ubuntu)
    ehlo localhost
    (hanging here)
    
    quit 
    Connection closed by foreign host.
    
    "server1.example.com" has not been changed to "ubuntu.xyz.com". Where shall I check and how to fix the problem?


    TIA


    Edit-1 :
    ====

    Hi Falko,

    I have finished up to section:-
    "18 Synchronize the System Clock"

    without problem. Your HOWTO works perfect. Wonderful!!! Thanks.

    If NOT installing ISPConfig, do I need proceeding section:-
    19 Install Some Perl Modules Needed By SpamAssassin (Comes With ISPConfig)
    ???


    Edit-2 (to fix above problem) :
    ====

    Re-run following steps;

    # postconf -e 'myhostname = ubuntu.xyz.com'
    no printout

    (Remark: Previously I ran;
    # postconf -e 'myhostname = server1.example.com' )

    # /etc/init.d/postfix restart
    Code:
     * Stopping Postfix Mail Transport Agent postfix                                               [ OK ] 
     * Starting Postfix Mail Transport Agent postfix                                               [ OK ] 
    
    # iptables -F
    # telnet localhost 25
    Code:
    Trying 127.0.0.1...
    Connected to localhost.localdomain.
    Escape character is '^]'.
    220 ubuntu.xyz.com ESMTP Postfix (Ubuntu)
    ehlo localhost
    250-ubuntu.xyz.com
    250-PIPELINING
    250-SIZE 10240000
    250-VRFY
    250-ETRN
    250-STARTTLS
    250-AUTH LOGIN PLAIN
    250-AUTH=LOGIN PLAIN
    250-ENHANCEDSTATUSCODES
    250-8BITMIME
    250 DSN
    quit
    221 2.0.0 Bye
    Connection closed by foreign host.
    
    Above problem SOLVED


    B.R.
    satimis
     
    Last edited: Oct 26, 2007

Share This Page