1828371 Members
3032 Online
109976 Solutions
New Discussion

Re: SMTP

 
FOX MULDER_2
Frequent Advisor

SMTP

Hi,

I have a query.
How do I change mail address(from) while sending out mails from VMS servers?
e.g
From: bill.smith@xxx.com
needs to be changed to
From: abc@xxx.com

Server is a VAX :
Digital TCP/IP Services for OpenVMS VAX Version V4.1 - ECO 9
on a VAX 4000-400 running OpenVMS V7.2

Thanks
14 REPLIES 14
Kris Clippeleyr
Honored Contributor

Re: SMTP

Hi,
Don't know about UCX 4.1, ...
But with VAX/VMS 7.2 & TCP/IP 5.1, I defined the logical name TCPIP$SMTP_FROM to be "me@wherever.com".

Regards,
Kris (aka Qkcl)
I'm gonna hit the highway like a battering ram on a silver-black phantom bike...
Wim Van den Wyngaert
Honored Contributor

Re: SMTP

No longer have ucx but I don't find the logical of Kris in ucx (prefix ucx).

This is all I find :

UCX$SMTP_REWRITE_MTS_FROM
If you have most or all of your users' mail forwarded to ALL-IN-1, use this logical name to instruct the symbiont to parse the user name out of the complex MTS address and append the local host name instead.

I think you can change the from in the mail to localhost@xx.com. Nothing more.

Fwiw

Wim
Wim
FOX MULDER_2
Frequent Advisor

Re: SMTP

Hi Kris,

Have defined that logical..seems not working...
any other way...?

Thanks
Joseph Huber_1
Honored Contributor

Re: SMTP

Look if logical
TCPIP$SMTP_PROHIBIT_USER_HEADERS
( UCX$SMTP_PROHIBIT_USER_HEADERS )
is defined: if yes the SMTP_FROM is not used,
and You need to be or become system manager to change it.


http://www.mpp.mpg.de/~huber
Wim Van den Wyngaert
Honored Contributor

Re: SMTP

May be try another mail client ?
http://www.tmk.com/ftp/ftp-madgoat-com/mx/
E.g. 4.2 ? Never used it. Don't know if it can do it.

Wim
Wim
Wim Van den Wyngaert
Honored Contributor

Re: SMTP

Joseph logical isn't ucx either. And is to disable the from logical. So, no go.

Wim
Wim
Kris Clippeleyr
Honored Contributor

Re: SMTP

Hi,
It seems that the "outbound alias" was introduced (thru an ECO) in TCP/IP V5.0, and I think never backported to UCX 4.2.
Here is a quote from some old release notes:

ECO B 13-JAN-2000 Alpha and VAX


Images:


TCPIP$SMTP_MAILSHR.EXE V5.0A-1C
TCPIP$SMTP_PARSESHR.EXE V5.0A-1C (VAX only)
TCPIP$SMTP_PARSESHR_TV.EXE V5.0A-1C (Alpha only)
TCPIP$SMTP_RECEIVER.EXE V5.0A-1C
TCPIP$SMTP_SFF.EXE V5.0A-1C
TCPIP$SMTP_SYMBIONT.EXE V5.0A-1C


TCPIP$MSG.EXE V5.0A-1B


Problem:

Enhancement to SMTP to provide support for 'Outbound Alias'.

Solution:


Add support for a user defined logical TCPIP$SMTP_FROM which will
be used for the text of the From: and the Return-Path:
headers. Also added support for a system manager logical
TCPIP$SMTP_PROHIBIT_USER_HEADERS which will cause the
TCPIP$SMTP_FROM logical to be ignored effectively no-oping it.



Regards,
Kris (aka Qkcl)
I'm gonna hit the highway like a battering ram on a silver-black phantom bike...
FOX MULDER_2
Frequent Advisor

Re: SMTP

Hi,

Only these logicals are present :
"MAIL$PROTOCOL_SMTP" = "UCX$SMTP_MAILSHR"
"UCX$SMTP_ENABLE" = ".1.."

Thanks
Joseph Huber_1
Honored Contributor

Re: SMTP

Wim is right, MX could do this, is has configurable rewrite rules to transform addresses.

But rereading the original question: where, first of all, is "From: bill.smith@xxx.com" generated ?
By default UCX is using the VMS user name in the From address, but bill.smith is not a legal VMS username. I would rather expect a requirement to rewrite username abc to bill.smith . Or was it just a virtual example, Fox ?
http://www.mpp.mpg.de/~huber
Jan van den Ende
Honored Contributor

Re: SMTP

Fox,

I think your best solution will be to upgrade TCPIP.
The TCPIP version that is released by default with 7,2 (and installed be default if upgrading TO 7,2) _IS_ (DEC - that is how ols 7,2 IS) TCPIP services 5.0. (but be sure to instal the ECO straight away - native 5,0 is just too buggy ).
Maybe check the realease notes of the various TCP 5.x releases, and see what "new" features are desirable enough.

It is perhaps asking a bit too much that more modern functionality would work nicely on VERY OLD software ..

hth

Proost.

Have one on me.

jpe
Don't rust yours pelled jacker to fine doll missed aches.
FOX MULDER_2
Frequent Advisor

Re: SMTP

Thats correct Joseph...

I just mentioned Bill.Smith as an example.

Upgrading TCPIP at this point is not possible.

Thanks
Wim Van den Wyngaert
Honored Contributor

Re: SMTP

If you really need it :

define/char corrected 1
set que *SMTP*/char=CORRECTED
and write a dcl (or whatever) program that :
1) show que/fu and take the file that was submitted
2) open the file and take the file name out of it
3) open that file and scan for "From:" and corrected what is written there.
4) set entry x/char=CORRECTED
and you'll have mail.

I only tested 3) and it works (on 5.1)

fwiw

Wim
Wim
Wim Van den Wyngaert
Honored Contributor

Re: SMTP

Forget the char trick : the generic queue doesn't support it and the server queue accepts it but ignores it. Just do the reque of the stopped generic queue to the server queue by hand (set entr/req).

Wim (last seen char in 1996)
Wim
Wim Van den Wyngaert
Honored Contributor

Re: SMTP

For 3) : rename it to ;1 after change.

Our mailserver requires that the from exists in its db. If not : drop mail.

Wim
Wim