Squirrelmail user-login Mail-Header From:

i installed squirrelmail as webmail client with the plugin "virtusertable" to login with [email protected]. It was very easy to install. Just creating a new webmail.example.com domain in ispconfig and deleting the co-domain with no host after this. I used the root web folder from this domain in ispconfig. All to do was to read the installation tips they come with squirrelmail and the plugin.

But my problem is, if i host virtual domains with ispconfig and use the webmail tool, in my case squirrelmail, to sent some mail, the "from:" adress is always the domain i installed squirrelmail into.

Postfix is using the virtualusertable and there the email adress is mapped to the virtual user. So Postfix cant find the real fqdn of the virtual user?

Ok, i can put the real name and reply-to adress in the webmail frontend, but thats not professionell, exspecially for new users.

In UebiMiau, the webmailer that comes with ispconfig, you have to fill out the real name and reply-to adress, too, otherwise you cant sent email. i am still wondering.

So, how to solve the problem, that the user of virtual domains have the "from" adress in the mail header in the beginning, and not after you filled out the fields in the frontend?

Here you see the code from /var/log/mail.log and example.com is the adress i installed squirrelmail into and not the real virtual domain from the user:

thx, but i configured postfix with cyrus-imap -> msql auxprop plugin (at another non-ispbox and the "from:" adress is like the email adress of the used virtual domain, if you dont set your reply-to adress

I do not know if this helps but what I did is this: manually add a mail.* virtualdomain, create mail. subdomains for all your domains, so all your hosted domains can be reached by mail.domain.com - and you only have to install squirrelmail once because all mappings of mail.* point to this installation.

and inside the mailheaders the domain where the mail is sent from is always the domain used to logg in so if you logged into mail.domain1.com this is where the mail seems to be coming.

if you want even more comfort try the virtualuser plugin for squirrelmail - here you can set almost any setting you might want. (although that was too complicated for me and I am fine with the current solution)

hope this helped a bit... (as far as I rememberif I create a new user and do not set anything inside squirrelmail the sender is: also user@ main domain, but with the plugin I mentioned you should be able to fix that)

ok i realized it. The "from:" Mailheader ist set by squirrelmail in his own config.php by "$domain". If you leave it empty the /etc/mailname is used, cause of "myorigin=/etc/mailname" in postfix.

So the only thing that works for me is to copy squirrelmail to each virtual domain and set the "$domain" in config.php. ....

Now the problem is the username. Here i can only delete the prefix in ispconfig, but then i had to use the whole username, to avoid conflictions with same names, if hosting in different virtual domains ..... andwhat is with "hans-mueller" ----- so i forget this and use the prefix.

For first ;-) its ok, when a new user send his first mail with squirrelmail and only the username is set to web_x and the domain is right.

But what is if using Thunderbird - oh my god - he have to fill in his right name and the right domain and user with prefix like web_x for smtp/imap server........ ( excellent, that you have to fill in the username/adress in thunderbird, instead of be able to overjump this)