Toon posts:

Sendmail opeens traag?

Pagina: 1
Acties:

Verwijderd

Topicstarter
Hoi,

Na maanden goed gewerkt te hebben doet sendmail het nu opeens zeer traag! Ik gebruik de mail() functie in PHP scripts om te mailen. Dat verliep eerder altijd zeer snel. Wanneer ik nu een simpel PHP script aanroep duurt het wel 2 minuten voordat die is verwerkt, hoe is dit mogelijk?? Ik gebruik Red Hat 7.2 en dit is wat ik in /var/log/maillog vindt:

code:
1
2
3
4
5
6
7
8
9
Nov 14 10:22:15 localhost sendmail[1264]: gAE9MF101264: from=nobody, size=798, class=0, nrcpts=0, msgid=<200211140922.gAE9MF101264@localhost>, relay=nobody@localhost
Nov 14 10:25:58 localhost sendmail[1275]: My unqualified host name (localhost) unknown; sleeping for retry
Nov 14 10:42:15 localhost sendmail[1004]: My unqualified host name (localhost) unknown; sleeping for retry
Nov 14 10:43:15 localhost sendmail[1004]: unable to qualify my own domain name (localhost) -- using short name
Nov 14 10:43:15 localhost sendmail[1004]: alias database /etc/aliases rebuilt by root
Nov 14 10:43:15 localhost sendmail[1004]: /etc/aliases: 40 aliases, longest 10 bytes, 395 bytes total
Nov 14 10:43:16 localhost sendmail[1071]: My unqualified host name (localhost) unknown; sleeping for retry
Nov 14 10:44:12 localhost sendmail[1100]: My unqualified host name (localhost) unknown; sleeping for retry
Nov 14 10:44:16 localhost sendmail[1071]: unable to qualify my own domain name (localhost) -- using short name


Wat is er fout gegaan? Ik heb niets aan de PHP scripts gewijzigd en niets aan de configuratie van mijn Linux server... :'(

  • DPLuS
  • Registratie: April 2000
  • Niet online

DPLuS

 

Ik denk dat er iets mis is met je DNS.

code:
1
My unqualified host name (localhost) unknown; sleeping for retry


Hij kan iig iets niet vinden.
Wat staat er in je /etc/hosts en /etc/resolv.conf en /etc/nsswitch.conf...
Kijk anders je sendmail configuratie even na in /etc/mail/

Verwijderd

Topicstarter
DPLuS schreef op 14 November 2002 @ 11:19:
Ik denk dat er iets mis is met je DNS.

code:
1
My unqualified host name (localhost) unknown; sleeping for retry


Hij kan iig iets niet vinden.
Wat staat er in je /etc/hosts en /etc/resolv.conf en /etc/nsswitch.conf...
Kijk anders je sendmail configuratie even na in /etc/mail/
/etc/hosts
127.0.0.1 lxserver windesheim.nl edens

/ect/resolv.conf
search localhost
nameserver 62.251.0.6 // DNS van mijn ADSL provider (HCCnet)
nameserver 62.251.0.7

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Legal entries are:
#
#       nisplus or nis+         Use NIS+ (NIS version 3)
#       nis or yp               Use NIS (NIS version 2), also called YP
#       dns                     Use DNS (Domain Name Service)
#       files                   Use the local files
#       db                      Use the local database (.db) files
#       compat                  Use NIS on compat mode
#       hesiod                  Use Hesiod for user lookups
#       [NOTFOUND=return]       Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files nisplus
shadow:     files nisplus
group:      files nisplus

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

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files


Aan deze files heb ik niets gewijzigd, zo heeft het ook altijd gewerkt. Kan ik misschien iets anders instellen?

  • Puntslash
  • Registratie: December 2000
  • Niet online
Moest localhost.localdomain ook niet in de /etc/hosts staan? Ik ben een keer gehad dat ie ook heel traag was, omdat ik dat had veranderd..

Verwijderd

Topicstarter
xxplosiefje schreef op 14 november 2002 @ 11:33:
Moest localhost.localdomain ook niet in de /etc/hosts staan? Ik ben een keer gehad dat ie ook heel traag was, omdat ik dat had veranderd..
Ik heb nu de file /etc/hosts als volgt aangepast:

localhost.localdomain localhost
localhost lx-server windesheim.nl edens


Dit verhelpt mijn probleem ook niet :'(

Verwijderd

127.0.0.1 localhost

moet het zijn. En die 2de lijkt mij niet goed.

  • DPLuS
  • Registratie: April 2000
  • Niet online

DPLuS

 

Verwijderd schreef op 14 november 2002 @ 12:47:
127.0.0.1 localhost

moet het zijn. En die 2de lijkt mij niet goed.
I second that.
Zet in je /etc/hosts:
127.0.0.1 localhost

  • miniBSD
  • Registratie: Augustus 2002
  • Laatst online: 20-12-2023
zie bericht hieronder

Quidquid latine dictum sit, altum sonatur (Whatever is said in Latin sounds profound).


  • miniBSD
  • Registratie: Augustus 2002
  • Laatst online: 20-12-2023
En voeg dit eens toe:

127.0.0.1 localhost.<jouw domeinnaam hier>.

Let op de punt aan het einde.
Ik weet niet wat je domeinnaam is, dus dat zul je even zelf moeten aanpassen.

Quidquid latine dictum sit, altum sonatur (Whatever is said in Latin sounds profound).


Verwijderd

Topicstarter
miniBSD schreef op 14 November 2002 @ 14:35:
En voeg dit eens toe:

127.0.0.1 localhost.<jouw domeinnaam hier>.

Let op de punt aan het einde.
Ik weet niet wat je domeinnaam is, dus dat zul je even zelf moeten aanpassen.
Hoi, ik denk dat het zo moet gaan lukken, bedankt... Nog even een simpel vraagje, maar ik kom er zo niet uit... Hoe kan ik zonder mijn hele server te rebooten de wijzigingen toepassen in hosts file? Hoe kan ik bijvoorbeeld alleen sendmail handmatig restarten?? :*)

Verwijderd

killall -HUP sendmail

of anders: man sendmail
Pagina: 1