holdmail icon indicating copy to clipboard operation
holdmail copied to clipboard

holdmail.outgoing.mail.from is ignored

Open 375gnu opened this issue 7 years ago • 1 comments

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
  1. Install Holdmail from JAR file.
  2. Add holdmail.outgoing.mail.from to /etc/holdmail.properties
  3. 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
  4. Forward any mail from its web interface.

375gnu avatar Oct 11 '18 12:10 375gnu

As a workaround, you can use holdmail.outgoing.mail.parse instead and it will work.

admiralThrown avatar Oct 25 '19 08:10 admiralThrown