Squirrelmail user-login Mail-Header From:

Discussion in 'Installation/Configuration' started by Cirox, Mar 24, 2006.

  1. Cirox

    Cirox New Member

    Hi,

    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:

    Code:
    Mar 24 16:30:27 srv02 postfix/smtpd[19880]: connect from localhost.localdomain[127.0.0.1]
    Mar 24 16:30:27 srv02 postfix/smtpd[19880]: D23F5498053: client=localhost.localdomain[127.0.0.1]
    Mar 24 16:30:27 srv02 postfix/cleanup[19881]: D23F5498053: message-id=<[email protected]>
    Mar 24 16:30:27 srv02 postfix/qmgr[17895]: D23F5498053: from=<[email protected]>, size=764, nrcpt=1 (queue active)
    Mar 24 16:30:27 srv02 postfix/smtpd[19880]: disconnect from localhost.localdomain[127.0.0.1]
    Mar 24 16:30:27 srv02 imaplogin: Connection, ip=[::ffff:127.0.0.1]
    Mar 24 16:30:27 srv02 imaplogin: LOGIN, user=web6_ralph, ip=[::ffff:127.0.0.1], protocol=IMAP
    Mar 24 16:30:27 srv02 imaplogin: LOGOUT, user=web6_ralph, ip=[::ffff:127.0.0.1], headers=0, body=0, time=0
    Mar 24 16:30:28 srv02 imaplogin: Connection, ip=[::ffff:127.0.0.1]
    
    thx and greetings cirox
     
    Last edited: Mar 24, 2006
  2. falko

    falko Super Moderator ISPConfig Developer

    You always have to set the sender address, even in email clients like Outlook and Thunderbird. Nothing wrong here.
     
  3. Cirox

    Cirox New Member

    Hi,

    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

    But i think with courier it isnt possible ?

    greetings cirox
     
  4. falko

    falko Super Moderator ISPConfig Developer

    That happens because on your other box you're using virtual mailboxes where the usernames have the form of email addresses. On the ISPConfig system you have system users, not virtual users.
     
  5. Ovidiu

    Ovidiu Active Member

    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)
     
  6. Cirox

    Cirox New Member

    Hi,

    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 :eek: 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" :eek: ----- 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)

    greetings cirox
     
    Last edited: Mar 24, 2006
  7. admiral

    admiral New Member

    ISPConfig Virtual Hosts and SquirrelMail

    Tenaka,
    Anyway you can post a quick howto/tutorial on how you did that? It is exactly what I am looking for, but am running into some issues from an implementation standpoint. Thanks.
     
  8. BèrKessels

    BèrKessels New Member

    Squirrelmail plugin for setting defaults

    There is a http://squirrelmail.org/plugin_download.php?id=11&rev=643'user data retrieval' plugin for squirrelmail, but that one is not ready (yet) for usage under ispconfig.

    I am hacking up some patches that will allow retrieval of user data from the ISPC tables, but in order to do so, I first need to understand the ISPC database architecture a bit better.
     

Share This Page