Problem Note 53105: A SAS® program to send e-mail fails and returns the error "501 5.1.7 Invalid address" when the SMTP server does not support aliases
With SAS® 9.3, the following message occurs in your SAS log when you use aliases for the value of SMTP MAIL FROM:email address and your SMTP server does not support aliases.
501 5.1.7 Invalid address
Click the Hot Fix tab in this note to access the hot fix for this issue.
In order to allow the aliases in the FROM:email address to work, you must apply the hot fix and also create an entry in the SAS registry. Follow the instructions below:
- Execute your SAS CLIST on the mainframe. In the Program Editor, type regedit at the command prompt and press Enter, as shown:
Program Editor
Command ===> regedit
00001
00002
The Registry Editor window is displayed.
- On the left side of the screen, in the box labeled SAS Registry, place your cursor over the two boxes next to CORE and press Enter.
- Click Edit at the top of the screen and select New ► Key.
- In the new window, under Name:, type EMAIL, click OK, and press Enter.
- Under Contents of 'EMAIL' on the right side of the screen, right-click the Name header and select New Unsigned Integer.
- Click New Unsigned Integer Value. Enter IGNOREFROM under Value Name: and enter 1 under Value Data:.
- Click OK.
Your screen should now look like the following.
Registry Editor
File Edit View Tools Solutions Help
SAS Registry Contents of 'EMAIL'
SAS_REGISTRY Name Data
APPLICATIONCLASS IGNOREFROM 1
COLORNAMES
CORE
EMAIL
....
ODS
PRODUCTS
SASCLSID
The previous steps stored the new registry value in the current user's SASUSER library. To make this change available globally for all users, complete the following steps:
- Bring up the SAS Registry Editor and expand CORE\\EMAIL.
- At the top of the screen, select File ► Export Registry File....
- Specify a filename and click Save.
- In a batch job, run the following program, with the SASHELP library allocated with DISP=OLD:
proc registry import="xxxxx.xxxxx.xxxxx" usesashelp; run;
In the above program, xxxxx.xxxxx.xxxxx is the data set that you created in step 3. You must have Update access to the SASHELP library.
Operating System and Release Information
SAS System | N/A | z/OS | 9.3 TS1M2 | 9.4 TS1M1 |
SAS System | Base SAS | z/OS | 9 TS M0 | 9.4 TS1M1 |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9 TS M0 | |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9 TS M0 | |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9 TS M0 | |
Microsoft Windows 2000 Advanced Server | 9 TS M0 | |
Microsoft Windows 2000 Datacenter Server | 9 TS M0 | |
Microsoft Windows 2000 Server | 9 TS M0 | |
Microsoft Windows 2000 Professional | 9 TS M0 | |
Microsoft Windows NT Workstation | 9 TS M0 | |
Microsoft Windows Server 2003 Datacenter Edition | 9 TS M0 | |
Microsoft Windows Server 2003 Enterprise Edition | 9 TS M0 | |
Microsoft Windows Server 2003 Standard Edition | 9 TS M0 | |
Microsoft Windows XP Professional | 9 TS M0 | |
64-bit Enabled AIX | 9 TS M0 | 9.4 TS1M1 |
64-bit Enabled HP-UX | 9 TS M0 | 9.4 TS1M1 |
64-bit Enabled Solaris | 9 TS M0 | 9.4 TS1M1 |
HP-UX IPF | 9 TS M0 | 9.4 TS1M1 |
Linux | 9 TS M0 | 9.4 TS1M1 |
OpenVMS Alpha | 9 TS M0 | 9.4 TS1M1 |
Tru64 UNIX | 9 TS M0 | 9.4 TS1M1 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
If you use an alias in the FROM e-mail address, a SAS program that sends e-mail fails.
Type: | Problem Note |
Priority: | medium |
Date Modified: | 2014-07-16 15:53:20 |
Date Created: | 2014-06-02 13:17:47 |