Forwarded mail has sender as set in holdmail.outgoing.mail.from.
Current Behavior
holdmail@localhost.localdomain 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: holdmail@localhost.localdomain
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.from to /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
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
holdmail@localhost.localdomain
is used instead:And actually mail has it. Due to this issue mail forwarding doesn't work as SMTP servers reject such mail.
Reproducible Sequence
holdmail.outgoing.mail.from
to/etc/holdmail.properties
/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