I am building a web application on my MacBook Pro which needs to send email. When the application attempts to send, the connection times out. I am running postfix and I I followed the directions found here.
To troubleshoot the server, I used telnet to manually connect to localhost on port 25. I was able to connect to it successfully, but I received no response as I typed commands. Here is a transcript.
Benjamin-Brames-MacBook-Pro:LaunchDaemons bbrame$ telnet localhost 25 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. helo bbrame mail from: firstname.lastname@example.org rcpt to: email@example.com
I connected to working mail server and typed the same commands. The mail server gave a response to each command I typed as expected.
Benjamin-Brames-MacBook-Pro:~ bbrame$ telnet smtp.newnorth.net 25 Trying 126.96.36.199... 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: firstname.lastname@example.org 501 5.1.7 Bad sender address syntax. See http://postmaster.frontiernet.net
The mail log on my MacBook shows that it recognizes when I connect, but doesn't register any subsequent commands.
Dec 1 18:53:50 Benjamin-Brames-MacBook-Pro postfix/postscreen: CONNECT from [127.0.0.1]:56145 Dec 1 18:53:50 Benjamin-Brames-MacBook-Pro postfix/postscreen: WHITELISTED [127.0.0.1]:56145 Dec 1 18:54:08 Benjamin-Brames-MacBook-Pro postfix/smtpd: fatal: open /etc/postfix/submit.cred: No such file or directory Dec 1 18:54:09 Benjamin-Brames-MacBook-Pro postfix/master: warning: process /usr/libexec/postfix/smtpd pid 21359 exit status 1 Dec 1 18:54:09 Benjamin-Brames-MacBook-Pro postfix/master: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Any guesses why the connection is timing out?