#1  
Old 23rd June 2006, 15:53
Ronald Ronald is offline
Junior Member
 
Join Date: Jun 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Red face Unable to send with sendmail

Hi,

I've just started working with sendmail om my RedHat 7.1 machine and up til now I can only receive e-mail. All attempts to send fail with dsn 4.0.0. "No route to host", eventhough I'm able to connect to the webserver of the domain.

I hope someone is able to help me with this.

Here are (some) details:

Linux lserv02 2.4.2-2 #1 Sun Apr 8 20:41:30 EDT 2001 i686 unknown

File: /etc/resolv.conf
search blahblah
nameserver 192.168.99.138

File: /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost localhost.localdomain localhost
192.168.99.10 lserv01.blahblah lserv01
192.168.99.20 lserv02.blahblah mail.blahblah www.blahblah www.blahblah.nl
213.75.12.34 planet.nl

Netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:32768 *:* LISTEN 552/rpc.statd
tcp 0 0 *rinter *:* LISTEN 775/lpd Waiting
tcp 0 0 *:mysql *:* LISTEN 914/mysqld
tcp 0 0 *:netbios-ssn *:* LISTEN 700/smbd
tcp 0 0 *op3 *:* LISTEN 749/xinetd
tcp 0 0 *:sunrpc *:* LISTEN 537/portmap
tcp 0 0 *:x11 *:* LISTEN 996/X
tcp 0 0 *:10000 *:* LISTEN 977/perl
tcp 0 0 *:http *:* LISTEN 838/httpd
tcp 0 0 *:ftp *:* LISTEN 749/xinetd
tcp 0 0 *:ssh *:* LISTEN 729/sshd
tcp 0 0 *:telnet *:* LISTEN 749/xinetd
tcp 0 0 *:smtp *:* LISTEN 809/sendmail: accep
tcp 0 0 *:https *:* LISTEN 838/httpd
tcp 0 0 lserv02.blahblah:32927 80.67.86.63:http ESTABLISHED 1730/mozilla-bin
tcp 0 0 lserv02.blahblah:32879 a194-109-192-7.de:https ESTABLISHED 1730/mozilla-bin
tcp 0 0 lserv02.blahblah:32921 a194-109-192-9.dep:http ESTABLISHED 1730/mozilla-bin
tcp 0 0 lserv02.blahblah:32893 a194-109-192-25.de:http ESTABLISHED 1730/mozilla-bin
tcp 0 0 lserv02.blahblah:32896 a194-109-192-6.dep:http ESTABLISHED 1730/mozilla-bin
tcp 0 0 lserv02.blahblah:32897 a194-109-192-8.dep:http ESTABLISHED 1730/mozilla-bin
tcp 0 0 lserv02.blahblah:32899 66.249.93.99:http ESTABLISHED 1730/mozilla-bin
tcp 0 0 lserv02.blahblah:32912 66.249.93.99:http ESTABLISHED 1730/mozilla-bin

File: /etc/mail/local-host-names
# local-host-names - include all aliases for your machine here.
lserv02.blahblah
mail.blahblah
www.blahblah
wclnt05.blahblah
blahblah.nl

File: /etc/mail/relay_domains
blahblah
blahblah.nl

File: /etc/mail/virtusertable
info@blahblah.nl info@mail.blahblah
servicedesk@blahblah.nl servicedesk@mail.blahblah
blahblah@blahblah.nl blahblah@mail.blahblah

Sendmail messages:

<xxxx@blahblah.nl (1001/100), delay=00:00:34, xdelay=00:00:15, mailer=esmtp, pri=30051, relay=planet.nl. [213.75.12.30], dsn=4.0.0, stat=Deferred: planet.nl.: No route to host
<xxxx@blahblah.nl (1001/100), delay=00:19:22, xdelay=00:00:10, mailer=esmtp, pri=120051, relay=planet.nl. [213.75.12.54], dsn=4.0.0, stat=Deferred: planet.nl.: No route to host
<xxxx@blahblah.nl> (500/100), delay=01:27:07, xdelay=00:00:00, mailer=esmtp, pri=300391, relay=planet.nl., dsn=4.0.0, stat=Deferred: planet.nl.: No route to host
<xxxx@blahblah.nl> (1001/100), delay=01:57:54, xdelay=00:00:00, mailer=esmtp, pri=391243, relay=planet.nl., dsn=4.0.0, stat=Deferred: planet.nl.: No route to host
<xxxx@blahblah.nl> (1001/100), delay=02:07:04, xdelay=00:00:00, mailer=esmtp, pri=480407, relay=planet.nl., dsn=4.0.0, stat=Deferred: planet.nl.: No route to host
<xxxx@blahblah.nl> (1001/100), delay=17:46:19, xdelay=00:00:00, mailer=esmtp, pri=750453, relay=planet.nl., dsn=4.0.0, stat=Deferred: planet.nl.: No route to host
<xxxx@blahblah.nl (1001/100), delay=21:21:52, xdelay=00:00:21, mailer=esmtp, pri=210051, relay=planet.nl. [213.75.12.46], dsn=4.0.0, stat=Deferred: planet.nl.: No route to host
<xxxx@blahblah.nl> (500/100), delay=22:29:37, xdelay=00:00:00, mailer=esmtp, pri=390391, relay=planet.nl., dsn=4.0.0, stat=Deferred: planet.nl.: No route to host
<xxxx@blahblah.nl> (1001/100), delay=23:00:24, xdelay=00:00:00, mailer=esmtp, pri=481243, relay=planet.nl., dsn=4.0.0, stat=Deferred: planet.nl.: No route to host
<xxxx@blahblah.nl> (1001/100), delay=23:09:34, xdelay=00:00:00, mailer=esmtp, pri=570407, relay=planet.nl., dsn=4.0.0, stat=Deferred: planet.nl.: No route to host
<xxxx@blahblah.nl> (1001/100), delay=1+14:48:49, xdelay=00:00:00, mailer=esmtp, pri=840453, relay=planet.nl., dsn=4.0.0, stat=Deferred: planet.nl.: No route to host

Thanks for any advice you may have to offer, Ronald.

Last edited by Ronald; 24th June 2006 at 19:07.
Reply With Quote
Sponsored Links
  #2  
Old 24th June 2006, 15:02
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

What's the output of
Code:
ifconfig
and
Code:
route -nee
? What's the output of
Code:
ping -c2 google.com
and
Code:
ping -c2 64.233.187.99
?
Also have a look here: http://www.howtoforge.com/faq/11_32_en.html
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 25th June 2006, 23:43
Ronald Ronald is offline
Junior Member
 
Join Date: Jun 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Dear Falko,

the extra info you requested:

Command: ifconfig

eth0 Link encap:Ethernet HWaddr 00:02:B3:2B:A7:B5
inet addr:192.168.99.20 Bcast:192.168.99.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:310 errors:0 dropped:0 overruns:0 frame:0
TX packets:302 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:9 Base address:0xa400

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:86 errors:0 dropped:0 overruns:0 frame:0
TX packets:86 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0


Command: route -nee

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface MSS Window irtt
192.168.99.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 40 0 0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 40 0 0
0.0.0.0 192.168.99.138 0.0.0.0 UG 0 0 0 eth0 40 0 0
Command: ping -c2 google.com

PING google.com (64.233.167.99) from 192.168.99.20 : 56(84) bytes of data.
64 bytes from 64.233.167.99: icmp_seq=0 ttl=239 time=104.760 msec
64 bytes from 64.233.167.99: icmp_seq=1 ttl=239 time=99.963 msec

--- google.com ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/mdev = 99.963/102.361/104.760/2.419 ms

Command: ping -c2 64.233.187.99

PING 64.233.187.99 (64.233.187.99) from 192.168.99.20 : 56(84) bytes of data.
64 bytes from 64.233.187.99: icmp_seq=0 ttl=240 time=100.347 msec
64 bytes from 64.233.187.99: icmp_seq=1 ttl=240 time=99.972 msec

--- 64.233.187.99 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/mdev = 99.972/100.159/100.347/0.367 ms

Hope this helps (you). I do not find anything (obvious) wrong with it.

Kind Regards,

Ronald.
Reply With Quote
  #4  
Old 26th June 2006, 12:01
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

Looks ok. Did you have a look here? http://www.howtoforge.com/faq/11_32_en.html
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 26th June 2006, 18:47
Ronald Ronald is offline
Junior Member
 
Join Date: Jun 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Dear Falko,

I have looked at the information at the URL and set my sendmail option accordingly. However, nothing changes. I'm still at a loss.

Kind Regards,

Ronald
Reply With Quote
  #6  
Old 27th June 2006, 12:18
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

Hm... Is it maybe your firewall? What's the output of
Code:
iptables -L
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 29th June 2006, 22:44
Ronald Ronald is offline
Junior Member
 
Join Date: Jun 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

No, it's not the firewall (which does not function correctly btw) but it's the router. The router is unable to lookup/resolve MX records. The problem has been solved by adding the nameserver of the ISP to resolv.conf.

Thanks for your guidance!

Ronald
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
sendmail config / send with specific ip penguinol Installation/Configuration 15 4th May 2007 13:33
Howto suggestion suse PhP ver 4 + Ver 5 wwparrish Suggest HOWTO 11 7th August 2006 13:29
Can Send email but not receive it using sendmail on debian ZeroDni Installation/Configuration 7 25th June 2006 06:04
sendmail 8.13.6 on FC2 server with SASL/STARTTLS Anne H Server Operation 5 4th April 2006 21:19
ISPConfig/Postfix - unable to send mail via Outlook Commdude Installation/Configuration 8 21st March 2006 01:24


All times are GMT +2. The time now is 11:03.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.