Re: Fail to send mail

From: Stephen Liu (no email)
Date: Tue Dec 05 2006 - 22:34:43 EST

  • Next message: Noel Jones: "Re: Identify users using an SSL certificate"

    Hi mouss,

    I registered another domain "satimis.freeddns.com". This domain is
    working, ping being possible.

    I suppose "satimis.homelinux.com" having problem. I sent "dyndns.com"
    a mail on unable to ping but without reply.

    > use dnsstuff site (or other dns checking sites). These will tell you
    > what the "world" sees. (they may also use cached data, but the rest
    > of the world also sees cached data in general).

    Ran "ShieldsUp" on;
    http://www.grc.com/default.htm

    scanning ISP' port 25, 80 and 8080

    port 25
    Results from probe of port: 25
        1 Ports Open
        0 Ports Closed
        0 Ports Stealth
        1 Ports Tested

    THE PORT tested was found to be: OPEN.
    TruStealth: FAILED - NOT all tested ports were STEALTH,
                       - NO unsolicited packets were received,
                       - A PING REPLY (ICMP Echo) WAS RECEIVED.

    port 80
    Stealth http
    World Wide Web HTTP

    Results from probe of port: 80
        0 Ports Open
        0 Ports Closed
        1 Ports Stealth
        1 Ports Tested

    THE PORT tested was found to be: STEALTH.

    TruStealth: FAILED - ALL tested ports were STEALTH,
                       - NO unsolicited packets were received,
                       - A PING REPLY (ICMP Echo) WAS RECEIVED.

    port 8080
    OPEN! http-alt
    HTTP Alternate (see port 80 and port 81)

    Results from probe of port: 8080
        1 Ports Open
        0 Ports Closed
        0 Ports Stealth
        1 Ports Tested

    THE PORT tested was found to be: OPEN.

    TruStealth: FAILED - NOT all tested ports were STEALTH,
                       - NO unsolicited packets were received,
                       - A PING REPLY (ICMP Echo) WAS RECEIVED.
    * end *

     
    > windows has a telnet command, but it's annoying. there are a lot of
    > free alternatives anyway.

    My friend on WinXP box can browse the homepage of my server with;
    "satimis.freeddns.com:8080"

    "satimis.freeddns.com"
    "satimis.freeddns.com:80"
    did not work.

    C:\>ping -n 3 satimis.freeddns.com[code]
    Pinging satimis.freeddns.com [219.79.145.110] with 32 bytes of data:
    Reply from 219.79.145.110: bytes=32 time=135ms TTL=59
    Reply from 219.79.145.110: bytes=32 time=131ms TTL=59
    Reply from 219.79.145.110: bytes=32 time=119ms TTL=59

    Ping statistics for 219.79.145.110:
        Packets: Sent = 3, Received = 3, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
        Minimum = 119ms, Maximum = 135ms, Average = 128ms
    * end *

    C:\>telnet satimis.freeddns.com
    Connecting To satimis.freeddns.com...Could not open connection to the
    host, on port 23.
    No connection could be made because the target machine actively refused
    it.

    C:\>telnet satimis.freeddns.com 25
    Connecting To satimis.freeddns.com...Could not open connection to the
    host, on port 25.
    A connection attempt failed because the connected party did not
    properly respond after a period of time, or established connection
    failed because connected host has failed to respond.

    Performed following test on server

    # cat /etc/postfix/main.cf
    #myorigin = /etc/mailname

    smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
    biff = no
    append_dot_mydomain = no

    #delay_warning_time = 4h
    # TLS parameters
    smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
    smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
    smtpd_use_tls = yes
    smtpd_tls_session_cache_database =
    btree:${queue_directory}/smtpd_scache
    smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache

    # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package
    for
    # information on enabling SSL in the smtp client.

    #myhostname = server1.example.com
    myhostname = mail.satimis.freeddns.com
    mydomain = satimis.freeddns.com
    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    #myorigin = /etc/mailname
    #mydestination = /etc/postfix/local-host-names
    myorigin = $myhostname
    mydestination = $myhostname, localhost.$mydomain, localhost
    #relayhost = satimis.homelinux.com
    mynetworks = 127.0.0.0/8, 192.168.0.0/24
    mailbox_size_limit = 0
    recipient_delimiter = +
    inet_interfaces = all
    inet_protocols = all
    smtpd_sasl_local_domain =
    smtpd_sasl_auth_enable = yes
    smtpd_sasl_security_options = noanonymous
    broken_sasl_auth_clients = yes
    smtpd_recipient_restrictions =
    permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
    smtpd_tls_auth_only = no
    smtp_use_tls = yes
    smtp_tls_note_starttls_offer = yes
    smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
    smtpd_tls_loglevel = 1
    smtpd_tls_received_header = yes
    smtpd_tls_session_cache_timeout = 3600s
    tls_random_source = dev:/dev/urandom
    mailbox_command =
    home_mailbox = Maildir/
    virtual_maps = hash:/etc/postfix/virtusertable
    * end *

    # telnet localhost 25
    Trying 127.0.0.1...
    Connected to localhost.satimis.freeddns.com.
    Escape character is '^]'.
    .....
    This is a test
    .
    250 Ok: queued as AAA0A75406D
    quit
    221 Bye
    * end *

    Failed.

    # cat /var/log/mail.log
    Dec 6 08:41:12 #ubuntu
    mail postfix/smtpd[5977]: connect from
    localhost.satimis.freeddns.com[127.0.0.1]
    Dec 6 08:42:37 #ubuntu
    mail postfix/smtpd[5977]: AAA0A75406D:
    client=localhost.satimis.freeddns.com[127.0.0.1]
    Dec 6 08:43:03 #ubuntu
    mail postfix/cleanup[5980]: AAA0A75406D:
    message-id=<>
    Dec 6 08:43:03 #ubuntu
    mail postfix/qmgr[5562]: AAA0A75406D:
    from=<>, size=428, nrcpt=1 (queue active)
    Dec 6 08:43:03 #ubuntu
    mail postfix/qmgr[5562]: AAA0A75406D: to=<>,
    relay=none, delay=45, status=deferred (delivery temporarily suspended:
    connect to e.mx.mail.yahoo.com[216.39.53.1]: Connection timed out)
    Dec 6 08:44:18 #ubuntu
    mail postfix/smtpd[5977]: disconnect from
    localhost.satimis.freeddns.com[127.0.0.1]
    Dec 6 08:45:21 #ubuntu
    mail postfix/cleanup[6007]: 9245F754072:
    message-id=<>
    Dec 6 08:45:21 #ubuntu
    mail postfix/qmgr[5562]: 9245F754072:
    from=<>, size=536, nrcpt=1 (queue
    active)
    Dec 6 08:45:21 #ubuntu
    mail postfix/local[6008]: fatal: gethostbyname: Success
    Dec 6 08:45:22 #ubuntu
    mail postfix/qmgr[5562]: warning: premature end-of-input on
    private/local socket while reading input attribute name
    Dec 6 08:45:22 #ubuntu
    mail postfix/qmgr[5562]: warning: private/local socket: malformed
    response
    Dec 6 08:45:22 #ubuntu
    mail postfix/qmgr[5562]: warning: transport local failure -- see a
    previous warning/fatal/panic logfile record for the problem description
    Dec 6 08:45:22 #ubuntu
    mail postfix/master[5064]: warning: process /usr/lib/postfix/local pid
    6008 exit status 1
    Dec 6 08:45:22 #ubuntu
    mail postfix/master[5064]: warning: /usr/lib/postfix/local: bad command
    startup -- throttling
    Dec 6 08:45:22 #ubuntu
    mail postfix/qmgr[5562]: 9245F754072:
    to=<>, orig_to=<root>, relay=none,
    delay=1, status=deferred (delivery temporarily suspended: unknown mail
    transport error)
    Dec 6 08:48:13 #ubuntu
    mail postfix/cleanup[6020]: 9951F754075:
    message-id=<>
    Dec 6 08:48:13 #ubuntu
    mail postfix/qmgr[5562]: 9951F754075:
    from=<>, size=536, nrcpt=1 (queue
    active)
    Dec 6 08:48:13 #ubuntu
    mail postfix/local[6021]: fatal: gethostbyname: Success
    Dec 6 08:48:14 #ubuntu
    mail postfix/qmgr[5562]: warning: premature end-of-input on
    private/local socket while reading input attribute name
    Dec 6 08:48:14 #ubuntu
    mail postfix/qmgr[5562]: warning: private/local socket: malformed
    response
    Dec 6 08:48:14 #ubuntu
    mail postfix/qmgr[5562]: warning: transport local failure -- see a
    previous warning/fatal/panic logfile record for the problem description
    Dec 6 08:48:14 #ubuntu
    mail postfix/master[5064]: warning: process /usr/lib/postfix/local pid
    6021 exit status 1
    Dec 6 08:48:14 #ubuntu
    mail postfix/master[5064]: warning: /usr/lib/postfix/local: bad command
    startup -- throttling
    Dec 6 08:48:14 #ubuntu
    mail postfix/qmgr[5562]: 9951F754075:
    to=<>, orig_to=<root>, relay=none,
    delay=1, status=deferred (delivery temporarily suspended: unknown mail
    transport error)
    * end *

    # iptables -L
    Chain INPUT (policy ACCEPT)
    target prot opt source destination

    Chain FORWARD (policy ACCEPT)
    target prot opt source destination
    TCPMSS tcp -- anywhere anywhere tcp flags:SYN,RST/SYN tcpmss
    match
    1400:1536 TCPMSS clamp to PMTU

    Chain OUTPUT (policy ACCEPT)
    target prot opt source destination
    * end *

    Others noted with tks.

    B.R.
    Stephen

    Send instant messages to your online friends
    http://uk.messenger.yahoo.com

    Send instant messages to your online friends http://uk.messenger.yahoo.com


  • Next message: Noel Jones: "Re: Identify users using an SSL certificate"





    Hosted Email Solutions

    Invaluement Anti-Spam DNSBLs



    Powered By FreeBSD   Powered By FreeBSD