Re: - Email Notification Not Working

John Patrick <[email protected]> Wed, 28 Mar 2012 16:54:29 +0100
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <CAH9u10=xSNfiKDUYmncXU_4rQNK4zXrsF+szh05gHfQUFfvPyg@mail.gmail.com>
On 28 March 2012 16:19, CM Analyst <[email protected]> wrote:

> Unfortunately, there aren't any more details in the log file than what I
> pasted before.
>
> The sender and recipient addresses are my work email, so they are valid as
> I've provided them in the config file.
>
>
>
>   ------------------------------
> *From:* Julian Simpson <[email protected]>
> *To:* [email protected]
> *Sent:* Tuesday, March 27, 2012 2:21 AM
> *Subject:* Re: [Cruisecontrol-user] - Email Notification Not Working
>
>
>
> On 26 March 2012 23:17, CM Analyst <[email protected]> wrote:
>
> Greetings,
>
> After the build has completed, I am not getting email notification. Please
> note that this is a new installation of CruiseControl v2.8.4.
>
> Here's what I am seeing by way of the error message:
>
> nested exception is: ******
>             javax.mail.SendFailedException: Invalid Addresses;****
>   nested exception is: ****
>             javax.mail.SendFailedException: 504 5.5.2 <User>: Recipient
> address rejected: need fully-qualified address
>
>
>
> This is a pretty clear exception.  The mailserver is rejecting the email.
> If I were you I'd look at the CruiseControl logs to see what email
> addresses it's attempting to deliver ...
>
> J.
>
>
>
> ****
> ** **
> **The email addresses I've specified in the config.xml are valid. ****I've also
> verified that I can send email via SMTP from the host where CruiseControl
> is installed.**
> ****
> ****
> **From the config.xml:**
> ****
> **<publishers>**
> ** <email mailhost="SMTPhost.com"**
> ** returnaddress="[email protected] <[email protected]>">**
> ** subjectprefix="[Cruise Control]: Build Results..."**
> ** <always address="[email protected]"/ <[email protected]%22/>>
>
>  <failure address="[email protected]"/ <[email protected]%22/>>
>  **
> ** </email>**
> **</publishers>**
> ****
> **Please advise.**
>
>
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> Cruisecontrol-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
>
>
>
>
> --
> Julian Simpson
> The Build Doctor Ltd.
> http://www.build-doctor.com
> [email protected]
> (+44) 207 183 0323
>
>
>
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> Cruisecontrol-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
>
>
>
>
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> Cruisecontrol-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
>
>
>From the error, it does look like the SMTP server your using, doesn't like
those email addresses.

Have you tried manually sending an email via the SMTP server your using,
i.e. using telnet

Another option would be to tcpdump/wireshark what is being sent over the
network to the SMTP server and confirm it's using the details your
expecting.

Have you tried open the file in say vi and switch on visible characters.
Could it be a character set issue, or non printable characters causing you
issue. The email server sees them but they don't display. Try deleting the
email address plus a few characters either side and retyping.

John

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure

_______________________________________________
Cruisecontrol-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user