kefirfromperm / grails-asynchronous-mail

The Grails Asynchronous Mail plugin
http://grails.org/plugin/asynchronous-mail
21 stars 36 forks source link

avax.mail.MessagingException: Could not connect to SMTP host: smtp.udag.de, port: 25, response: -1 #45

Closed confile closed 9 years ago

confile commented 9 years ago

Sometimes I get the following error when I try to send mails. This does not happen all the time but sometimes.

2015-08-19 12:23:01,637 [ForkJoinPool-39-worker-1] WARN  asyncmail.AsynchronousMailProcessService  - Attempt to send the message with id=13 was failed.
Message: Mail server connection failed; nested exception is javax.mail.MessagingException: Could not connect to SMTP host: smtp.udag.de, port: 25, response: -1. Failed messages: javax.mail.MessagingException: Could not connect to SMTP host: smtp.udag.de, port: 25, response: -1
   Line | Method
->> 131 | sendMessage         in grails.plugin.mail.MailMessageBuilder
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|    55 | sendMail            in grails.plugin.mail.MailService
|    59 | sendMail . . . . .  in     ''
|    12 | send                in grails.plugin.asyncmail.AsynchronousMailSendService
|    73 | processEmailMessage in grails.plugin.asyncmail.AsynchronousMailProcessService
|    30 | doCall              in grails.plugin.asyncmail.AsynchronousMailProcessService$_findAndSendEmails_closure1_closure2
|   192 | doCall . . . . . .  in groovyx.gpars.pa.GParsPoolUtilHelper$_eachParallelPA_closure8
|   640 | leafApply           in groovyx.gpars.extra166y.AbstractParallelAnyArray$OUPap
|   147 | atLeaf . . . . . .  in groovyx.gpars.extra166y.PAS$FJOApply
|   108 | compute             in groovyx.gpars.extra166y.PAS$FJBase
|   148 | exec . . . . . . .  in jsr166y.RecursiveAction
|   305 | doExec              in jsr166y.ForkJoinTask
|   575 | execTask . . . . .  in jsr166y.ForkJoinWorkerThread
|   755 | scan                in jsr166y.ForkJoinPool
|   617 | work . . . . . . .  in     ''
^   369 | run                 in jsr166y.ForkJoinWorkerThread
Caused by MessagingException: Could not connect to SMTP host: smtp.udag.de, port: 25, response: -1
->> 1972 | openServer          in com.sun.mail.smtp.SMTPTransport
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|   656 | protocolConnect     in     ''
|   345 | connect . . . . . . in javax.mail.Service
|   131 | sendMessage         in grails.plugin.mail.MailMessageBuilder
|    55 | sendMail . . . . .  in grails.plugin.mail.MailService
|    59 | sendMail            in     ''
|    12 | send . . . . . . .  in grails.plugin.asyncmail.AsynchronousMailSendService
|    73 | processEmailMessage in grails.plugin.asyncmail.AsynchronousMailProcessService
|    30 | doCall . . . . . .  in grails.plugin.asyncmail.AsynchronousMailProcessService$_findAndSendEmails_closure1_closure2
|   192 | doCall              in groovyx.gpars.pa.GParsPoolUtilHelper$_eachParallelPA_closure8
|   640 | leafApply . . . . . in groovyx.gpars.extra166y.AbstractParallelAnyArray$OUPap
|   147 | atLeaf              in groovyx.gpars.extra166y.PAS$FJOApply
|   108 | compute . . . . . . in groovyx.gpars.extra166y.PAS$FJBase
|   148 | exec                in jsr166y.RecursiveAction
|   305 | doExec . . . . . .  in jsr166y.ForkJoinTask
|   575 | execTask            in jsr166y.ForkJoinWorkerThread
|   755 | scan . . . . . . .  in jsr166y.ForkJoinPool
|   617 | work                in     ''
^   369 | run . . . . . . . . in jsr166y.ForkJoinWorkerThread
kefirfromperm commented 9 years ago

Sometime your SMTP server is down.

confile commented 9 years ago

Thanks for help.

confile commented 9 years ago

@kefirfromperm Do you know how I can make my own SMTP server with Grails just for sending not for receiving emails?

kefirfromperm commented 9 years ago

I don't think it's possible. I use Postfix or FakeSMTP for tests.