Pegasus Mail & Mercury

Welcome to the Community for Pegasus Mail and
The Mercury Mail Transport System, the Internet's longest-serving PC e-mail system!
Welcome to Pegasus Mail & Mercury Sign in | Join | Help
in
Home Blogs Forums Downloads Pegasus Mail Overview Mercury Overview Wiki

Pmail Username limited to 8 digits?

Last post 01-16-2020, 14:17 by Euler GERMAN. 20 replies.
Page 1 of 2 (21 items)   1 2 Next >
Sort Posts: Previous Next
  •  01-13-2020, 10:33

    • Joerg is not online. Last active: 01-29-2020, 15:13 Joerg
    • Top 25 Contributor
    • Joined on 03-25-2008
    • German Baltic Sea Coast
    • Contributor
    • Points 8,285

    Pmail Username limited to 8 digits?

    From time to time I have to create a new local Pmail user in our Mercury/Pmail network environment. And everytime I do this I get problems with the max. length and special characters of the new username to be accepted by Pmail. The Mercury help file is stating the following in this regard:

    Username
    The name the user will give to identify himself to Pegasus Mail or Mercury. By default, this is also the user's address. Usernames cannot contain spaces and must be less than 50 characters in length. Usernames should contain only the letters A…Z, the digits 0…9 and the special characters '.' (period) and '_' (underscore).

    But Pmail is accepting only usernames which do not exceed 8 characters/digits in length. This is everytime annoying since I have to create now a shorten username (which differs from the planned e-mail address) and additional a new entry in SYNONYM.MER database with the right assigned e-mail address to that shorten username. Crying

  •  01-14-2020, 17:15

    Re: Pmail Username limited to 8 digits?

    Methinks this is a "limitation" brought from the Netware/DOS days and shall be greatly extended in forthcoming v5. The username is also the name of the mailbox directory Pegasus Mail will look for in your installation directory. The fact that the Username field is 8-char limited and Help states it could go to 64 is a mystery to me. Maybe it was written having the planned feature in mind.

    Anyway, I'm not sure if this limitation could be overcome by editing the program's control files like PMAIL.USR and desired PMAIL.INI. As far as I know, v4.7x has full long path R/W capabilities.


    Best,

    euler f german
    sete lagoas, mg, brazil
    Pegasus Mail 4.73.639 Standalone - Windows 7 Ultimate
    BearHTML 4.9.9.6 IERenderer 2.6.3.2
    Binaries: C:\PMAIL\Programs
    Mailboxes: C:\PMAIL\MAIL

    InsPMDic — Dictionary Handler Add-on (link on profile)
  •  01-14-2020, 17:41

    • Joerg is not online. Last active: 01-29-2020, 15:13 Joerg
    • Top 25 Contributor
    • Joined on 03-25-2008
    • German Baltic Sea Coast
    • Contributor
    • Points 8,285

    Pmail Username limited to 8 digits?

    But when using Pmail in connection with Mercury, like we do, Mercury is arranging the mailboxes for all users, means I'm able to create a new mailbox/user with Mercury without the 8 character limitation. But in that case Pmail is not able to access this new user mailbox. This is strange.

    As soon as I rename the new (long) mailbox name in Mercury, observing the 8 character limit, Pmail is immediately able to access. I thought, Mercury and Pmail are using the same limitations, but it seems they don't.

  •  01-14-2020, 18:04

    • Brian Fluet is not online. Last active: 01-29-2020, 16:06 Brian Fluet
    • Top 10 Contributor
    • Joined on 12-24-2014
    • North Carolina, USA
    • SuperStar
    • Points 28,835

    Re: AW: Re: Pmail Username limited to 8 digits?

    Hi Joerg,

    Remember pconfig & pconfig32?  Use pconfig32 to check the Home mailbox root directory to see if it is configured with the ~8 or ~N option.  A ~8 might be the problem.

  •  01-14-2020, 20:20

    Re: AW: Re: Pmail Username limited to 8 digits?

    Brian Fluet:

    Hi Joerg,

    Remember pconfig & pconfig32?  Use pconfig32 to check the Home mailbox root directory to see if it is configured with the ~8 or ~N option.  A ~8 might be the problem.

    Brian, just checked mine: C:\PMAIL\MAIL\~N

    The problem is in Pegasus Mail username definition. Might be a limitation from de dialog box only, not the program itself. I'd try hack Pegasus Mail control files when I find a spare time. I think it might work, but I'm unsure how the User management would cope after the hack.


    Best,

    euler f german
    sete lagoas, mg, brazil
    Pegasus Mail 4.73.639 Standalone - Windows 7 Ultimate
    BearHTML 4.9.9.6 IERenderer 2.6.3.2
    Binaries: C:\PMAIL\Programs
    Mailboxes: C:\PMAIL\MAIL

    InsPMDic — Dictionary Handler Add-on (link on profile)
  •  01-15-2020, 8:48

    • Joerg is not online. Last active: 01-29-2020, 15:13 Joerg
    • Top 25 Contributor
    • Joined on 03-25-2008
    • German Baltic Sea Coast
    • Contributor
    • Points 8,285

    Pmail Username limited to 8 digits?

    pconfig32 returns "~8" for the home mailboxes. What does it mean, only the first 8 characters of the username will be used? Could I change it to ~N in order to use longer usernames? I never used pconfig32 until now, but don't want to cause problems when changing the configuration.

    In case longer usernames would work, we could save the synonym.mer database where our short usernames are being translated into real e-mail addresses.

  •  01-15-2020, 14:14

    • Brian Fluet is not online. Last active: 01-29-2020, 16:06 Brian Fluet
    • Top 10 Contributor
    • Joined on 12-24-2014
    • North Carolina, USA
    • SuperStar
    • Points 28,835

    Re: Pmail Username limited to 8 digits?

    My understanding is the ~8 limits usernames to 8 characters whereas ~N allows long names.  I would avoid spaces and special characters in long names though.

    As for switching from ~8 to ~N, I don't think it should be a problem.  Your current short names will continue to work.  It should just allow for usage of long names going forward. 

    The pconfig & pconfig32 utilities only create a new PMAIL.CFG file so you can restore the previous one.  Even better, copy pconfig32.exe to a temporary location and run it with a blank configuration directory field.  It will create the new PMAIL.CFG in the directory from which pconfig32 was run.  You can then copy it into \Pmail\Programs when you are ready. 

    Be advised that PMAIL.CFG is one the few Pmail configuration files that shouldn't be manually edited.


  •  01-15-2020, 14:38

    • Joerg is not online. Last active: 01-29-2020, 15:13 Joerg
    • Top 25 Contributor
    • Joined on 03-25-2008
    • German Baltic Sea Coast
    • Contributor
    • Points 8,285

    Pmail Username limited to 8 digits?

    Brian,

    As far as I remember correctly you are also using a synonym.mer database, isn't it? Or are you using already longer names?

    Mercury allows a dot "." in usernames / mailbox names, as stated in my first post above. It would tempt me into changing the usernames from user initials to the correct mail address (without domain part), means from e.g.   "jd"   to   "j.doe" since our mail addresses are always built from initialfirstname.lastame@domain.com

  •  01-15-2020, 14:58

    • Brian Fluet is not online. Last active: 01-29-2020, 16:06 Brian Fluet
    • Top 10 Contributor
    • Joined on 12-24-2014
    • North Carolina, USA
    • SuperStar
    • Points 28,835

    Re: AW: Re: Pmail Username limited to 8 digits?

    I use short names that are the same as user local LAN domain names so synonym.mer is in use.

    If you switched to the initialfirstname.lastname convention you would still need synonym.mer correct?  Left side of synonym.mer entries requires the domain name part?

  •  01-15-2020, 15:25

    Re: Pmail Username limited to 8 digits?

    Folks,

    as said yesterday I tried to fake the User management dialog, and I'm glad to say I have succeed, at least in part. Here is a step by step procedure:

    1. Within a running Pegasus Mail session I clicked the Addresses > User management > New... option to open the User details dialog box.
    2. Then I typed "test_" into the Username field and a long description into the Personal name field, then OK, Close, etc. The \MAIL\test_ directory was properly created, as the "U;test_;Long name description" entry into \MAIL\PMAIL.USR control file. The mailbox directory (i.e. \MAIL\test_) was populated with two files: PMAIL.INI and the welcome .CNM as expected. Other control files and folders were created on user's first run.
    3. test_ user's PMAIL.INI file has this section:
      [Pegasus Mail for Windows - Run Info]
      Program version                  = Version 4.73.639, Mar 30 2018
      Language resources               = Standard UK English resource set
      Time and date run ended          = Wed, 15 Jan 2020 10:12:12
      Running in standalone mode?      = Y
      Internal username                = test_
      Working home mailbox location    = C:\PMAIL\MAIL\test_
      New mailbox location             = C:\PMAIL\MAIL\test_
      LAN-based SMTP gateway status    = Disabled, not preferred, not 'use always'.
      MHS status                       = Disabled, not preferred, not 'use always'.
      MHS directory path               = /
      MHS operating mode               = SMF-70
    4. I then ran Pegasus Mail with the command line winpm-32.exe -i test_ it all did well. I then shut it down.
    5. I opened \MAIL\PMAIL.USR file and edited test_ to test_test_. The \MAIL\test_ directory was also renamed to \MAIL\test_test_, and of course all test_ strings into PMAIL.INI were also replaced by test_test_. Pegasus Mail ran OK with the winpm-32.exe -i test_test_ command line, that is it accepted a Username 10-char long which corroborates my first assumption that the problem is restricted to the dialog's length constraint.
    6. Better yet: from within Pegasus Mail I called the User management dialog and there was the edited test_test_ Username and long description. Trying to edit it I could not extend its length, but I could shorten it to test_test, a 9-char string! And here is the "in part" of my previous assertion: the new 9-char Username was properly set in both \MAIL\test_test Windows directory, and also in \MAIL\PMAIL.USR control file, but NOT inside user's PMAIL.INI file where the Run Info remained like this:
      [Pegasus Mail for Windows - Run Info]
      Program version                  = Version 4.73.639, Mar 30 2018
      Language resources               = Standard UK English resource set
      Time and date run ended          = Wed, 15 Jan 2020 10:12:12
      Running in standalone mode?      = Y
      Internal username                = test_test_
      Working home mailbox location    = C:\PMAIL\MAIL\test_test_
      New mailbox location             = C:\PMAIL\MAIL\test_test_
      LAN-based SMTP gateway status    = Disabled, not preferred, not 'use always'.
      MHS status                       = Disabled, not preferred, not 'use always'.
      MHS directory path               = /
      MHS operating mode               = SMF-70

     

    All in all I think this may be considered a "minor bug" that may be already sorted out. And while this fixing (or new) release come to us it can be hacked with a text editor and some work. HTH.


    Best,

    euler f german
    sete lagoas, mg, brazil
    Pegasus Mail 4.73.639 Standalone - Windows 7 Ultimate
    BearHTML 4.9.9.6 IERenderer 2.6.3.2
    Binaries: C:\PMAIL\Programs
    Mailboxes: C:\PMAIL\MAIL

    InsPMDic — Dictionary Handler Add-on (link on profile)
  •  01-15-2020, 15:36

    • Joerg is not online. Last active: 01-29-2020, 15:13 Joerg
    • Top 25 Contributor
    • Joined on 03-25-2008
    • German Baltic Sea Coast
    • Contributor
    • Points 8,285

    Pmail Username limited to 8 digits?

    Mmh, I would think Mercury is completing the domain part automatically.

    I remember, when I forgot to add a new user in synonym.mer, Mercury has sent our its e-mails as jd@domain.com instead of j.doe@domain.com, means Mercury has created a full address including domain part.

  •  01-15-2020, 16:10

    • Brian Fluet is not online. Last active: 01-29-2020, 16:06 Brian Fluet
    • Top 10 Contributor
    • Joined on 12-24-2014
    • North Carolina, USA
    • SuperStar
    • Points 28,835

    Re: AW: Re: AW: Re: Pmail Username limited to 8 digits?

    I  believe that we are dependent on synonym.mer to associate the domain mailbox with the local mailbox.  IIFC, this was associated with the removal of all "local" entries in the MercuryD POP3 accounts information.  I don't know whether domain part is required in synonym.mer though.  I have it included in all of my entries.


  •  01-15-2020, 16:16

    • Joerg is not online. Last active: 01-29-2020, 15:13 Joerg
    • Top 25 Contributor
    • Joined on 03-25-2008
    • German Baltic Sea Coast
    • Contributor
    • Points 8,285

    Pmail Username limited to 8 digits?

    Hi Euler,

    Many thanks for your effort. Don't know whether we (Brian and me) could take-over your procedure 1:1 to our Pmail/Mercury installation since the user management will be carried out from Mercury. Maybe when changing anything in Pmail's user management (where all of my 20 local users appear as well), Mercury will take-over the changes.

    Euler GERMAN:
     that the problem is restricted to the dialog's length constraint.

    But this is exactly the problem when handling up to 20 users like me. I'm not able to start different users always by using the command line "-i user". Therefore I have to create 20 different shortcuts n my desktop. Instead of this I start winpm-32.exe without additional user option to get Pmail's user dialog box, where I'm able to choose the user I would like to start. That's why this dialog box should work with longer names, too.

  •  01-15-2020, 16:28

    • Joerg is not online. Last active: 01-29-2020, 15:13 Joerg
    • Top 25 Contributor
    • Joined on 03-25-2008
    • German Baltic Sea Coast
    • Contributor
    • Points 8,285

    AW: Re: AW: Re: AW: Re: Pmail Username limited to 8 digits?

    Brian Fluet:
    I  believe that we are dependent on synonym.mer to associate the domain mailbox with the local mailbox.  IIFC, this was associated with the removal of all "local" entries in the MercuryD POP3 accounts information.  I don't know whether domain part is required in synonym.mer though.  I have it included in all of my entries.

    Interesting, we have still the associated "local user" entries in place within the POP3 definitions. I thought, Mercury D has to know where any retrieved mails have to be put into (which user malibox). Only our public mailboxes have no local user, but instead of this there are some Alias definitions available.

  •  01-15-2020, 16:33

    • Brian Fluet is not online. Last active: 01-29-2020, 16:06 Brian Fluet
    • Top 10 Contributor
    • Joined on 12-24-2014
    • North Carolina, USA
    • SuperStar
    • Points 28,835

    Re: AW: Re: AW: Re: AW: Re: Pmail Username limited to 8 digits?

    Joerg:
    Interesting, we have still the associated "local user" entries in place within the POP3 definitions. I thought, Mercury D has to know where any retrieved mails have to be put to. Only our public mailboxes have no local user, but instead of this there are some Alias definitions available.

    Another IIRC... the removal of the "local" entries was how we resolved the problem of auto-forwards being sent with a From: of "localuser@domain.com" instead of "domainuser@domain.com".   I could be mis-remembering though.

Page 1 of 2 (21 items)   1 2 Next >
View as RSS news feed in XML

Contact | Advertise | Host provider: PraktIT | Terms of Use | Privacy Statement
Copyright © 2007-2011 David Harris / Peter Strömblad. | Pegasus Mail Home Page