#482 Using Webmin and subdomains and Squirrelmail

open
nobody
None
5
2006-06-04
2006-05-19
Luis Chacon
No

If you are using Webmin and subdomains you will notice
that your pop name is username.subdomain and will
experience that you'll get From:
username.subdomain@domain when sending a mail from
Squirrelmail (it should be username@subdomain.domain)
If you avoid "." (dots) in the username when creating
an account via Webmin, you can solve it changing the
deliverMessage Function in compose.php

example: my domain is undominio.edu.ve
base_domain: undominio

if (!$from_mail)
{
$popuser2=explode(".",$popuser);
if (sizeof($popuser2)>1)
{
$dot=".";
if ($popuser2[1]=="base_domain")
{
$popuser2[1]="";
$dot="";
}

$from_mail=$popuser2[0]."@".$popuser2[1].$dot.$domain;

} else
{
$from_mail = "$popuser@$domain";
}
}

Greetings!

Discussion

  • Luis Chacon

    Luis Chacon - 2006-05-19
    • summary: Using Webmin and subdomains and Squirrelmain --> Using Webmin and subdomains and Squirrelmail
     
  • Tomas Kuliavas

    Tomas Kuliavas - 2006-05-21

    Logged In: YES
    user_id=225877

    SquirrelMail can't make such decisions about pop3 login
    username. It will break, if login name contains period.

    pop3 login name must match imap login name.

     
  • Tomas Kuliavas

    Tomas Kuliavas - 2006-06-04
    • labels: 102905 -->
    • milestone: 101719 -->
     
  • Paul Lesniewski

    Paul Lesniewski - 2008-01-30

    Logged In: YES
    user_id=508228
    Originator: NO

    You can change your outgoing email address in the Options->Personal Preferences page, but as tokul said, you cannot change the login username unless you get a better email system manager/setup. It might be possible to use the Login Manager (vlogin) plugin to help automate what the email preference is set to, but I can't say that with 100% confidence.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks