Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.4: An alternative postfix/smtpd solution on port 25' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: An alternative postfix/smtpd solution on port 25
Authored by: mbogosian on Sep 14, '05 03:15:07PM

I did have to use the UserName key as mentioned in the last comment. Using sudo gave an error.

It does appear that using sudo is somewhat of a hack. this comment has the corrected lines in the /System/Library/LaunchDaemons/smtp.plist file to use UserName instead of sudo.

Another thing I noticed - it seems that Thunderbird is too impatient to wait for smtpd to launch. It claims there's no server available, though if you watch with the process viewer, you can see smtpd pop up when you try to send. This is a problem with Thunderbird I suspect, not the config in this hint.

This seems strange to me. A good way to test your connection is to use telnet:

$ telnet localhost 25
Trying ::1...
Connected to localhost.
Escape character is '^]'.
220 YOUR_MACHINE_NAME ESMTP Postfix
ehlo localhost
250-YOUR_MACHINE_NAME
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250 8BITMIME
mail from: YOUR_EMAIL_ADDRESS
250 Ok
rcpt to: YOUR_EMAIL_ADDRESS
250 Ok
data
354 End data with <CR><LF>.<CR><LF>
From: YOUR_EMAIL_ADDRESS
To: YOUR_EMAIL_ADDRESS 
Subject: telnet test

This is a test. Thanks!
.
250 Ok: queued as 5BADA12A865
quit
221 Bye
Connection closed by foreign host.

On my machine (iBook G4) it doesn't take very long at all to come up:

$ time (echo -n quit$'\r'$'\n' ; sleep 1) | telnet localhost 25
Trying ::1...
Connected to localhost.
Escape character is '^]'.
220 YOUR_MACHINE_NAME ESMTP Postfix
221 Bye
Connection closed by foreign host.
zsh: done       (; echo quit$'\r'$'\n'; sleep 1; ) | 
zsh: exit 1     telnet localhost 25
(; echo quit$'\r'$'\n'; sleep 1; )  0.00s user 0.01s system 0% cpu 1.013 total
telnet localhost 25  0.01s user 0.02s system 11% cpu 0.237 total

If your configuration behaves like mine, and Thunderbird really has a problem with a connection time of less than 0.237 seconds, I'm not sure it would ever connect to a slow ISP's SMTP server (especially over dialup). It's likely that it's something else.



[ Reply to This | # ]
10.4: An alternative postfix/smtpd solution on port 25
Authored by: Skurfer on Sep 15, '05 01:39:40PM

Yeah, I tested with telnet several times before doing anything with a mail client. Everything looked fine there. Things also seem to work fine in Mail. It's just Thunderbird.



[ Reply to This | # ]
10.4: An alternative postfix/smtpd solution on port 25
Authored by: ssevenup on Dec 11, '05 11:36:52PM

Same here for TBird 1.5RC :-(

---
Mark Moorcroft
ELORET Corp. - NASA/Ames RC
Sys. Admin.



[ Reply to This | # ]