[Building Sakai] sakai smtp server config for sending non-user mails with subdomains

Steve Swinsburg steve.swinsburg at gmail.com
Sun Dec 15 16:56:36 PST 2013


Your setup looks ok, it might be the way it treats the hyphen. The fact
that sendToUsers works is promising. I have heard that hyphens in domain
names can cause issues. Can you turn on debug logging for the email service
then run your code and see what you get? It might be doing an encode or
something on the address?

cheers,
Steve


On Sat, Dec 14, 2013 at 12:41 PM, Michael Mertins <
mertins at zedat.fu-berlin.de> wrote:

>
>
> Hi,
>
> how can I configure the smtp-Server of my Sakai 2.9.2 to send mails to
> not-yet-users with subdomains?
>
> In my tool I use the API to write mails automatically and to those that
> have a mail like mine (mertins at zedat.fu-berlin.de),
> emailService.sendMail() gives error:
>
> Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 501
> <"mertins at zedat.fu-berlin.de">: recipient address must contain a domain
>
> When I use emailService.sendToUsers() it works, so there must be something
> wrong in the configuration.
>
> This probably has been asked before but I can't find the right search
> expression and have looked for this error already but only get java mail
> explainations in Google...
>
> In my sakai.properties I have
> smtp.dns.1=...
> smtp.dns.2=...
> smtp at org.sakaiproject.email.api.EmailService=...
> smtpUseSSL at org.sakaiproject.email.api.EmailService=false
>
>
> Best wishes,
>
>
> Michael Mertins
>
>
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to
> sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of
> "unsubscribe"
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20131216/f4f7a456/attachment.html 


More information about the sakai-dev mailing list