So, I’ve been trying my hardest to get Squirrelmail properly setup with virtual domains. This led me in the direction of the plugin, vlogin.
After configuring vlogin with what seemed to be the proper config (an array of the domains that are on the server), I can now customize the domains and their ability to login into the IMAP server, as well as look and feel of the application based upon their settigns. But the only problem that I continue to have is that of sending email from the correct domain.
when you first setup Squirrelmail with the included conf.pl script, you are asked what domain you want to send from. If you choose localhost, then any mail that you send from the server, despite having configured the virtual domain settings, comes appended with the primary domain’s domain appended to the sending address. This is because IMAP can’t handle the logins with the domain appended, and once the domain is stripped from the username in the initial login, then just the login is sent to the sendmail sub-process, and the root domain (not the virtual domain) is appended to the login in the outgoing “MAIL FROM:” tag.
More to follow when/if I can figure out how to arrange a login and proper sendmail configuration.