Forwarding (Really Resending)

Hello!

I need to be able to receive messages to a mailbox and then send those messages on to another address but the message has to come from my mailbox.

Mailbox = miab-mailbox@example.com
Originator = george@company.com sends an email to miab-mailbox@example.com
Final Destination = support@helpco.com however the sender needs to be miab-mailbox@example.com

Forward and Redirect in MIAB Roundcube both keep the original sender. Is there an option to have it not keep the original sender? or some other super secret way to do this?

Thanks,
Paul.

That’s exactly how it was made to work.

Maybe share your purpose? There are other ways to do it like piping it to sendgrid, they can forward your mail to a web hook, which your serverless function can forward the email back to your inbox… it is a very silly method though but it will work.

I am not seeing it change the sender. When the email arrives at the final destination it still has the originator.

The use case we have a support ticketing system that assigns tickets by using the from email address. Using something like Uptime Robot we have UR send an email to a miab address and we want to forward that message using the miab mailbox as the from address. So when our ticket system gets the email it will see it as from the miab mailbox and route it properly.

I am not seeing it change the sender. When the email arrives at the final destination it still has the originator.

This is how it’s suppose to work.

Your use case, requires the use of an middleman (to check and re-send a email) and Roundcube is not one of them.

You need to explore the sendgrid option I recommend above, and then get a script to resend the email to your support ticket system. OR, get your support system to recognise UR email address (which seems to be the most straightforward way).

  1. Signup Send Grid.
  2. Sign UP google serverless functions
  3. Create serverless function with node mail ( example of how to send a email using serverless functions → Google Cloud Functions: Sending emails using Gmail SMTP and Nodemailer - DEV Community )
  4. Input your google serverless URL into Sendgrid Parse Incoming Mail options.

Viola, your email gets re-sent.

Another option is to pipe the email using /etc/aliases in a normal postfix setup but I haven’t gotten it to work in mailinabox.

ANOTHER OPTION
Use roundcube filter, but use “Send Notification” instead. And use filtering rules to detect e.g. “Server Up” or “Server Down”, and send a simple email to your destination.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.