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
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.
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 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
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
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?
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
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
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
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 panel@localhost mail panel@localhost.localdomain mail panel@machine.domain.com (insert actual machine and domain)
All the above have the same slow 2 minute delay.
This is odd.
Jerry
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 panel@localhost mail panel@localhost.localdomain mail panel@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.
/
/>>/ 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 http://lists.centos.org/mailman/listinfo/centos />/ mail panel at localhost.localdomain http://lists.centos.org/mailman/listinfo/centos />/ mail panel at machine.domain.com http://lists.centos.org/mailman/listinfo/centos (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
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
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.
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.
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.
At Wed, 21 Oct 2009 14:26:05 -0400 CentOS mailing list centos@centos.org 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 http://lists.centos.org/mailman/listinfo/centos />/ mail panel at localhost.localdomain http://lists.centos.org/mailman/listinfo/centos />/ mail panel at machine.domain.com http://lists.centos.org/mailman/listinfo/centos (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