<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: VMS mail error %MAIL-E-NOSUCHUSR, no such user in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/vms-mail-error-mail-e-nosuchusr-no-such-user/m-p/3592171#M6792</link>
    <description>Dale,&lt;BR /&gt;I have been doing something very similiar to what you suggested. I was hoping there was a better way. One alternative that I am leaning towards is just use SMTP mail only.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;William,&lt;BR /&gt;All of the users are local. I am using a list of names like "USER1,USER2,USER3".&lt;BR /&gt;I guess a slick way to do it would be to use f$element in a loop and send the mail once for each user. If it fails for a specific user I could just log it and continue to the next user.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 28 Jul 2005 15:18:03 GMT</pubDate>
    <dc:creator>Jeff Bath</dc:creator>
    <dc:date>2005-07-28T15:18:03Z</dc:date>
    <item>
      <title>VMS mail error %MAIL-E-NOSUCHUSR, no such user</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-mail-error-mail-e-nosuchusr-no-such-user/m-p/3592167#M6788</link>
      <description>Is they a way to allow mail to continue if a specified username is no longer valid?&lt;BR /&gt;This is done via a batch process and the warning mail messages sometimes fail if one of the users is no longer valid.&lt;BR /&gt;I know the obvious way is to execute the mail command for each individual user but thats not very elegant.</description>
      <pubDate>Thu, 28 Jul 2005 14:24:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-mail-error-mail-e-nosuchusr-no-such-user/m-p/3592167#M6788</guid>
      <dc:creator>Jeff Bath</dc:creator>
      <dc:date>2005-07-28T14:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: VMS mail error %MAIL-E-NOSUCHUSR, no such user</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-mail-error-mail-e-nosuchusr-no-such-user/m-p/3592168#M6789</link>
      <description>It all depends on how you're doing what you're doing.&lt;BR /&gt;&lt;BR /&gt;Are you using distribution lists (.DIS) or processing a list of accounts?&lt;BR /&gt;&lt;BR /&gt;Is all this happening on one local node, or are user accounts on multiple nodes involved?&lt;BR /&gt;&lt;BR /&gt;Unfortunately, f$user doesn't allow you to check for the existence (or not) of a valid VMS account.&lt;BR /&gt;&lt;BR /&gt;You've also not taken into account(!) the fact that a perfectly valid account might have the DISMAIL or DISNEWMAIL flags enabled.&lt;BR /&gt;&lt;BR /&gt;WWWebb</description>
      <pubDate>Thu, 28 Jul 2005 14:48:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-mail-error-mail-e-nosuchusr-no-such-user/m-p/3592168#M6789</guid>
      <dc:creator>William Webb_2</dc:creator>
      <dc:date>2005-07-28T14:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: VMS mail error %MAIL-E-NOSUCHUSR, no such user</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-mail-error-mail-e-nosuchusr-no-such-user/m-p/3592169#M6790</link>
      <description>Unfortunately, I do not know of any way to do exactly what you want to do, but something that might help a little would be to do the following:&lt;BR /&gt;&lt;BR /&gt;$ Set NoOn&lt;BR /&gt;$ Mail/Subject="Text" Filename.Ext @Dist.Lis&lt;BR /&gt;$ If $Status .Eq. %X107E802A&lt;BR /&gt;$ Then&lt;BR /&gt;$    Mail/Subject="ErrorText" Filename.Ext @Known_Good_Dist.Lis&lt;BR /&gt;$ Set On&lt;BR /&gt;&lt;BR /&gt;Keep the Known_Good_Dist.Lis to a minimum of users that are certain to be valid.  This will let you know quickly when a distribution list has a problem.</description>
      <pubDate>Thu, 28 Jul 2005 15:01:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-mail-error-mail-e-nosuchusr-no-such-user/m-p/3592169#M6790</guid>
      <dc:creator>Dale A. Marcy</dc:creator>
      <dc:date>2005-07-28T15:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: VMS mail error %MAIL-E-NOSUCHUSR, no such user</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-mail-error-mail-e-nosuchusr-no-such-user/m-p/3592170#M6791</link>
      <description>Forgot my $ EndIf before the $ Set On.  It also removed all of my indentations, so it is harder to read than what I had input.</description>
      <pubDate>Thu, 28 Jul 2005 15:02:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-mail-error-mail-e-nosuchusr-no-such-user/m-p/3592170#M6791</guid>
      <dc:creator>Dale A. Marcy</dc:creator>
      <dc:date>2005-07-28T15:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: VMS mail error %MAIL-E-NOSUCHUSR, no such user</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-mail-error-mail-e-nosuchusr-no-such-user/m-p/3592171#M6792</link>
      <description>Dale,&lt;BR /&gt;I have been doing something very similiar to what you suggested. I was hoping there was a better way. One alternative that I am leaning towards is just use SMTP mail only.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;William,&lt;BR /&gt;All of the users are local. I am using a list of names like "USER1,USER2,USER3".&lt;BR /&gt;I guess a slick way to do it would be to use f$element in a loop and send the mail once for each user. If it fails for a specific user I could just log it and continue to the next user.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Jul 2005 15:18:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-mail-error-mail-e-nosuchusr-no-such-user/m-p/3592171#M6792</guid>
      <dc:creator>Jeff Bath</dc:creator>
      <dc:date>2005-07-28T15:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: VMS mail error %MAIL-E-NOSUCHUSR, no such user</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-mail-error-mail-e-nosuchusr-no-such-user/m-p/3592172#M6793</link>
      <description>Maybe something like&lt;BR /&gt;$ set noverify&lt;BR /&gt;$ ws = "WRITE SYS$OUTPUT"&lt;BR /&gt;$ status_mail = "USER1,USER2,smtp%""test@test.COM"""&lt;BR /&gt;$ x = 0&lt;BR /&gt;$ set noon&lt;BR /&gt;$ mail_loop:&lt;BR /&gt;$ xuser = f$element(x,",",status_mail)&lt;BR /&gt;$ if xuser .nes. ","&lt;BR /&gt;$ then&lt;BR /&gt;$    x = x + 1&lt;BR /&gt;$    if xuser .eqs. "" then goto mail_loop !!! Just in case we find a blank element. !!!&lt;BR /&gt;$    ws "-I- Sending Mail to "+xuser&lt;BR /&gt;$    mail/noself nl: 'xuser'/subject="This is a Test"&lt;BR /&gt;$    if .not. $status then ws "-E- Error occured sending mail to ""''xuser'"". (''$status')"&lt;BR /&gt;$    goto mail_loop&lt;BR /&gt;$ endif&lt;BR /&gt;$ set on&lt;BR /&gt;$!&lt;BR /&gt;$ EXIT</description>
      <pubDate>Thu, 28 Jul 2005 15:35:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-mail-error-mail-e-nosuchusr-no-such-user/m-p/3592172#M6793</guid>
      <dc:creator>Jeff Bath</dc:creator>
      <dc:date>2005-07-28T15:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: VMS mail error %MAIL-E-NOSUCHUSR, no such user</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-mail-error-mail-e-nosuchusr-no-such-user/m-p/3592173#M6794</link>
      <description>Jeff,&lt;BR /&gt;&lt;BR /&gt;  Get a copy of NMAIL from the freeware CD. It's a mail transport which doesn't require the usual handshake from the target node. NMAIL will retry up to some threshold (useful if the target node is down) before deciding that a message is undeliverable. &lt;BR /&gt;&lt;BR /&gt;  MAIL/SUBJ="subject" file nm%user1,nm%user2 &lt;BR /&gt;&lt;BR /&gt;  If the target user doesn't exist, the send won't fail, but the NMAIL daemon will mail you back an error report. &lt;BR /&gt;</description>
      <pubDate>Fri, 29 Jul 2005 01:10:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-mail-error-mail-e-nosuchusr-no-such-user/m-p/3592173#M6794</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2005-07-29T01:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: VMS mail error %MAIL-E-NOSUCHUSR, no such user</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-mail-error-mail-e-nosuchusr-no-such-user/m-p/3592174#M6795</link>
      <description>Oh, and for a distribution list, you can either prefix each name in the .DIS file with nm%, or in MAIL:&lt;BR /&gt;&lt;BR /&gt;MAIL&amp;gt; SET TRANSPORT NM%&lt;BR /&gt;&lt;BR /&gt;This will set it as the default transport (I don't think that ever got documented...). So, any mail address without an explicit transport will use NMAIL.&lt;BR /&gt;</description>
      <pubDate>Fri, 29 Jul 2005 01:13:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-mail-error-mail-e-nosuchusr-no-such-user/m-p/3592174#M6795</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2005-07-29T01:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: VMS mail error %MAIL-E-NOSUCHUSR, no such user</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-mail-error-mail-e-nosuchusr-no-such-user/m-p/3592175#M6796</link>
      <description>&lt;BR /&gt;Here is an other thought...&lt;BR /&gt;&lt;BR /&gt;You can always have a mail forward, even if the user is no longer valid.&lt;BR /&gt;&lt;BR /&gt;So you could create a single dummy user name, disabled, to 'collect' stray messages for later analysis and fixes.&lt;BR /&gt;&lt;BR /&gt;$MCR AUTHORIZE ADD JUNKMAIL /DEV...&lt;BR /&gt;$MAIL&lt;BR /&gt;MAIL&amp;gt; SET FORW JUNKMAIL/USER=SOME_USER&lt;BR /&gt;MAIL&amp;gt; SET FORW JUNKMAIL/USER=OTHER_USER&lt;BR /&gt;&lt;BR /&gt;hein.&lt;BR /&gt;</description>
      <pubDate>Fri, 29 Jul 2005 03:55:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-mail-error-mail-e-nosuchusr-no-such-user/m-p/3592175#M6796</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2005-07-29T03:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: VMS mail error %MAIL-E-NOSUCHUSR, no such user</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-mail-error-mail-e-nosuchusr-no-such-user/m-p/3592176#M6797</link>
      <description>Hein,&lt;BR /&gt;&lt;BR /&gt;Relatively current VMS mail versions don't require a VMS account (I don't recall how far back it goes V7, V6???).  You can create mail forwarding entries without a corresponding VMS account.&lt;BR /&gt;&lt;BR /&gt;Bill</description>
      <pubDate>Fri, 29 Jul 2005 09:27:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-mail-error-mail-e-nosuchusr-no-such-user/m-p/3592176#M6797</guid>
      <dc:creator>Bill Hall</dc:creator>
      <dc:date>2005-07-29T09:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: VMS mail error %MAIL-E-NOSUCHUSR, no such user</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-mail-error-mail-e-nosuchusr-no-such-user/m-p/3592177#M6798</link>
      <description>This seems like the simplest way. I came up with this with the help of a colleague.&lt;BR /&gt;&lt;BR /&gt;$ pipe write sys$output "YES" | mail/sub=testing nl: user1,user2,user3&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 29 Jul 2005 12:16:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-mail-error-mail-e-nosuchusr-no-such-user/m-p/3592177#M6798</guid>
      <dc:creator>Jeff Bath</dc:creator>
      <dc:date>2005-07-29T12:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: VMS mail error %MAIL-E-NOSUCHUSR, no such user</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-mail-error-mail-e-nosuchusr-no-such-user/m-p/3592178#M6799</link>
      <description>Jeff,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;$ pipe write sys$output "YES" | mail/sub=testing nl: user1,user2,user3&lt;BR /&gt;&lt;BR /&gt;  This is a very long winded way of executing the MAIL command in a subprocess and ignore the return status. You actually create 2 subprocesses to execute the command. A much easier way to do that is:&lt;BR /&gt;&lt;BR /&gt;$ SPAWN/NOWAIT MAIL/SUBJ="test" NL: user1,user2,user3&lt;BR /&gt;&lt;BR /&gt;Even better is to use SET NOON, then you don't need to incur the cost of process creation:&lt;BR /&gt;&lt;BR /&gt;$ SET NOON&lt;BR /&gt;$ MAIL/SUBJ="test" NL: user1,user2,user3&lt;BR /&gt;$ SET ON&lt;BR /&gt;&lt;BR /&gt;However, with both of these mechanism, if any of those users triggers a MAIL-E-NOSUCHUSER, then NONE of them will receive mail. That's just the way MAIL works with the default transport.&lt;BR /&gt;&lt;BR /&gt;If you want to make sure those users that exist get the mail, and those that don't are ignored, you can either issue one MAIL command per user, or use NMAIL as suggested earlier. NMAIL is a much better solution. It does exactly what you want. Just because it's freeware, doesn't mean it's no good. It was standard on every VMS system in Digital, and should have been incorporated into the product.</description>
      <pubDate>Sun, 31 Jul 2005 23:39:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-mail-error-mail-e-nosuchusr-no-such-user/m-p/3592178#M6799</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2005-07-31T23:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: VMS mail error %MAIL-E-NOSUCHUSR, no such user</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-mail-error-mail-e-nosuchusr-no-such-user/m-p/3592179#M6800</link>
      <description>There is one more extremely efficient, but also extremely ugly solution.&lt;BR /&gt;Mail treats target usernames as logical names allowing you to define 'operator_of_the_day' to a real mail name outside the forwarding system. Exploiting that, you can define a (system wide) logical name(s) for invalid usernames translating to " ". This will make vaxmail effectively ignore those usernames and create unpredictable havoc to your system when that name is used in an other context.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Jeff&amp;gt;&amp;gt; $ pipe write sys$output "YES" | mail/sub=testing nl: user1,user2,user3&lt;BR /&gt;&lt;BR /&gt;If you had a file in a known location on your system starting with a "y" or "Y", then it would be much more efficient to use:&lt;BR /&gt;&lt;BR /&gt;$DEFINE/USER SYS$INPUT some_file_with_yes&lt;BR /&gt;$MAIL/sub=testing nl: user1,user2,user3&lt;BR /&gt;&lt;BR /&gt;Bill&amp;gt;&amp;gt; Relatively current VMS mail versions don't require a VMS account&lt;BR /&gt;&lt;BR /&gt;Hi Bill, yes that is what I was trying to exploit: create as many mail forwards as you need for usernames that no longer exist but used to be valid. But I would think you would then want a dedicated username to receive those mail, that's why my example included a UAF ADD. Not for the target, but for a helpr account. Of course you could also send them to an existing 'system' or an application manager account.&lt;BR /&gt;&lt;BR /&gt;fwiw,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Mon, 01 Aug 2005 10:00:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-mail-error-mail-e-nosuchusr-no-such-user/m-p/3592179#M6800</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2005-08-01T10:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: VMS mail error %MAIL-E-NOSUCHUSR, no such user</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-mail-error-mail-e-nosuchusr-no-such-user/m-p/3592180#M6801</link>
      <description>I don't think I need to worry about efficiency in this case. This mail will only be sent in the event of an exception. Which to date has only happened maybe 4 times in then last 5 years. Also we are running this on GS1280s so I wonder if we would even notice the effects of this process.</description>
      <pubDate>Mon, 01 Aug 2005 11:19:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-mail-error-mail-e-nosuchusr-no-such-user/m-p/3592180#M6801</guid>
      <dc:creator>Jeff Bath</dc:creator>
      <dc:date>2005-08-01T11:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: VMS mail error %MAIL-E-NOSUCHUSR, no such user</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-mail-error-mail-e-nosuchusr-no-such-user/m-p/3592181#M6802</link>
      <description>Just because you're only using it once in a while and on a GS1280 doesn't mean that someone, somewhere, won't see it as a really neat trick and end up using it everywhere!&lt;BR /&gt;&lt;BR /&gt;FWIW, I was thinking along the same lines as Hein in creating an account to act as a bit bucket for undelivered mail and forward old users' mail to there.&lt;BR /&gt;&lt;BR /&gt;You could, I suppose, use system services to check whether a user exists before trying to mail them...  You could probably even check the account exists using the example I got from somewhere of what the new mail count was for the user - no directory, no username one would hope they wouldn't have a new mail count!</description>
      <pubDate>Mon, 01 Aug 2005 12:14:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-mail-error-mail-e-nosuchusr-no-such-user/m-p/3592181#M6802</guid>
      <dc:creator>Steve Reece_3</dc:creator>
      <dc:date>2005-08-01T12:14:05Z</dc:date>
    </item>
  </channel>
</rss>

