[Building Sakai] [Deploying Sakai] Outgoing Email Configuration Error

Miriam esteve miesvesakai at gmail.com
Thu Apr 8 01:48:31 PDT 2010


Hi, I try to enable outgoing mail in Sakai 2.7,  as I enabled in sakai 2.6
but something is wrong in my configuration.

I'm using QMAIL to send through localhost the mails, like a bridge, for no
autentication.

1- I start QMAIL and ok.
2- I try to send me an email through console, and OK.

3- I configure the sakai.properties.
serverName=localhost
...
smtp at org.sakaiproject.email.api.EmailService=localhost

and also I change the default smtp.port=8025, but neither works, shows the
same menssage.

4- I check that qmail is running:
# ps aux

.....
qmails   25470  0.0  0.0   3856   576 ?        S    Apr07   0:00 qmail-send
qmaill   25472  0.0  0.0   3804   552 ?        S    Apr07   0:00 splogger
qmail
root     25473  0.0  0.0   3844   440 ?        S    Apr07   0:00
qmail-lspawn |
qmailr   25474  0.0  0.0   3844   472 ?        S    Apr07   0:00
qmail-rspawn
qmailq   25475  0.0  0.0   3800   428 ?        S    Apr07   0:00 qmail-clean
....
but, when Sakai tries to send an email,

ERROR:

2010-04-07 12:49:14,611  WARN http-8081-Processor21
org.sakaiproject.sitemanage.impl.ETSUserNotificationProviderImpl -
org.sakaiproject.sitemanage.impl.ETSUserNotificationProviderImpl at 64b99636 -
no 'setup.request' in configuration
2010-04-07 12:49:15,163  WARN http-8081-Processor21
org.sakaiproject.email.impl.BasicEmailService - Email.sendMail: exception:
Could not connect to SMTP host: localhost, port: 25
javax.mail.MessagingException: Could not connect to SMTP host: localhost,
port: 25;
  nested exception is:
        java.net.ConnectException: Connection refused
        at
com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1706)
....


Anyone can Help me?

Thanks in advance.



 2010/3/30 Steve Swinsburg <steve.swinsburg at gmail.com>

> Hi Sri,
>
> For our mailserver I generally only need:
> smtp at org.sakaiproject.email.api.EmailService=smtp.server.edu.au
>
> So assuming xyz.edu is a valid SMTP server, it should work. What are your
> settings for your desktop mail client? The SMTP server should be the same.
>
> However, your second issue is a DNS one, you need a valid serverName, eg:
> serverName=alliance.anu.edu.au
>
> cheers,
> Steve
>
>
> On 31/03/2010, at 8:06 AM, Sri Kota wrote:
>
> Steve,
> Yes, I realize that I don't need James. What are the appropriate settings
> then?
>
> If I do:
> smtp at org.sakaiproject.email.*impl.BasicEmailService*=xyz.edu
> smtpPort at org.sakaiproject.email.*impl.BasicEmailService*=25
>
> I get:
> WARN http-8080-Processor25 org.sakaiproject.email.impl.BasicEmailService -
> sendMail: smtp not set
>
>
> If I do:
> smtp at org.sakaiproject.email.*api.EmailService*=xyz.edu
> smtpPort at org.sakaiproject.email.*api.EmailService*=25
>
> I get:
> WARN http-5500-Processor22 org.sakaiproject.email.impl.
> BasicEmailService - Email.sendMail: exception: Sending failed;
>   nested exception is:
>         class javax.mail.MessagingException: 553 5.5.4
> <postmaster at localhost>...
>  Real domain name required for sender address
>
> Which is the right one anyways? What else does it need to know?
>
> Relevant info:
> 1. The mail server is located on a different physical machine than the one
> that hosts Sakai.
> 2. I checked with my sys. admin. We do NOT use smtp username/password and
> our smtp server does not use SSL.
>
> I realize that it will be difficult for you (or someone else) to figure out
> what's happening between my Sakai server and my Mail Server. So I appreciate
> you trying to help.
>
> Thanks for looking,
> -Sri
>
>
> On Mon, Mar 29, 2010 at 7:26 PM, Steve Swinsburg <
> steve.swinsburg at gmail.com> wrote:
>
>> Hi,
>>
>> if you just want outgoing email, you don't need to setup James. Just add
>> the appropriate SMTP settings in sakai.properties.
>>
>> If you want incoming mail though (ie for Email Archive), thats when you'll
>> need to go down this path.
>>
>> cheers,
>> Steve
>>
>>
>>
>> On 30/03/2010, at 9:54 AM, Sri Kota wrote:
>>
>> More info:
>>
>> james-2010-03-29.log:
>>
>> 29/03/10 18:10:44 ERROR James: Cannot get IP address(es) for myhost.james
>>
>> Am I missing something?
>>
>> Thanks,
>> -Sri
>>
>> On Mon, Mar 29, 2010 at 6:22 PM, Sri Kota <srini07 at gmail.com> wrote:
>>
>>> Hello Folks,
>>> I did the following:
>>>
>>> Step 1: Stopped Tomact
>>> Step 2: Removed the mailarchive-james directory under webapps
>>> Step 3: Set smtp.enabled=true
>>> Step 4: Set smtp at org.sakaiproject.email.api.EmailService=xyz.edu
>>> Step 5: Set smtp.dns.1=x.x.x.x and smtp.dns.2=x.x.x.x
>>> Step 6: Set smtp.port=25
>>> Step 7: Set the following:
>>> mail.support=xyz at domain.com
>>> portal.error.email=xyz at domain.com
>>> setup.request=xyz at domain.com
>>> notifyNewUserEmail=true
>>> Step 8: Start Tomcat
>>>
>>> I get the following error:
>>>
>>> 2010-03-29 18:12:36,406  WARN http-5500-Processor22
>>> org.sakaiproject.email.impl.
>>> BasicEmailService - Email.sendMail: exception: Sending failed;
>>>   nested exception is:
>>>         class javax.mail.MessagingException: 553 5.5.4
>>> <postmaster at localhost>...
>>>  Real domain name required for sender address
>>>
>>> javax.mail.SendFailedException: Sending failed;
>>>   nested exception is:
>>>         class javax.mail.MessagingException: 553 5.5.4
>>> <postmaster at localhost>...
>>>  Real domain name required for sender address
>>>
>>>         at javax.mail.Transport.send0(Transport.java:218)
>>>         at javax.mail.Transport.send(Transport.java:102)
>>>         at
>>> org.sakaiproject.email.impl.BasicEmailService.sendMessageAndLog(Basic
>>> EmailService.java:1090)
>>>         at
>>> org.sakaiproject.email.impl.BasicEmailService.sendMail(BasicEmailServ
>>> ice.java:486)
>>>         at
>>> org.sakaiproject.email.impl.BasicEmailService.sendMail(BasicEmailServ
>>> ice.java:286)
>>>         at
>>> org.sakaiproject.email.impl.BasicEmailService.send(BasicEmailService.
>>> java:555)
>>>         at
>>> org.sakaiproject.sitemanage.impl.UserNotificationProviderImpl.notifyA
>>> ddedParticipant(UserNotificationProviderImpl.java:118)
>>>         at
>>> org.sakaiproject.site.tool.helper.participant.impl.SiteAddParticipant
>>> Handler.addUsersRealm(SiteAddParticipantHandler.java:500)
>>>         at
>>> org.sakaiproject.site.tool.helper.participant.impl.SiteAddParticipant
>>> Handler.processConfirmContinue(SiteAddParticipantHandler.java:604)
>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>         at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>>> java:39)
>>>         at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>>> sorImpl.java:25)
>>>         at java.lang.reflect.Method.invoke(Method.java:592)
>>>         at
>>> uk.org.ponder.reflect.JDKReflectiveCache.invokeMethod(JDKReflectiveCa
>>> che.java:23)
>>>         at
>>> uk.org.ponder.reflect.JDKReflectiveCache.invokeMethod(JDKReflectiveCa
>>> che.java:17)
>>>         at
>>> uk.org.ponder.reflect.JDKReflectiveCache.invokeMethod(JDKReflectiveCa
>>> che.java:77)
>>>         at
>>> uk.org.ponder.reflect.ReflectiveCache.invokeMethod(ReflectiveCache.ja
>>> va:141)
>>>         at
>>> uk.org.ponder.mapping.support.DARApplier.invokeBeanMethod(DARApplier.
>>> java:179)
>>>         at
>>> uk.org.ponder.rsf.state.support.RSVCApplier.invokeAction(RSVCApplier.
>>> java:218)
>>>         at
>>> uk.org.ponder.rsf.processor.support.RSFActionHandler$1.run(RSFActionH
>>> andler.java:189)
>>>
>>> ...........
>>>
>>> Any ideas on what I am missing?
>>>
>>> Thank You,
>>> -Sri
>>>
>>> --
>>> - Sri
>>> Sarvē Janā Sukhinō Bhavantu
>>>
>>>
>>
>>
>> --
>> - Sri
>> Sarvē Janā Sukhinō Bhavantu
>>
>> _______________________________________________
>> production mailing list
>> production at collab.sakaiproject.org
>> http://collab.sakaiproject.org/mailman/listinfo/production
>>
>> TO UNSUBSCRIBE: send email to
>> production-unsubscribe at collab.sakaiproject.org with a subject of
>> "unsubscribe"
>>
>>
>>
>
>
> --
> - Sri
> Sarvē Janā Sukhinō Bhavantu
>
>
>
> _______________________________________________
> production mailing list
> production at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/production
>
> TO UNSUBSCRIBE: send email to
> production-unsubscribe at collab.sakaiproject.org with a subject of
> "unsubscribe"
>



-- 

Miriam Esteve Velázquez
Analista-Programadora
miriam.esteve at setival.com
miesvesakai at gmail.com
902 05 06 02
www.samoo.es
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20100408/b389f887/attachment.html 


More information about the sakai-dev mailing list