Sending mail via SMTP

This used to work, however since the move it no longer works. Any ideas?

[worth]$ telnet localhost 25
Trying 127.0.0.1…
Connected to localhost.
Escape character is ‘^]’.
220 worth.dreamhost.com ESMTP
HELO worth.dreamhost.com
250 worth.dreamhost.com
MAIL FROM: njh@bandsman.co.uk
250 2.1.0 Ok
RCPT TO: njh@bandsman.co.uk
554 5.7.1 njh@bandsman.co.uk: Recipient address rejected: Access denied

-Nigel

You now have to authenticate to send email using SMTP, even via localhost on shared web servers. (Without that, we have no way to track who sent it.)

It used to work on Jagara, it broke in the move to Worth.

How to I authenticate using Mail::Sendmail?

http://search.cpan.org/~mivkovic/Mail-Sendmail-0.79/Sendmail.pm

-Nigel

The documentation for the Mail::Sendmail module indicates that it doesn’t support authentication:

We use Net::SMTP internally. It’s not quite the same, but should be suitable for your needs.

I just solved the same problem in PHP by installing Pear locally and installing Mail, SMTP, and a beta auth package. I got it working last night with a minimum of frustration. :slight_smile: