[PHP] PHP mail() error (“sh: -t: command not found”)

2023-05-18 KENNETH 0

PHP mail() error (“sh: -t: command not found”)   PHP code   exec result     처음 보는 에러라서 흠칫… 대체 -t 는 근거가 뭘까 싶었는데.. php.ini 의 설정과 관련이 있음     정상(??)서버     문제의 서버 앞의 sendmail 이 없으니 발생하는 에러로 보여짐     해결 php.ini 수정 default   변경        

No Image

telnet 을 이용한 smtp 릴레이(relay) 테스트

2015-04-30 KENNETH 0

1. 발송과정 (노란색 표시가 실제입력) root@ns1:~ 14:37:17 # telnet localhost 25 Trying 127.0.0.1… Connected to localhost.localdomain (127.0.0.1). Escape character is ‘^]’. 220 ns1.greatuser.net ESMTP ehlo 250-ns1.greatuser.net 250-STARTTLS 250-AUTH LOGIN CRAM-MD5 PLAIN 250-AUTH=LOGIN CRAM-MD5 PLAIN 250-PIPELINING 250 8BITMIME mail from: [email protected] 250 ok rcpt to: [email protected] 250 ok data 354 go ahead From: [email protected] To: [email protected] Subject: This is mail test on telnet kekekeke hahahaha -_-;;;;;; . 250 ok 1259473124 qp 21929 quit 221 ns1.greatuser.net Connection closed by foreign host.   2. 발송후 수신된 메세지원본 Return-Path: <[email protected]> Delivered-To: [email protected] Received: (qmail 19348 invoked by uid 1001); 29 Nov 2009 14:38:43 +0900 Hanbiro-rcptto: [email protected]| Hanbiro-remoteip: 210.100.100.XXX Received: from unknown (HELO ns1.greatuser.net) (210.100.100.XXX) by 0 (qmail 1.03 + ejcp v14) with AES256-SHA encrypted SMTP; 29 Nov 2009 14:38:43 +0900 Received-SPF: pass (0: SPF record at greatuser.net designates 210.100.100.XXX as permitted sender) Received: (qmail [ more… ]