OSX Lion에서 접미사가 명령을 수락하지 않음-시간 초과가 발생 함 postfix를 실행 중이며

전자 메일을 보내야하는 MacBook Pro에서 웹 응용 프로그램을 작성하고 있습니다. 응용 프로그램이 전송을 시도하면 연결 시간이 초과됩니다. 나는 postfix를 실행 중이며 II는 여기에 있는 지침을 따랐습니다 .

서버 문제를 해결하기 위해 텔넷을 사용하여 포트 25의 로컬 호스트에 수동으로 연결했습니다. 서버에 성공적으로 연결할 수 있었지만 명령을 입력해도 응답이 없습니다. 여기는 대본입니다.

Benjamin-Brames-MacBook-Pro:LaunchDaemons bbrame$ telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
helo bbrame
mail from: ben@benbrame.com
rcpt to: ben@benbrame.com

작동하는 메일 서버에 연결하고 동일한 명령을 입력했습니다. 메일 서버는 예상대로 입력 한 각 명령에 대한 응답을 제공했습니다.

Benjamin-Brames-MacBook-Pro:~ bbrame$ telnet smtp.newnorth.net 25
Trying 66.133.129.10...
Connected to relay.glb.frontiernet.net.
Escape character is '^]'.
220 relay03.roch.ny.frontiernet.net ESMTP Postfix
helo bbrame
250 relay03.roch.ny.frontiernet.net
mail from: made_up_email@frontiernet.net
501 5.1.7 Bad sender address syntax. See http://postmaster.frontiernet.net

MacBook의 메일 로그에 연결하면 인식하지만 후속 명령은 등록되지 않습니다.

Dec  1 18:53:50 Benjamin-Brames-MacBook-Pro postfix/postscreen[21354]: CONNECT from [127.0.0.1]:56145
Dec  1 18:53:50 Benjamin-Brames-MacBook-Pro postfix/postscreen[21354]: WHITELISTED [127.0.0.1]:56145
Dec  1 18:54:08 Benjamin-Brames-MacBook-Pro postfix/smtpd[21359]: fatal: open /etc/postfix/submit.cred: No such file or directory
Dec  1 18:54:09 Benjamin-Brames-MacBook-Pro postfix/master[21176]: warning: process /usr/libexec/postfix/smtpd pid 21359 exit status 1
Dec  1 18:54:09 Benjamin-Brames-MacBook-Pro postfix/master[21176]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling

연결이 시간 초과되는 이유를 알고 있습니까?

감사!



답변

마지막 3 개의 로그 메시지가 범인으로 밝혀졌습니다. 그들에 대한 인터넷 검색은 이 페이지를 켜고 ;

콘솔이 표시하는 문제를 해결하려면 다음을 수행해야합니다.

  • 디렉토리 에 submit.cred파일을 만듭니다 /etc/postfix( sudo touch /etc/postfix/submit.cred할 것입니다).
  • 해당 파일의 헤더를 작성하십시오. sudo echo "submitcred version 1" >> /etc/postfix/submit.cred
  • 메일을 제출할 수있는 사용자 수만큼 줄을 다음과 같은 형식으로 추가하십시오 hostname|user|passwd.sudo echo''hostname|username|password" >> /etc/postfix/submit.cred
  • 파일에 적절한 권한을 부여하십시오. sudo chmod 600 /etc/postfix/submit.cred

이 작업을 완료하면 postfix를 다시 시작할 수 있으며 모든 것이 원활하게 실행됩니다.

/etc/postfix/submit.cred 파일을 만들고 권한을 0600으로 설정했습니다. 그 후 모든 것이 작동하기 시작했습니다.


답변

파일 imap_submit_cred_file = /etc/postfix/submit.cred에서 주석 처리 /etc/postfix/main.cf하십시오. 그런 다음 사용자 이름과 비밀번호를 구성 할 필요가 없습니다. Postfix는 기본적으로 localhost를 수신합니다.


답변