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 lesmikesell at gmail.com
> > 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. >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 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. Jerry
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