holdmail
holdmail copied to clipboard
holdmail.outgoing.mail.from is ignored
Question/Issue Overview
Holdmail 2.0.1 ignores holdmail.outgoing.mail.from value.
Expected Behavior
Forwarded mail has sender as set in holdmail.outgoing.mail.from.
Current Behavior
[email protected] is used instead:
2018-10-11 12:09:19.148 INFO 44774 --- [nio-8080-exec-6] c.s.holdmail.smtp.OutgoingMailSender : Outgoing mail will have From: [email protected]
And actually mail has it. Due to this issue mail forwarding doesn't work as SMTP servers reject such mail.
Reproducible Sequence
- Install Holdmail from JAR file.
- Add
holdmail.outgoing.mail.fromto/etc/holdmail.properties - Run
/usr/bin/java -Dsun.misc.URLClassPath.disableJarChecking=true -Dloader.path=/opt/holdmail/lib -jar /opt/holdmail/bin/holdmail.jar --spring.config.location=file:/etc/holdmail.properties - Forward any mail from its web interface.
As a workaround, you can use holdmail.outgoing.mail.parse instead and it will work.