cancel
Showing results for 
Search instead for 
Did you mean: 

how to send mail to external mail recipient

Former Member
0 Kudos

redwood CPS version: Build: M28.17-35130

HP-UX

i need to use job "System_Mail_Send" to send email.

i have the smtp server, sender, and sender password.

i can send email to recipients in the mail server.

but fail to send to external recipient.

see the exception quoted in bold.

it seems the mail session need a password. but in the job defintion, there in not way to set it.

i try to set the sender password in the "Credentials",like below:

1: create smtp credential protocol.

2: create a smtp credential with mail server as endpoitn and mail sender as realuser

but it still failed.

how to do it?

"

*-- JOB RUN STACK TRACE --*

javax.mail.SendFailedException: Invalid Addresses;

nested exception is:

* com.sun.mail.smtp.SMTPAddressFailedException: 553 host denies relay (eyou mta)*

* at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1196)*

* at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:584)*

* at javax.mail.Transport.send0(Transport.java:169)*

* at javax.mail.Transport.send(Transport.java:98)*

* at com.redwood.scheduler.infrastructure.mail.Mailer.sendMessage(Mailer.java:145)*

* at com.redwood.scheduler.infrastructure.mail.Mailer.sendMessage(Mailer.java:63)*

* at com.redwood.scheduler.infrastructure.mail.Mailer.sendMessage(Mailer.java:38)*

* at com.redwood.scheduler.system.jobs.SendMail.sendMessage(SendMail.java:191)*

* at com.redwood.scheduler.system.jobs.SendMail.execute(SendMail.java:151)*

* at com.redwood.scheduler.systemjobservice.impl.JobWorker.doWork(JobWorker.java:233)*

* at com.redwood.scheduler.infrastructure.workqueue.Worker.run(Worker.java:59)*

* at java.lang.Thread.run(Thread.java:725)*

Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 553 host denies relay (eyou mta)

* at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1047)*

* ... 11 more*

"

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

A "No relay" message from the mailserver usually means that it thinks you are an outside user trying to send to another outside user, from point of view of the mailserver.

So if user(at)a.com tries to send an e-mail to user(at)c.com via the mailserver of domain b.com, then the mailserver should refuse that with a no relay message.

So my first question would be if the sender address is a valid (and known) address in the domain that is served by the smtp server.

Another question is if you are using an external smtp server or an internal smtp server of your company. External servers usually have more strict rules regarding relay than internal servers, because internal servers will only accept connections from the internal network anyway.

Regards,

Anton.

Former Member
0 Kudos

thanks anton.

first, the sender address is valid.

s @ a.com via mailserver of domain a.com to send mail to recipients.

if send to r @ a.com, then it works.

if send to r @ b.com, then it fails.

i think it is an internal server.

actually, the server has 2 ip.

one is 211.94.66.68(external), and the other is 195.0.1.28(internal).

in our DEV, we use 211.94.66.68(external), both are ok.

in our PRO, we has to use 195.0.1.28(internal), only internal is ok.