Server can't "see" the internet

Discussion in 'Installation/Configuration' started by Luciano, Aug 17, 2005.

  1. Luciano

    Luciano New Member

    Hi folks! :D

    Probably this may be a common error, caused by a little mistake of myself during the installation process. Please let me know what's going wrong.
    This problem is similar as what i found on this thread: http://www.howtoforge.com/forums/showthread.php?t=125&highlight=relay

    When i try to send a mail via Uebimiau, inside ISPConfig, i receive this error:

    I verified my DNS settings on my DNS server, and everything is fine. The DNS server finds the mail server without a problem. My .zone file on the DNS server shows:

    I asked a friend to test if he can "see" the mail server from outside my network. After using the command

    Code:
    ping mail.valeresponde.com.br
    This result appears:

    Code:
     
    Starting against mail.valeresponde.com.br [200.190.167.101]
    with 32 bytes of data:
     
    Request server timeout
    Request server timeout
    Request server timeout
    Request server timeout
     
    Statistics of Ping to 200.190.167.101:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% of lost)
    
    Probably something is blocking the transmission/receiving of packets from/to my network. What will i have to do? Shall i have to change settings of my DNS server? Or the problem might be the firewall? :rolleyes: :confused:

    Any help it's welcome! :D
     
  2. jnoble

    jnoble New Member

    first thing to check

    Hello, the first thing I would check is that your using your internal mailserver to send out (best practice) and if not, then the external mailserver has to allow relay from you.

    The headers of the rejection email will say which server it is trying to use.

    James
     
  3. domino

    domino New Member

  4. till

    till Super Moderator

    Do you have these lines in your postfix main.cf?

    Code:
    mynetworks = 127.0.0.0/8
    smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,check_relay_domains
    
     
  5. Luciano

    Luciano New Member

    Is there a little point that i'm missing? :D

    Hi Till !

    I've checked the /etc/postfix/main.cf file, just as you said, and i've found two things:

    1 - I didn't find the statement mynetworks = 127.0.0.0/8 in the TRUST AND RELAY CONTROL section. So, i've added it.

    2 - Then, i've searched for the smtpd statement and i've found this line below:

    smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination

    which is straightly different than your hint mentioned before:

    smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,check_relay_domains

    Does the lack of these two parameters is the main reason for the mail server failure? :confused:


    In addition, i've also checked the log for e-mails, in /var/log/maillog. And, between the most error messages, one of them is very common: Network is unreachable.

    Take a look and tell me, please, what i'm missing here. :D

    Aug 18 12:12:24 darwin postfix/smtp[24537]: connect to uipa01i82.usiminas.com.br[200.251.3.175]: Network is unreachable (port 25)
    Aug 18 12:12:24 darwin postfix/smtp[24537]: connect to uipa01m10x.usiminas.com.br[200.251.3.249]: Network is unreachable (port 25)
    Aug 18 12:12:24 darwin postfix/smtp[24537]: 8F01013A8067: to=<vdesouza@usiminas.com.br>, relay=none, delay=11930, status=deferred (connect to uipa01m10x.usiminas.com.br[200.251.3.249]: Network is unreachable)
    Aug 18 12:12:24 darwin postfix/smtp[24536]: connect to smtp.gerdau.com.br[200.213.29.36]: Network is unreachable (port 25)
    Aug 18 12:12:24 darwin postfix/smtp[24536]: connect to smtp.gerdau.com.br[200.213.29.35]: Network is unreachable (port 25)
    Aug 18 12:12:24 darwin postfix/smtp[24536]: 7039013A8066: to=<hugo.freitas@gerdau.com.br>, relay=none, delay=11930, status=deferred (connect to smtp.gerdau.com.br[200.213.29.35]: Network is unreachable)
    Aug 18 12:12:40 darwin postfix/smtp[24538]: connect to mail.valeresponde.com.br[200.190.167.101]: Network is unreachable (port 25)
    Aug 18 12:12:40 darwin postfix/smtp[24538]: D812E13A8064: to=<valeresponde@valeresponde.com.br>, relay=none, delay=76968, status deferred (connect to mail.valeresponde.com.br[200.190.167.101]: Network is unreachable)
    Aug 18 12:29:04 darwin postfix/qmgr[9006]: 57BCD13A805E: from=<e4w@e4w.com.br>, size=1147, nrcpt=1 (queue active)
    Aug 18 12:29:04 darwin postfix/smtp[24874]: connect to smtp.e4w.com.br[200.150.150.17]: Network is unreachable (port 25)
    Aug 18 12:29:04 darwin postfix/smtp[24874]: 57BCD13A805E: to=<tecnologia@e4w.com.br>, relay=none, delay=91746, status=deferred (connect to smtp.e4w.com.br[200.150.150.17]: Network is unreachable)

    Thanks in advance!!
     
  6. falko

    falko Super Moderator

    Can you ping the outside world? Try
    Code:
    ping -c4 www.google.com
     
  7. Luciano

    Luciano New Member

    The result is...

    This is the result:

    Code:
     
    # ping -c4 [url="http://www.google.com/"]www.google.com[/url]
     
    PING [url="http://www.l.google.com/"]www.l.google.com[/url] (64.233.167.99) 56(84) bytes of data.
     
     
    --- [url="http://www.l.google.com/"]www.l.google.com[/url] ping statistics ---
    4 packets transmitted, 0 received, 100% packet loss, time 2999ms
    
     
  8. falko

    falko Super Moderator

    Your system doesn't have a connection to the internet! :( Not very good for sending mails... :D
     
  9. jrowe

    jrowe New Member

    Perhaps a slight oversight but it appears that you were trying to ping www.google.com and could not ping it, it could have to do with your ISP blocking pings, I cannot ping it myself from work, ICMP to the net is blocked, but from home (verizon DSL) I can ping it. Just thought i'd help. Have a nice day!



     
    Last edited: Aug 22, 2005

Share This Page