[imp] Login in IMP without the @domain.com part

Krystian Filiks filiks at telesonique.com
Thu Sep 16 09:58:18 PDT 2004


What are you using, if it is vpopmail then you need to create a
defaultdomain file with the domainname in it.
then you will ba able to login to pop, Imap etc... as <user> without the
domain.xxx

I have Vpopmail myself and this works for me.

Hope this helps.

-----Original Message-----
From: imp-bounces at lists.horde.org [mailto:imp-bounces at lists.horde.org]On
Behalf Of Mário Gamito
Sent: Donnerstag, 16. September 2004 18:39
To: Edwin Culp
Cc: imp at lists.horde.org
Subject: Re: [imp] Login in IMP without the @domain.com part


Hi Edwin,

I had 'realm' => 'mail.epaveiro.edu.pt' and changed it the way you said
as you can see below, but no good :(

---------------------------------------
$servers['imap'] = array(
     'name' => 'IMAP Server',
     'server' => 'mail.epaveiro.edu.pt',
     'protocol' => 'imap/notls',
     'port' => 143,
     'folders' => '',
     'namespace' => 'INBOX.',
     'maildomain' => 'epaveiro.edu.pt',
     'smtphost' => 'mail.epaveiro.edu.pt',
     'realm' => 'epaveiro.edu.pt',
     'preferred' => ''
);
----------------------------------------


I've already been around the vinfo hook, but i must admit i didn't
understand it completely.

Would you care please to explain it to me ?
I'd be eternaly grateful.
I beg your apolagises for asking this directly, but i'm working on this
all day long and... nothing :(

The domain is epaveiro.edu.pt and the FQDN is mail.epaveiro.edu.pt

Warm regards,
Mário Gamito

* ex. $HTTP_HOST = 'mail.mydomain.com', $imp['user'] = 'myname'
/*   $vdomain  = 'epaveiro.edu.pt'
    $username = 'foobar_epaveiro_edu_pt' */

/*  if (!function_exists('imp_get_vinfo')) {
      function imp_get_vinfo ($type = 'username') {
          global $conf;

          $vdomain = getenv('HTTP_HOST');
          $vdomain = preg_replace('|^mail\.|i', '', $vdomain);
          $vdomain = strtolower($vdomain);

          if ($type == 'username') {
              return preg_replace('|\.|', '_', $_SESSION['imp']['user']
. '_' . $vdomain);
          } elseif ($type == "vdomain") {
              return $vdomain;
          } else {
              return new PEAR_Error('invalid type: ' . $type);
          }
      }
  } */
--
IMP mailing list - Join the hunt: http://horde.org/bounties/#imp
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: imp-unsubscribe at lists.horde.org



More information about the imp mailing list