I've followed this guide to setup an email server with IMAP and SMTP. IMAP is working great, but SMTP doesn't work.
If I try to send a message using telnet:
MAIL FROM: <tom@xxxxxxxx.com> 250 2.1.0 Ok RCPT TO: <a@example.com> 554 5.7.1 <a@example.com>: Relay access denied
Attempting to login with my mail client (Mail.app on OS X Lion) gives this error in the system log:
postfix/smtpd[13322]: warning: my.computer.hostname[12.34.56.78]: SASL PLAIN authentication failed: no mechanism available
The client says "The server rejected the password given."
What can I do to get email relaying working?