Ticket #289 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

Sending account creation email does not work on nbx14

Reported by: work@… Owned by: work@…
Priority: major Milestone: Should have
Component: Unknown Version: 0.6.3
Keywords: Cc:
Hardware: Operating system:
Product: URL:


Generic issue that form address is null?

2011-01-28 11:20:16,425 [TP-Processor11] ERROR authentication.UserRegistrationController? - Problem sending email From address must not be null
java.lang.IllegalArgumentException?: From address must not be null

at org.springframework.util.Assert.notNull(Assert.java:112)
at org.springframework.mail.javamail.MimeMessageHelper?.setFrom(MimeMessageHelper?.java:542)
at org.springframework.mail.javamail.MimeMailMessage?.setFrom(MimeMailMessage?.java:78)
at sun.reflect.NativeMethodAccessorImpl?.invoke0(Native Method)

Change History

comment:1 Changed 6 years ago by work@…

nbx14 does not allow outbound connections to port 465, so the smtp server cannot be reached:

jwesbeek@nbx14:~$ telnet smtp.gmail.com 465
telnet: Unable to connect to remote host: Connection refused

Also, mail configuration is missing since the server was re-installed...

comment:2 Changed 6 years ago by work@…

set up postfix on nbx14 and have it relay mail through the TNO mail server...

While this works, the default configuration of gscf (=authenticated smtp / TLS) conflicts with the default smtp (non-authenticated on port 25) and cannot be solved using a properties file (the mail configuration contains a map).

The only way to solve this issue is to change application configuration from .properties to .groovy. But as the latter is configurable it is a bit scary.

Other option, have TNO open outbound connections on port 465 to smtp.gmail.com for nbx14...

comment:3 Changed 6 years ago by work@…

euh i ment, the latter is 'interpretable' as one could write code in a .groovy file which is interpreted. A .propeties file is a proper configuration file...

comment:4 Changed 6 years ago by work@…

  • Status changed from new to closed
  • Resolution set to fixed

resolved in r1459: mail configuration being too inflexible (it was not possible to use a local mailer on port 25). Now authenticated mail over port 465 is used if 'username' and 'password' are set, otherwise non-authenticated mail over port 25 is used.

Note: See TracTickets for help on using tickets.