OT sendmail delay
Bryan Hepworth
bryan at redfedora.co.uk
Thu Sep 28 19:26:49 UTC 2006
----- Original Message -----
From: "David G. Miller" <dave at davenjudy.org>
To: <fedora-list at redhat.com>
Sent: Thursday, September 28, 2006 3:54 PM
Subject: Re: OT sendmail delay
> Bryan Hepworth wrote:
>
>> Mogens Kjaer wrote:
>>
>>>> Bryan Hepworth wrote:
>>>>
>>>
>>>>>> Hi Everyone
>>>>>>
>>>>>> I know this is off-topic seeing as how it's about sendmail but I was
>>>>>> hoping someone could help out.
>>>>>>
>>>>>> I have a machine with two ethernet cards in - previously these sat on
>>>>>> two different networks to take email from inside and deliver it to
>>>>>> the
>>>>>> smarthost externally. Now that the network has been changed to
>>>>>> 192.168
>>>>>> arrangement we don't need both ethernet connections, but I have
>>>>>> noticed
>>>>>> a distinct delay on the other ethernet card to get a connection,
>>>>>> sometimes over a minute.
>>>>>>
>>>>
>>>>
>>>> What is the second ethernet card connected to?
>>>>
>>>> I assume that you havn't connected both network cards
>>>> to the same network (this will give an answer to your problems).
>>>>
>>>> What is the output of ifconfig?
>>>>
>>>> Mogens
>>>>
>>>>
>>>
>>
>>eth0 Link encap:Ethernet HWaddr 00:E0:18:F1:71:75 inet
>>addr:93.1.1.208 Bcast:93.255.255.255 Mask:255.0.0.0
>> inet6 addr: fe80::2e0:18ff:fef1:7175/64 Scope:Link
>> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>> RX packets:1613 errors:0 dropped:0 overruns:1 frame:0
>> TX packets:1714 errors:0 dropped:0 overruns:0 carrier:0
>> collisions:0 txqueuelen:1000 RX bytes:184622 (180.2 KiB) TX
>> bytes:1764140 (1.6 MiB)
>> Interrupt:5 Base address:0xb000
>>eth1 Link encap:Ethernet HWaddr 00:E0:18:F3:0E:75 inet
>>addr:192.168.2.4 Bcast:192.168.2.255 Mask:255.255.255.0
>> inet6 addr: fe80::2e0:18ff:fef3:e75/64 Scope:Link
>> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>> RX packets:2218 errors:0 dropped:0 overruns:0 frame:0
>> TX packets:1958 errors:0 dropped:0 overruns:0 carrier:0
>> collisions:0 txqueuelen:1000 RX bytes:920142 (898.5 KiB) TX
>> bytes:251040 (245.1 KiB)
>> Interrupt:11 Base address:0x6000
>>lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0
>> inet6 addr: ::1/128 Scope:Host
>> UP LOOPBACK RUNNING MTU:16436 Metric:1
>> RX packets:2325 errors:0 dropped:0 overruns:0 frame:0
>> TX packets:2325 errors:0 dropped:0 overruns:0 carrier:0
>> collisions:0 txqueuelen:0 RX bytes:2575772 (2.4 MiB) TX
>> bytes:2575772 (2.4 MiB)
>>
> The next questions is, what's the output of "route"? Just a guess at this
> point but sendmail may be trying to send on the NIC with the public IP or
> do DNS look-ups. Either way, its going to time-out before it goes to the
> 192.168 NIC. You may also need to check sendmail.cf to see if it still
> has references to when the box had the public IP address.
>
> Some things to try on your sendmail box:
>
> 1) route
> 2) dig any <smarthost>
> 3) dig any `hostname`
>
> Cheers,
> Dave
Dave
Thanks for the reply...
I noticed the 169.254 addy in there, but nothing else untoward. I also ran a
network packet capture to see if I could see what was going on. Guess I've
run oot o steam for tonight. If you can spy anything let me know it's much
appreciated. The default route takes ages to come up I have to say doing the
route command.
Bryan
route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.0 * 255.255.255.0 U 0 0 0 eth1
169.254.0.0 * 255.255.0.0 U 0 0 0 eth1
94.0.0.0 93.0.0.100 255.0.0.0 UG 0 0 0 eth0
92.0.0.0 93.0.0.100 255.0.0.0 UG 0 0 0 eth0
93.0.0.0 * 255.0.0.0 U 0 0 0 eth0
default 192.168.2.1 0.0.0.0 UG 0 0 0 eth1
dig smarthost
; <<>> DiG 9.2.4 <<>> any smtp.nildram.co.uk
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 47766
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 4, ADDITIONAL: 4
;; QUESTION SECTION:
;smtp.nildram.co.uk. IN ANY
;; ANSWER SECTION:
smtp.nildram.co.uk. 225 IN A 195.149.33.74
;; AUTHORITY SECTION:
nildram.co.uk. 24789 IN NS dns0.nildram.com.
nildram.co.uk. 24789 IN NS dns1.nildram.co.uk.
nildram.co.uk. 24789 IN NS dns1.nildram.com.
nildram.co.uk. 24789 IN NS dns0.nildram.co.uk.
;; ADDITIONAL SECTION:
dns0.nildram.com. 300 IN A 193.218.99.4
dns1.nildram.co.uk. 26935 IN A 195.112.4.7
dns1.nildram.com. 300 IN A 193.218.99.3
dns0.nildram.co.uk. 24795 IN A 195.112.4.14
;; Query time: 32 msec
;; SERVER: 213.208.106.212#53(213.208.106.212)
;; WHEN: Thu Sep 28 15:50:04 2006
;; MSG SIZE rcvd: 203
dig internal
; <<>> DiG 9.2.4 <<>> any internal.coxagri.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 8694
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;internal.coxagri.com. IN ANY
;; AUTHORITY SECTION:
coxagri.com. 562 IN SOA ns4.vi.net. hostmaster.vi.net. 2006072800 43200 7200
1209600 600
;; Query time: 30 msec
;; SERVER: 213.208.106.213#53(213.208.106.213)
;; WHEN: Thu Sep 28 15:53:45 2006
;; MSG SIZE rcvd: 95
More information about the fedora-list
mailing list