[Building Sakai] setup.request property on sakai.properties is ignored.

Jean-Francois Leveque jean-francois.leveque at upmc.fr
Wed Feb 20 03:26:35 PST 2013


Hi Miguel,

setup.request is not the only email configuration setting, there also is:
fromEmailAddress at org.sakaiproject.poll.logic.ExternalLogic (name leads 
to Polls)
portal.error.email (Email address to send errors caught by the portal, 
and user bug reports in response.)
mail.support (Email support address used in incoming email rejection 
messages.)

Their defaults are not mentioned in 
config/configuration/bundles/src/bundle/org/sakaiproject/config/bundle/default.sakai.properties

A search for postmaster in sakai-trunk-all leads to the following finds.

/osp, /site-manage, /reset-pass, /mailarchive, /msgcntr and /kernel 
contain uses such as:
"postmaster@".concat(ServerConfigurationService.getServerName());
from = "postmaster@" + serverConfigurationService.getServerName();
"postmaster@" + host

/osp, /site-manage, /reset-pass relies on setup.request
/mailarchive uses its configuration file
/msgcntr uses msgcntr.notification.from.address
/kernel doesn't seem to have a setting for digest sender in trunk

Could you check 
/kernel/kernel-impl/src/main/java/org/sakaiproject/email/impl/BaseDigestService.java 
further to confirm there's no setting? Please create a JIRA if there's 
none to override the default.

Cheers,

J-F

On 19/02/2013 15:28, Miguel Ángel Júlvez wrote:
> Thanks Francois. SMTP connection is working fine.
>
> Here is my log. As you can see,  From: is configured with
> soporte-formacion at mydomain.com <mailto:soporte-formacion at mydomain.com>
> but sakai is trying to send the e-mail with postmaster at mydomain.com
> <mailto:postmaster at mydomain.com>
>
> DEBUG: JavaMail version 1.4.4
> DEBUG: successfully loaded resource: /META-INF/javamail.default.providers
> DEBUG: Tables of loaded providers
> DEBUG: Providers Listed By Class Name:
> {com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun
> Microsystems, Inc],
> com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun
> Microsystems, Inc],
> com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun
> Microsystems, Inc],
> com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun
> Microsystems, Inc],
> com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun
> Microsystems, Inc],
> com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun
> Microsystems, Inc]}
> DEBUG: Providers Listed By Protocol:
> {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems,
> Inc],
> imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun
> Microsystems, Inc],
> smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun
> Microsystems, Inc],
> pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun
> Microsystems, Inc],
> pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun
> Microsystems, Inc],
> smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun
> Microsystems, Inc]}
> DEBUG: Providers Listed By Protocol:
> {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems,
> Inc],
> imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun
> Microsystems, Inc],
> smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun
> Microsystems, Inc],
> pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun
> Microsystems, Inc],
> pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun
> Microsystems, Inc],
> smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun
> Microsystems, Inc]}
> DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map
> 2013-02-18 16:08:07,679 DEBUG ajp-bio-8009-exec-9
> org.sakaiproject.email.impl.BasicEmailService - HeaderLines received were:
> 2013-02-18 16:08:07,679 DEBUG ajp-bio-8009-exec-9
> org.sakaiproject.email.impl.BasicEmailService - Date: Mon, 18 Feb 2013
> 16:08:07 +0100 (CET)
> 2013-02-18 16:08:07,679 DEBUG ajp-bio-8009-exec-9
> org.sakaiproject.email.impl.BasicEmailService - From:
> *soporte-formacion at mydomain.com <mailto:soporte-formacion at mydomain.com>*
> 2013-02-18 16:08:07,679 DEBUG ajp-bio-8009-exec-9
> org.sakaiproject.email.impl.BasicEmailService - Reply-To:
> soporte-formacion at mydomain.com <mailto:soporte-formacion at mydomain.com>
> 2013-02-18 16:08:07,679 DEBUG ajp-bio-8009-exec-9
> org.sakaiproject.email.impl.BasicEmailService - To: aandres at mydomain.com
> <mailto:aandres at mydomain.com>
> 2013-02-18 16:08:07,679 DEBUG ajp-bio-8009-exec-9
> org.sakaiproject.email.impl.BasicEmailService - Subject: Aula virtual
> Site Notification
> 2013-02-18 16:08:07,679 DEBUG ajp-bio-8009-exec-9
> org.sakaiproject.email.impl.BasicEmailService - Precedence: bulk
> DEBUG: getProvider() returning
> javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun
> Microsystems, Inc]
> DEBUG SMTP: useEhlo true, useAuth true
> DEBUG SMTP: trying to connect to host "exchange.mydomain.local", port
> 25, isSSL false
> 220 exchange.mydomain.local Microsoft ESMTP MAIL Service ready at Mon,
> 18 Feb 2013 16:08:15 +0100^M
> DEBUG SMTP: connected to host "exchange.mydomain.local", port: 25
>
> EHLO formacion.mydomain.local^M
> 250-exchange.mydomain.local Hello [172.22.2.60]^M
> 250-SIZE^M
> 250-PIPELINING^M
> 250-DSN^M
> 250-ENHANCEDSTATUSCODES^M
> 250-STARTTLS^M
> 250-X-ANONYMOUSTLS^M
> 250-AUTH NTLM^M
> 250-X-EXPS GSSAPI NTLM^M
> 250-8BITMIME^M
> 250-BINARYMIME^M
> 250-CHUNKING^M
> 250-XEXCH50^M
> 250 XRDST^M
> DEBUG SMTP: Found extension "SIZE", arg ""
> DEBUG SMTP: Found extension "PIPELINING", arg ""
> DEBUG SMTP: Found extension "DSN", arg ""
> DEBUG SMTP: Found extension "ENHANCEDSTATUSCODES", arg ""
> DEBUG SMTP: Found extension "STARTTLS", arg ""
> DEBUG SMTP: Found extension "X-ANONYMOUSTLS", arg ""
> DEBUG SMTP: Found extension "AUTH", arg "NTLM"
> DEBUG SMTP: Found extension "X-EXPS", arg "GSSAPI NTLM"
> DEBUG SMTP: Found extension "8BITMIME", arg ""
> DEBUG SMTP: Found extension "BINARYMIME", arg ""
> DEBUG SMTP: Found extension "CHUNKING", arg ""
> DEBUG SMTP: Found extension "XEXCH50", arg ""
> DEBUG SMTP: Found extension "XRDST", arg ""
> DEBUG SMTP: Attempt to authenticate
> DEBUG SMTP: check mechanisms: LOGIN PLAIN DIGEST-MD5 NTLM
> DEBUG SMTP: mechanism LOGIN not supported by server
> DEBUG SMTP: mechanism PLAIN not supported by server
> DEBUG SMTP: mechanism DIGEST-MD5 not supported by server
> DEBUG NTLM: type 1 message: 4E 54 4C 4D 53 53 50 00 01 00 00 00 03 A2 00
> 00 00 00 00 00 29 00 00 00 09 00 09 00 20 00 00 00 66 6F 72 6D 61 63 69
> 6F 6E
> AUTH NTLM TlRMTVNTUAABAAAAA6IAAAAAAAApAAAACQAJACAAAABmb3JtYWNpb24=^M
> 334
> TlRMTVNTUAACAAAAAAAAADgAAAABggAC45/SJWdlscYAAAAAAAAAAAAAAAA4AAAABQLODgAAAA8=^M
> DEBUG NTLM: type 3 message: 4E 54 4C 4D 53 53 50 00 03 00 00 00 18 00 18
> 00 72 00 00 00 18 00 18 00 8A 00 00 00 00 00 00 00 40 00 00 00 20 00 20
> 00 40 00 00 00 12 00 12 00 60 00 00 00 00 00 00 00 A2 00 00 00 01 82 00
> 00 53 00 4F 00 50 00 4F 00 52 00 54 00 45 00 46 00 4F 00 52 00 4D 00 41
> 00 43 00 49 00 4F 00 4E 00 66 00 6F 00 72 00 6D 00 61 00 63 00 69 00 6F
> 00 6E 00 B5 F7 74 D1 55 76 F4 39 BA 8E 73 4D 6C A1 EB 3A A2 E1 77 2F 79
> 01 2F 27 AC C9 75 12 75 8D 36 D6 8B A0 E0 FB 3E 2D AE 6C 2A 9B A6 6D F2
> 07 9E 5F
> TlRMTVNTUAADAAAAGAAYAHIAAAAYABgAigAAAAAAAABAAAAAIAAgAEAAAAASABIAYAAAAAAAAACiAAAAAYIAAFMATwBQAE8AUgBUAEUARgBPAFIATQBBAEMASQBPAE4AZgBvAHIAbQBhAGMAaQBvAG4Atfd00VV29Dm6jnNNbKHrOqLhdy95AS8nrMl1EnWNNtaLoOD7Pi2ubCqbpm3yB55f^M
> 235 2.7.0 Authentication successful^M
> DEBUG SMTP: use8bit false
> MAIL FROM:<*postmaster at mydomain.com <mailto:postmaster at mydomain.com>*>^M
> 550 5.7.1 Client does not have permissions to send as this sender^M
> DEBUG SMTP: got response code 550, with response: 550 5.7.1 Client does
> not have permissions to send as this sender
>
> RSET^M
> 250 2.0.0 Resetting^M
> com.sun.mail.smtp.SMTPSendFailedException: 550 5.7.1*Client does not
> have permissions to send as this sender*
> ;
>    nested exception is:
>          com.sun.mail.smtp.SMTPSenderFailedException: 550 5.7.1 Client
> does not have permissions to send as this sender
>
>
> Thanks
>
> 2013/2/19 Francois Campbell <francois at opencollab.co.za
> <mailto:francois at opencollab.co.za>>
> Hi Miguel.
>
> This is typically what happens when there is a problem with your SMTP,
> but SAKAI writes it to the logs as being sent from the postmaster account.
>
> I don't know the exact reason for this behaviour, but after correcting
> my SMTP details/configuration/connection it worked correctly.
>
> Try testing your smtp connection using telnet. e.g.
> http://www.anta.net/misc/telnet-troubleshooting/smtp.shtml (not the best
> article but should give you a better idea.)
>
>
> On 19 February 2013 11:19, Miguel Ángel Júlvez <ma.julvez at gmail.com
> <mailto:ma.julvez at gmail.com>> wrote:
> Hi all,
>
> I've the following config on my sakai.properties:
> setup.request=myusername at mydomain.com <mailto:myusername at mydomain.com>
>
> but Sakai is trying to send e-mails from postmaster at mydomain.com
> <mailto:postmaster at mydomain.com>
>
> What am I doing wrong?
>
> Thanks
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org <mailto: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
> <mailto:sakai-dev-unsubscribe at collab.sakaiproject.org> with a subject of
> "unsubscribe"
>
>
>
> --
> Warm regards.
> Francois Campbell
> Developer
> opencollab
> Tel: +27 21 970 4000 | Fax: +27 21 914 3098
> Skype: francois_campbell_za
> Web: www.opencollab.co.za <http://www.opencollab.co.za>


More information about the sakai-dev mailing list