My current Postfix setup allows to send emails only with the local users (like, if I logged as xyz then email will be sent as xyz@server.com). I have Courier IMAP server, with the same user xyz but with different password, from the other place.
Now I want to setup RoundCube (RC) as a webmail client but, unfortunately, it doesn't allow to use different passwords for IMAP & SMTP (when you logging in to IMAP as abc then RC will use abc and its password used for IMAP to send emails). What I need - I want to setup Postfix in the way that it has dedicated user for sending emails, so all mail users will use the same SMTP account (but emails should be sent as their own accounts, say they will use account mailer@server.com to connect to SMTP server and then email will be sent as xyz@server.com). In this case I can setup RC to use that dedicated account for sending.
How to achieve that?