Re: [CentOS] sendmail question

2009-10-22 Thread Alexander Dalloz
Jerry Geis schrieb:
>> My guess would be a resolving problem also.
>> Its usually what causes sendmail to slow down.
>> Check your /etc/hosts file
>> Dan
>>   
> My /etc/hosts file is only has the "nameserver x.x.x.x" entry.
> 
> the /var/log/maillog shows the entry right away when "mail" on the 
> command line is done.
> Again, this is mail originating on the the box and destination is on the 
> same box.
> 
> mailq always shows 0, even doing it repeatedly.
> 
> the mail delivery  is delayed exactly 2 minutes.
> 
> I have 127.0.0.1 localhost in the /etc/hosts file.

Sendmail demands a dotted hostname in /etc/hosts for itself. "localhost"
is not enough. "localhost.localdomain" (which is even the CentOS default
for 127.0.0.1) works.

> Very odd, any thoughts?
> 
> Jerry

Alexander
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] sendmail question

2009-10-21 Thread nate
Les Mikesell wrote:

> But that won't fix all the other things that expect a working DNS - and
> will keep you from sending mail anywhere else.

smarthost

I'm not sure what the original thread started as just seemed
specific to sendmail.

nate

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] sendmail question

2009-10-21 Thread Dan Carl
Dan Carl wrote:
> Jerry Geis wrote:
>   
>>> My guess would be a resolving problem also.
>>> Its usually what causes sendmail to slow down.
>>> Check your /etc/hosts file
>>> Dan
>>>   
>>> 
>>>   
>> My /etc/hosts file is only has the "nameserver x.x.x.x" entry.
>>
>> the /var/log/maillog shows the entry right away when "mail" on the 
>> command line is done.
>> Again, this is mail originating on the the box and destination is on the 
>> same box.
>>
>> mailq always shows 0, even doing it repeatedly.
>>
>> the mail delivery  is delayed exactly 2 minutes.
>>
>> I have 127.0.0.1 localhost in the /etc/hosts file.
>>
>> Very odd, any thoughts?
>>
>>   
>> 
> If you don't have DNS running on the box, try adding the machine name to 
> your hosts file
> Example:
> 127.0.0.1   localhost.localdomain localhost localdomain 
> your-machine-name-here
>
>   
Sorry formatting issue
it should all be on one line

127.0.0.1 localhost.localdomain localhost localdomain your-name-here
Dan


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] sendmail question

2009-10-21 Thread Les Mikesell
nate wrote:
> 
>> But sendmail is going to ask DNS first and if DNS fails with a timeout
>> instead of a quick NXDOMAIN, delivery will be slow.
> 
> My reading of that FAQ says you can turn off DNS support in
> sendmail entirely, just use a host file.

But that won't fix all the other things that expect a working DNS - and 
will keep you from sending mail anywhere else.

-- 
   Les Mikesell
lesmikes...@gmail.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] sendmail question

2009-10-21 Thread Robert Heller
At Wed, 21 Oct 2009 14:26:05 -0400 CentOS mailing list  
wrote:

> 
> >
> > >/
> > />>/ That's a few DNS timeouts.
> > />>/
> > />>>/ / I have 127.0.0.1 localhost in the /etc/hosts file.
> > />>/ />/ 
> > />>/ />/ Very odd, any thoughts?
> > />>/ /
> > />>/ Are you mailing to localhost?
> > />>/   
> > />/ I tried:
> > />/ mail panel
> > />/ mail panel at localhost 
> > 
> > />/ mail panel at localhost.localdomain 
> > 
> > />/ mail panel at machine.domain.com 
> >  (insert actual machine 
> > and domain)
> > />/ 
> > />/ All the above have the same slow 2 minute delay.
> > />/ 
> > />/ This is odd.
> > /
> > You still haven't answered how long nslookup takes to respond with these 
> > or your IP addresses.  I think sendmail will ask DNS for an MX record 
> > first because that's how mail is supposed to work - then if that fails 
> > it goes for an A record or your hosts file.
> >   
> Sorry - missed that one .
> 
> nslookup cnn.com comes back fast.
> 
> if I do nslookup mymachine.domain.com it comes back with error.
> 
> How do I make this resolve faster or something. I have no way to make an 
> MX record
> for this box. its all just local email. it never leaves the box.

You don't need a MX record.  BUT you *should* have a record in the
/etc/hosts file.  I'm assuming you do have an Ethernet card (just not
connected to anything at present), so you need a line like the
following in your /etc/hosts file.

192.168.250.1   sauron.deepsoft.com sauron

replace '192.168.250.1' with the IP address you configured your
Ethernet card to and 'sauron.deepsoft.com sauron' with
'mymachine.domain.com mymachine' (assuming mymachine.domain.com is your
hostname). 

> 
> Jerry
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
> 
>

-- 
Robert Heller -- 978-544-6933
Deepwoods Software-- Download the Model Railroad System
http://www.deepsoft.com/  -- Binaries for Linux and MS-Windows
hel...@deepsoft.com   -- http://www.deepsoft.com/ModelRailroadSystem/


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] sendmail question

2009-10-21 Thread nate
Les Mikesell wrote:

> But sendmail is going to ask DNS first and if DNS fails with a timeout
> instead of a quick NXDOMAIN, delivery will be slow.

My reading of that FAQ says you can turn off DNS support in
sendmail entirely, just use a host file.

nate


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] sendmail question

2009-10-21 Thread Dan Carl
Jerry Geis wrote:
>> My guess would be a resolving problem also.
>> Its usually what causes sendmail to slow down.
>> Check your /etc/hosts file
>> Dan
>>   
>> 
> My /etc/hosts file is only has the "nameserver x.x.x.x" entry.
>
> the /var/log/maillog shows the entry right away when "mail" on the 
> command line is done.
> Again, this is mail originating on the the box and destination is on the 
> same box.
>
> mailq always shows 0, even doing it repeatedly.
>
> the mail delivery  is delayed exactly 2 minutes.
>
> I have 127.0.0.1 localhost in the /etc/hosts file.
>
> Very odd, any thoughts?
>
>   
If you don't have DNS running on the box, try adding the machine name to 
your hosts file
Example:
127.0.0.1   localhost.localdomain localhost localdomain 
your-machine-name-here

Dan

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] sendmail question

2009-10-21 Thread Jerry Geis


Brent L. Bates wrote:
>  It is not odd.  You just refuse to listen to those trying to help.  How
> many times do they have to say `Check your DNS'?
>
>  Check your /etc/nsswitch.conf and make sure it has a line like this:
>
> hosts:files dns
>
>  `files' comes FIRST and `dns' LAST.
>
>  The file /etc/resolv.conf should have a line starting with `domain' and
> have your domain after it.  You should have at least one `nameserver' line.
>  If you are running `named' on your local system then put `127.0.0.1'.  You
> can have up to 3 `nameserver' lines.
>
>  Finally, your /etc/hosts file should have a line like this:
>
> 127.0.0.1   localhost loopback me
>
>  You should also have lines that correspond with each and every IP address
> the system is using.  For example:
>
> 123.12.34.56  myhost.mydomain.com myhost
>
>  List the Fully Qualified Domain Name (FQDN) FIRST and then the short
> name.
>
>  Use things like `ping' and `nslookup' to make sure DNS is working.  If
> these take forever, 2 minutes for example, your DNS isn't working and you need
> to fix it.
>
>  One last thing, your mail queue shouldn't be any shorter than 15 MINUTES.
>  If you are sending out the the Internet and it is much shorter, you will
> probably end up on someones SPAM list.
>
>   
Brent,

nsswitch.conf has in it the following:

passwd: files
shadow: files
group:  files

#hosts: db files nisplus nis dns
hosts:  files dns




I do not have any domain line in /etc/hosts just 2 nameservers.

/etc/hosts has 127.0.0.1 localhost

I do also have the line with the correct IP for the machine.
IP address space full machine name short name also.

Thanks,

jerry
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] sendmail question

2009-10-21 Thread Les Mikesell
nate wrote:
> Jerry Geis wrote:
> 
>> How do I make this resolve faster or something. I have no way to make an
>> MX record
>> for this box. its all just local email. it never leaves the box.
> 
> have you seen
> 
> http://www.sendmail.org/faq/section3#3.22
> 
> ?
> 
> nslookup only looks at DNS. So if you are trying to resolve something
> that is in something other than DNS, nslookup won't do you any good.

But sendmail is going to ask DNS first and if DNS fails with a timeout 
instead of a quick NXDOMAIN, delivery will be slow.

-- 
   Les Mikesell
lesmikes...@gmail.com

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] sendmail question

2009-10-21 Thread Les Mikesell
Jerry Geis wrote:
>>
>> /
>> You still haven't answered how long nslookup takes to respond with these 
>> or your IP addresses.  I think sendmail will ask DNS for an MX record 
>> first because that's how mail is supposed to work - then if that fails 
>> it goes for an A record or your hosts file.
>>   
> Sorry - missed that one .
> 
> nslookup cnn.com comes back fast.
> 
> if I do nslookup mymachine.domain.com it comes back with error.
> 
> How do I make this resolve faster or something. I have no way to make an 
> MX record
> for this box. its all just local email. it never leaves the box.

An error that is returned quickly isn't a problem - a timeout of many 
seconds is a problem.  How long do the failing responses - and for your 
IP addresses and 127.0.0.1 take?

The cleanest approach is to run a local nameserver that is primary for 
your local domain (even if it is not official) and your local network 
ranges and caches for everything else.

-- 
   Les Mikesell
lesmikes...@gmail.com

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] sendmail question

2009-10-21 Thread nate
Jerry Geis wrote:

> How do I make this resolve faster or something. I have no way to make an
> MX record
> for this box. its all just local email. it never leaves the box.

have you seen

http://www.sendmail.org/faq/section3#3.22

?

nslookup only looks at DNS. So if you are trying to resolve something
that is in something other than DNS, nslookup won't do you any good.

nate

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] sendmail question

2009-10-21 Thread Jerry Geis
>
> >/
> />>/ That's a few DNS timeouts.
> />>/
> />>>/ / I have 127.0.0.1 localhost in the /etc/hosts file.
> />>/ />/ 
> />>/ />/ Very odd, any thoughts?
> />>/ /
> />>/ Are you mailing to localhost?
> />>/   
> />/ I tried:
> />/ mail panel
> />/ mail panel at localhost 
> />/ mail panel at localhost.localdomain 
> 
> />/ mail panel at machine.domain.com 
>  (insert actual machine and 
> domain)
> />/ 
> />/ All the above have the same slow 2 minute delay.
> />/ 
> />/ This is odd.
> /
> You still haven't answered how long nslookup takes to respond with these 
> or your IP addresses.  I think sendmail will ask DNS for an MX record 
> first because that's how mail is supposed to work - then if that fails 
> it goes for an A record or your hosts file.
>   
Sorry - missed that one .

nslookup cnn.com comes back fast.

if I do nslookup mymachine.domain.com it comes back with error.

How do I make this resolve faster or something. I have no way to make an 
MX record
for this box. its all just local email. it never leaves the box.

Jerry
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] sendmail question

2009-10-21 Thread Les Mikesell
Jerry Geis wrote:
>
>> That's a few DNS timeouts.
>>
>>> / I have 127.0.0.1 localhost in the /etc/hosts file.
>> />/ 
>> />/ Very odd, any thoughts?
>> /
>> Are you mailing to localhost?
>>   
> I tried:
> mail panel
> mail pa...@localhost
> mail pa...@localhost.localdomain
> mail pa...@machine.domain.com (insert actual machine and domain)
> 
> All the above have the same slow 2 minute delay.
> 
> This is odd.

You still haven't answered how long nslookup takes to respond with these 
or your IP addresses.  I think sendmail will ask DNS for an MX record 
first because that's how mail is supposed to work - then if that fails 
it goes for an A record or your hosts file.

-- 
   Les Mikesell
lesmikes...@gmail.com

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] sendmail question

2009-10-21 Thread Jerry Geis
>
> Jerry Geis wrote:
> >>/ My guess would be a resolving problem also.
> />>/ Its usually what causes sendmail to slow down.
> />>/ Check your /etc/hosts file
> />>/ Dan
> />>/   
> />/ My /etc/hosts file is only has the "nameserver x.x.x.x" entry.
> /
> That should be in /etc/resolv.conf.
>   
Your right. it is - my typo.
> >/ the /var/log/maillog shows the entry right away when "mail" on the 
> />/ command line is done.
> /
> There should be an entry for submitting the mail and another for 
> delivering it.
>
>   
mailq -Ac only shows the submitting entry.
> >/ Again, this is mail originating on the the box and destination is on the 
> />/ same box.
> /
> What's the address?
>
>   
I did a "useradd panel" then "mail panel" and entered my text. its all 
on the local machine.

I do have a .procmailrc file that just matches subject and forwards that 
onto another app.
This works fine. Its just delayed by 2 minutes.

> >/ mailq always shows 0, even doing it repeatedly.
> />/ 
> />/ the mail delivery  is delayed exactly 2 minutes.
> /
> That's a few DNS timeouts.
>
> >/ I have 127.0.0.1 localhost in the /etc/hosts file.
> />/ 
> />/ Very odd, any thoughts?
> /
> Are you mailing to localhost?
>   
I tried:
mail panel
mail pa...@localhost
mail pa...@localhost.localdomain
mail pa...@machine.domain.com (insert actual machine and domain)

All the above have the same slow 2 minute delay.

This is odd.

Jerry
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] sendmail question

2009-10-21 Thread Les Mikesell
Jerry Geis wrote:
>> My guess would be a resolving problem also.
>> Its usually what causes sendmail to slow down.
>> Check your /etc/hosts file
>> Dan
>>   
> My /etc/hosts file is only has the "nameserver x.x.x.x" entry.

That should be in /etc/resolv.conf.

> the /var/log/maillog shows the entry right away when "mail" on the 
> command line is done.

There should be an entry for submitting the mail and another for 
delivering it.

> Again, this is mail originating on the the box and destination is on the 
> same box.

What's the address?

> mailq always shows 0, even doing it repeatedly.
> 
> the mail delivery  is delayed exactly 2 minutes.

That's a few DNS timeouts.

> I have 127.0.0.1 localhost in the /etc/hosts file.
> 
> Very odd, any thoughts?

Are you mailing to localhost?

-- 
   Les Mikesell
lesmikes...@gmail.com

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] sendmail question

2009-10-21 Thread Jerry Geis
>
> My guess would be a resolving problem also.
> Its usually what causes sendmail to slow down.
> Check your /etc/hosts file
> Dan
>   
My /etc/hosts file is only has the "nameserver x.x.x.x" entry.

the /var/log/maillog shows the entry right away when "mail" on the 
command line is done.
Again, this is mail originating on the the box and destination is on the 
same box.

mailq always shows 0, even doing it repeatedly.

the mail delivery  is delayed exactly 2 minutes.

I have 127.0.0.1 localhost in the /etc/hosts file.

Very odd, any thoughts?

Jerry
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] sendmail question

2009-10-21 Thread Dan Carl
Les Mikesell wrote:
> Jerry Geis wrote:
>   
>> Hi all,
>>
>> I have a local user account call "panel" on a machine.
>> When I use the mail command to manually send email to the panel account
>> it over 1 minute until that mail actually deposited in the mail account.
>>
>> What setting is that reduces this time?
>>
>> I changed /etc/sysconfig/sendmail the QUEUE=10s and that did not have 
>> any effect.
>> 
>
> You could look at /var/log/maillog to see what steps happened and the 
> timestamps.  My guess is that your DNS is badly broken and it is waiting 
> for the local machine name and/or IP to resolve.  Does 'nslookup' return 
> quickly with these?
>
>   
My guess would be a resolving problem also.
Its usually what causes sendmail to slow down.
Check your /etc/hosts file
Dan


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] sendmail question

2009-10-21 Thread Les Mikesell
Jerry Geis wrote:
> Hi all,
> 
> I have a local user account call "panel" on a machine.
> When I use the mail command to manually send email to the panel account
> it over 1 minute until that mail actually deposited in the mail account.
> 
> What setting is that reduces this time?
> 
> I changed /etc/sysconfig/sendmail the QUEUE=10s and that did not have 
> any effect.

You could look at /var/log/maillog to see what steps happened and the 
timestamps.  My guess is that your DNS is badly broken and it is waiting 
for the local machine name and/or IP to resolve.  Does 'nslookup' return 
quickly with these?

-- 
   Les Mikesell
lesmikes...@gmail.com


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] sendmail question

2009-10-21 Thread Chan Chung Hang Christopher
Jerry Geis wrote:
> Hi all,
>
> I have a local user account call "panel" on a machine.
> When I use the mail command to manually send email to the panel account
> it over 1 minute until that mail actually deposited in the mail account.
>
> What setting is that reduces this time?
>
> I changed /etc/sysconfig/sendmail the QUEUE=10s and that did not have 
> any effect.
>
>   
sendmail only queues if 1) the initial attempt suffered a temporary 
failure or 2) queueing mode was set.

Otherwise sendmail will immediately attempt to deliver the mail. Check 
the headers of the test mail in question to find out where there was a 
latency. If you have a large queue already then that is your problem and 
setting QUEUE=10s will not help.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] sendmail question

2009-10-21 Thread Jerry Geis
Hi all,

I have a local user account call "panel" on a machine.
When I use the mail command to manually send email to the panel account
it over 1 minute until that mail actually deposited in the mail account.

What setting is that reduces this time?

I changed /etc/sysconfig/sendmail the QUEUE=10s and that did not have 
any effect.

Thanks

Jerry
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos