Mikijs Posted May 30, 2008 Report Share Posted May 30, 2008 domaju ka tev vajadzetu parbaudit to smtp sada veida http://pingability.com/smtptest.jsp Link to comment Share on other sites More sharing options...
Aleksejs Posted May 30, 2008 Report Share Posted May 30, 2008 Mikij, normālā gadījumā no ārpuses neviens nedrīkst varēt nosūtīt. Ja var nosūtīt, tad tas jau ir open-relay - un tādus vajag sist, kamēr tie vēl maziņi. Link to comment Share on other sites More sharing options...
eregi Posted May 30, 2008 Author Report Share Posted May 30, 2008 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 More sharing options...
Aleksejs Posted May 30, 2008 Report Share Posted May 30, 2008 Izlasi šo: http://php.lv/f/index.php?showtopic=9018&hl=smtp+telnet Link to comment Share on other sites More sharing options...
eregi Posted May 30, 2008 Author Report Share Posted May 30, 2008 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 = me@example.com ; 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 More sharing options...
Aleksejs Posted May 30, 2008 Report Share Posted May 30, 2008 Ja palaid: ps -ef Vai sendmail process vispār ir redzams? vai no ssh sesijas mēģināji palaist: telnet localhost 25 ? Link to comment Share on other sites More sharing options...
eregi Posted May 30, 2008 Author Report Share Posted May 30, 2008 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 More sharing options...
Aleksejs Posted May 30, 2008 Report Share Posted May 30, 2008 Nu, re - tātad sendmails strādā. Tagad pamēģini caur telnetu nosūtīt mailu. Link to comment Share on other sites More sharing options...
eregi Posted May 30, 2008 Author Report Share Posted May 30, 2008 (edited) Aleksej, man tāds maziņš, niecīgs jautājums, kā? :) Pag laikam atrad kā :) http://www.debianhelp.co.uk/mail.htm Edited May 30, 2008 by eregi Link to comment Share on other sites More sharing options...
Aleksejs Posted May 30, 2008 Report Share Posted May 30, 2008 Izlasi šo:http://php.lv/f/index.php?showtopic=9018&hl=smtp+telnet ;) Tur ir sesijas, kas nosūta e-pastu caur telnetu transskripcija. Link to comment Share on other sites More sharing options...
eregi Posted May 30, 2008 Author Report Share Posted May 30, 2008 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: es@woot.lv 250 2.1.0 es@woot.lv... Sender ok rcpt to: es@woot.lv 250 2.1.5 es@woot.lv... 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 More sharing options...
Aleksejs Posted May 30, 2008 Report Share Posted May 30, 2008 Tātad, visticamāk, ka jā. Starp citu... Kāds tas Tavs kods izskatās? Link to comment Share on other sites More sharing options...
eregi Posted May 30, 2008 Author Report Share Posted May 30, 2008 Dažus postus augstāk bij ielicis - http://paste.php.lv/7471?lang=php hmn, prikola pēc laidu pie rcpt mansepasts@inbox.lv un atbildēj 550 5.7.1 rcptemails@inbox.lv... Relaying denied. IP name lookup failed [manaip] Link to comment Share on other sites More sharing options...
Aleksejs Posted May 30, 2008 Report Share Posted May 30, 2008 To Tu laidi no ssh sesijas caur telnetu, vai ne? Link to comment Share on other sites More sharing options...
eregi Posted May 30, 2008 Author Report Share Posted May 30, 2008 (edited) Aleksej, jā! :) nu nejau php kodu, lol. Edited May 30, 2008 by eregi Link to comment Share on other sites More sharing options...
Recommended Posts