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

Should PMR as a system variable work?

Last post 12-05-2018, 9:54 by Greenman. 10 replies.
Sort Posts: Previous Next
  •  11-30-2018, 18:46

    • Brian Fluet is not online. Last active: 07-19-2019, 14:29 Brian Fluet
    • Top 10 Contributor
    • Joined on 12-24-2014
    • North Carolina, USA
    • SuperStar
    • Points 25,435

    Should PMR as a system variable work?

    I've been using the -V command line option with PMR= to make a system-wide addressbook available to select users.  I now want to make it available to all user so have tried setting PMR= in the login script.  The environment variable gets set but Pegasus Mail doesn't see or use it (Win7 machines).  Should this work?
  •  12-03-2018, 15:27

    • Brian Fluet is not online. Last active: 07-19-2019, 14:29 Brian Fluet
    • Top 10 Contributor
    • Joined on 12-24-2014
    • North Carolina, USA
    • SuperStar
    • Points 25,435

    Re: Should PMR as a system variable work?

    I just figured out that adding -V pmr=%pmr% to the command line works when "pmr" is set as an environment variable in the login script. 

    My hope was to have write-protected system-wide addressbooks (in the \Programs directory) and user editable ones in the PMR path but setting PMR breaks access to the addressbooks in \Programs.  It appears the only option is to put all system-wide addressbooks in the PMR path and then set permissions at the file level.

  •  12-03-2018, 17:27

    • Greenman is not online. Last active: 01 Jul 2019, 9:16 Greenman
    • Top 10 Contributor
    • Joined on 07-19-2007
    • UK
    • SuperStar
    • Points 14,300

    Re: Should PMR as a system variable work?

    I use Group Policy Preferences to do this - works very well.
  •  12-03-2018, 18:13

    • Brian Fluet is not online. Last active: 07-19-2019, 14:29 Brian Fluet
    • Top 10 Contributor
    • Joined on 12-24-2014
    • North Carolina, USA
    • SuperStar
    • Points 25,435

    Re: Should PMR as a system variable work?

    My knowledge of Group Policy isn't very deep so I don't have a vision of the benefit of using it over setting NTFS permissions.  How have you implemented it in Group Policy? 
  •  12-04-2018, 10:11

    • Greenman is not online. Last active: 01 Jul 2019, 9:16 Greenman
    • Top 10 Contributor
    • Joined on 07-19-2007
    • UK
    • SuperStar
    • Points 14,300

    Re: Should PMR as a system variable work?

    Here you are. I used to use 'set' to add the variables to each PC but this ensures that everyone gets it.

  •  12-04-2018, 13:26

    • Brian Fluet is not online. Last active: 07-19-2019, 14:29 Brian Fluet
    • Top 10 Contributor
    • Joined on 12-24-2014
    • North Carolina, USA
    • SuperStar
    • Points 25,435

    Re: Should PMR as a system variable work?

    Nice!  Thank you!

    You still must add "-V pmr=%pmr%" to each command line though correct?

  •  12-04-2018, 14:36

    • Greenman is not online. Last active: 01 Jul 2019, 9:16 Greenman
    • Top 10 Contributor
    • Joined on 07-19-2007
    • UK
    • SuperStar
    • Points 14,300

    Re: Should PMR as a system variable work?

    No. I just use '\\htlincs.local\it\Pmail\winpm-32.exe -i greenman -ms' for each account.
  •  12-04-2018, 15:25

    • Brian Fluet is not online. Last active: 07-19-2019, 14:29 Brian Fluet
    • Top 10 Contributor
    • Joined on 12-24-2014
    • North Carolina, USA
    • SuperStar
    • Points 25,435

    Re: Should PMR as a system variable work?

    Thanks for confirming that just setting a pmr environment variable should work.

    Now to figure out why mine isn't.

  •  12-04-2018, 15:57

    • Greenman is not online. Last active: 01 Jul 2019, 9:16 Greenman
    • Top 10 Contributor
    • Joined on 07-19-2007
    • UK
    • SuperStar
    • Points 14,300

    Re: Should PMR as a system variable work?

    Regarding permissions, our folder structure for Pegasus Mail is as follows:

    Top level folder = PMail. Share and Security permissions: Authenticated Users = Full Control

    Within PMail is winpm-32.exe etc. We have been using Pegasus Mail for many years and have simply upgraded the old installation each time so we don't use the newer folder structure where the exe's etc., are in a sub-folder off PMail. Address Books and Distribution Lists exist at the same level as the exe's.  Staff have full control permissions over all of this. As you know Address Books that are restricted can have their permissions set to disable inheritance and you can then define explicit permissions based on exactly who should have access.

     Within PMail are the user folders - these all have permission inheritance disabled and are replaced with: authenticated users = Write only. User account that owns the mail in the folder has full control. 

  •  12-04-2018, 20:47

    • Brian Fluet is not online. Last active: 07-19-2019, 14:29 Brian Fluet
    • Top 10 Contributor
    • Joined on 12-24-2014
    • North Carolina, USA
    • SuperStar
    • Points 25,435

    Re: Should PMR as a system variable work?

    It's working!  The PMR environment variable is now set in Group Policy.

    Prior to that I got it to work on my machine which had the environment variable set manually but I can't explain why since I don't think I had changed anything since yeste

  •  12-05-2018, 9:54

    • Greenman is not online. Last active: 01 Jul 2019, 9:16 Greenman
    • Top 10 Contributor
    • Joined on 07-19-2007
    • UK
    • SuperStar
    • Points 14,300

    Re: Should PMR as a system variable work?

    We used to use the 'set' command to add it to the path variable but after a while it stopped working on some machines (we don't know why). The Group Policy Preference method has worked flawlessly since that time. I think the key is to set the policy to update which ensures the PMR and PML variables are enforced on each client each time they start.
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