Operating System - OpenVMS
1748219 Members
4955 Online
108759 Solutions
New Discussion юеВ

"Privilege Error" on when invoking VMS MAIL Send

 
SOLVED
Go to solution
IFX_1
Frequent Advisor

"Privilege Error" on when invoking VMS MAIL Send

I'm getting this error when sending mail to recipients like "name@company.com".

Any idea which file I should set accordingly?

I already tried setting protection on mail.mai and vmsmail_profile.data but to no avail.


************************************
$ mail

You have 71 new messages.

MAIL> send
To: email@company.com
%RMS-E-PRV, insufficient privilege or file protection violation
%RMS-E-PRV, insufficient privilege or file protection violation

MAIL>
17 REPLIES 17
Wim Van den Wyngaert
Honored Contributor

Re: "Privilege Error" on when invoking VMS MAIL Send

If audit is enabled :
$ anal/aud/fu/sin=xxx audit_file
where audit file is found in show audit/all

To enable file access violation auditing :
set aud/aud/ena=(access=(failure:(read,write,execute,delete,control))

(but save your settings based upon show aud/all)

Wim
Wim
Wim Van den Wyngaert
Honored Contributor
Solution

Re: "Privilege Error" on when invoking VMS MAIL Send

Easier but cryptical :
before starting mail
set watch file/class=all (or replace all by major if too many output)

Wim
Wim
Jan van den Ende
Honored Contributor

Re: "Privilege Error" on when invoking VMS MAIL Send

IFX,

perhaps you will fare better if you use

MAIL> send
To: "email@company.com"

As it is, you are using a DCL indirection feature which (tries to) activate a file COMPANY.COM in your current default directory.
Atmittedly, the error message could have been more informative :-)

Proost.

Have one on me.

jpe
Don't rust yours pelled jacker to fine doll missed aches.
Wim Van den Wyngaert
Honored Contributor

Re: "Privilege Error" on when invoking VMS MAIL Send

Jan,

DCL within mail ?

I just used the same syntax without quotes. Works fine.

Wim
Wim
Steven Schweda
Honored Contributor

Re: "Privilege Error" on when invoking VMS MAIL Send

> I just used the same syntax without quotes.
> Works fine.

I do it all the time, too, but for some
pretty old VMS versions, more work was
needed. As usual, more info about the
environment (VMS version, TCPIP (or whatever)
version, ...) might be useful. I can imagine
something like this happening if some obscure
SMTP-related image is over-protected.



> "Privilege Error" [...]

Just curious: What were you quoting?
IFX_1
Frequent Advisor

Re: "Privilege Error" on when invoking VMS MAIL Send

Thank you guys for the feedback.

We are using this syntax on other cluster nodes without problems.

We are running on OpenVMS 8.3, TCPIP V5.6-9ECO2.

I tried adding READALL privilege to the VMS account and I can run the same syntax (no quotes) without problem.

Which file is MAIL trying to open?

Wim Van den Wyngaert
Honored Contributor

Re: "Privilege Error" on when invoking VMS MAIL Send

With my set watch command you could find that.

in my version (5.3) :

tcpip$service.dat
tcpip$configuration.dat
tcpip$host.dat
and a temp file I will not quote (in login directory)

Wim
Wim
IFX_1
Frequent Advisor

Re: "Privilege Error" on when invoking VMS MAIL Send

Wim,

Great help. Right away I found which file it has no access to by using "set watch". It's TCPIP$CONFIGURATION.DAT.

Thank you Wim and to the rest who responded to my query.
Hoff
Honored Contributor

Re: "Privilege Error" on when invoking VMS MAIL Send

Jan's reply is incorrect on two counts: the parenthesis are not required for specifications within mail (that's a DCL-level bit of "fun"), and the @ processing only happens when DCL is accepting and processing the input and not another utility (such as mail in this case).

@ doesn't have an unexpected side-effect inside MAIL for the same reason you can't perform ' ampersand substitution at this same juncture within MAIL or inside ftp or other such; it's not DCL that's reading and processing the input. It's (in this case) MAIL doing that. And if it's not DCL, there's no DCL processing.