Jump to content
php.lv forumi

mail


eregi

Recommended Posts

  • Replies 43
  • Created
  • Last Reply

Top Posters In This Topic

sūdīgākais, ka sendmail logus nekur nevaru atrast.

Interesanta lieta, ka sendmails man startējās kādas 2 min un apstrāda, ar notiek tikpat ilgi, pat, ja taisos sūtīt ~ 1 burtu..

 

Aleksej, kā lai es sūtu to mailu, ja man tam serverim ir tikkai ssh pieeja? :) nav man tur nekādi parastie e-pasta klienti.

 

P.s itkā negribās nekādus maimus likt, kaut kā gribās pure sendmailu.

Link to comment
Share on other sites

Biju to lasījis, bet tagad izlasot krustu šķērsām vienalga nekas nelikās skaidrāks, vienīgais, ka pievienoju lighttpd pie trusted-users

pašreizējā situācija.

 

1. sendmails startējās ļōti ilgi, vairāk pat nekā tās 2 min, itkā lasīju, ka tas ir saistāms ar dns konfigu, bet neko sīkāk nezinu.

2. @php.ini

[mail function]
; For Win32 only.
;SMTP = localhost
;smtp_port = 25

; For Win32 only.
;sendmail_from = [email protected]

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
sendmail_path = "/usr/sbin/sendmail -t -i"

; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =

pieliku ; pie SMTP šitiem, jo tur minēts, ka tik win32 only.. un sendmails atrodās iekš /usr/sbin/sendmail, takā tam vajadzēt būt ok.

3. Laižu php kodu, kuru esmu no kaut kurienes izgriezis - http://paste.php.lv/7471?lang=php itkā atgriež 'viss ok', konsolē ar errorus neuzmet, bet inboxā jauns meils neuzrādās..

 

visvairāk man rada šaubas, ka sendmails tik ilgi startējās un paiet pailgs laiks, līdz tas php skripts beidz savu darbīb.

Link to comment
Share on other sites

izgriezums ar procesiem, kur nos ir saistīts ar sendmail

root	 17616	 1  0 13:36 ?		00:00:00 sendmail: accepting connections
root	 17617 17616  0 13:36 ?		00:00:00 sendmail: ./m4TGH7lg011478 gsmtp
smmsp	17619	 1  0 13:37 ?		00:00:00 sendmail: Queue runner@00:30:00
root	 17921 17616  0 14:06 ?		00:00:00 sendmail: ./m4TGO2A7011543 gmail
root	 18025 18019  0 14:19 ?		00:00:00 /usr/sbin/sendmail -FCronDaemon

 

eh pagāj kāds laiks, kamēr emergojās telenet-bsd, žēl, ka telnet vairāk neliek standartā iekšā..

# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 csp ESMTP Sendmail 8.14.0/8.14.0; Fri, 30 May 2008 15:04:35 +0300

Link to comment
Share on other sites

Nu localhostam aizsūtij..

# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 csp ESMTP Sendmail 8.14.0/8.14.0; Fri, 30 May 2008 15:25:07 +0300
helo
501 5.0.0 helo requires domain address
helo localhost
250 csp Hello csp [127.0.0.1], pleased to meet you
mail from: [email protected]
250 2.1.0 [email protected]... Sender ok
rcpt to: [email protected]
250 2.1.5 [email protected]... Recipient ok
data
354 Enter mail, end with "." on a line by itself
From: es To: es Subject: mees yo!
.
250 2.0.0 m4UCP7cT013086 Message accepted for delivery
quit
221 2.0.0 csp closing connection
Connection closed by foreign host.

 

Tātad faktiski mailu varu aizsūtīt un problēma ir php kodā?

Link to comment
Share on other sites


×
×
  • Create New...