I have a fairly unique setup. EVERYTHING is a virtual domain, but
I'm not using any of the domain managers (i.e. vpopmail or vmailmgr). I
tried playing with oMail because it dealt directly with Maildir format,
and soon found that I had to write a short perl routine to login by using
the user's complete email address, and using it to read a file to
determine the pop/imap address, which would then authenticate. (I don't
think oMail has been worked on for a few years - it's quite limited.)
The problem (for me) is that sqwebmail authenticates the *nix
account, and when it sends an email for the user, it appends the server
hostname as the envelope sender. That is disasterous for me, as all
"local" accounts are configured to trash any email sent to them (bounces
or anything else sent to US...@hostname.of.server will be deleted) -
everything must be sent to a valid email address in a virtual domain.
Can anyone please suggest where and how I might call a Perl
program to do this lookup for the pop address, and then copy the complete
email address to whatever variable is used for the envelope sender address
(and the "From" sender variable as per the compose form), and then
substitute the complete email address with the pop address for
authentication? I'm okay with Perl but haven't done much of any C for
quite a while.
Thanks.