Hi Roundcube!

 

We have recently installed a roundcube server and testing it. There is a small feature that I miss. I would like to add an extra x-header to all e-mail sent from roundcube with the authenticated username. Something similar to what squirrelmail uses.

 

For example: If I use a custom profile in roundcube and set the email address to something else. The message that is delivered does not include a header with the authenticated user.

 

Squirrelmail have this info in the headers of the mail.

Received: from 192.168.42.254 (SquirrelMail authenticated user ruben@testing.se) by squirrelmail.crossnet.net with HTTP; Mon, 7 Jul 2008 17:01:17 +0200 (CEST)

 

Would it be possible to somehow add the authenticated username in the x-headers?

 

We tried to modify the User-Agent in main.inc.php but the header that came with the mail looked like this.

 

User-Agent: RoundCube Webmail/0.2a User: %u

 

As you can see, I don’t want %u but ruben@testingroundcube.test instead. It should not be hard to get it to work or to add an extra X-header.

 

The reason I want this is so that no one can fake emails and to make it easier to track abusive users.

 

Can someone please tell me how to get this to work?

 

Best Regards

Ruben

Crossnet Technical Solutions