davideuler / pwm

Automatically exported from code.google.com/p/pwm
0 stars 0 forks source link

Make email sender address configurable #554

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently the sender's email address is hardcoded in AppProperty.properties 
file as audit.events.emailFrom=Event Notification <noreply@@SiteHost@>
This conflicts with some mail servers and will lead to errors like this:

Thu Apr 10 13:35:47 CEST 2014, ERROR, 
password.pwm.util.queue.EmailQueueManager, error during email send attempt: 
com.sun.mail.smtp.SMTPSendFailedException: 501 5.1.7 Bad sender address syntax
;
  nested exception is:
    com.sun.mail.smtp.SMTPSenderFailedException: 501 5.1.7 Bad sender address syntax

Thu Apr 10 13:35:47 CEST 2014, ERROR, 
password.pwm.util.queue.EmailQueueManager, error sending email (501 5.1.7 Bad 
sender address syntax
) from: Forgotten Password <noreply@192.168.101.147>, to: user@host.net, 
subject: Forgotten Password Verification, permanent failure, discarding message

Original issue reported on code.google.com by nils.rekow on 10 Apr 2014 at 11:50

GoogleCodeExporter commented 9 years ago
While the sender address can be changed for the email templates, this is not 
possible for daily status mails, alerts etc.

Original comment by nils.rekow on 10 Apr 2014 at 1:13

GoogleCodeExporter commented 9 years ago
This isn't the support forum for PWM, marking invalid.  

Also: 

1) App properties are overridable in config, but there no GUI yet,
2) If you set the site host setting properly, you won't have this error.

Original comment by jrivard on 24 Apr 2014 at 2:18