stevecam wrote:
Hello,

I am trying to make use of the sendmailtransformer to send an email 'site
feedback' message to the site manager.

I'm copying the documentation but get the message rejected by the SMTP
server. This seems to be a configuration issue on the SMTP server, however
if I try to send a message by telneting to the SMTP server (port 25) from
the same machine as Cocoon I have no problem when using the same emailTo
address as seems to be invalid from Cocoon.

What about the From address?

I'm just hopeing that someone else may have seen this problem before.

I need to use the sendmailtransformer to be able to extract the message and
senders return email address from a page request and get it into the email
message.

So are you sending the mail "From" the supplied address, or from one that you control (and including the user-supplied one in the message body somewhere)? Are the SMTP envelope addresses the same as the corresponding header lines in the email you're sending?

The cocoon log file shows the following:

13511362 2008-02-27 16:21:24,213 [http-8082-Processor23] ERROR
sitemap.sendMail():527  - Exception during sending of mail
javax.mail.SendFailedException: Invalid Addresses
(com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay for
[EMAIL PROTECTED]
)
>    at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1294)

Anti-relaying. Basically, the mail server is seeing an email destined for a domain (geometryit.com) that it doesn't believe it handles, so it rejects it. Generally this is a good thing, as open relays get abused by spammers and blacklisted by anti-spam sites :-) What mail server are you running locally? What domains have you configured it to think are "local"?

One other consideration - where exactly are you specifying the mail host in your Cocoon configuration? cocoon.xconf, component configuration, or as a parameter to the transformer? You didn't specify exactly which version of Cocoon you're using, but I know that some have a bug in the mail sending components, such that it may not be picking up the value from the place you expect (can't remember the details, it might have been something like the component-specific value was ignored and it always used the cocoon.xconf default instead). If you don't have the same host specified in each of these places, maybe it's not actually connecting to the host you're expecting and that's why testing with telnet worked and this doesn't?


Andy.
--
http://pseudoq.sourceforge.net/  Open source java Sudoku app

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to