- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- How to not treat localhost SMTP as relaying
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2009 09:12 AM
тАО11-09-2009 09:12 AM
- set norelay
AND
- do not configure a "smart host" gateway
Then I can't, as a local user of this system, send an email to the Internet via SMTP. The conversation goes like this:
$ telnet localhost 25
%TELNET-I-TRYING, Trying ... 127.0.0.1
%TELNET-I-SESSION, Session 01, host localhost, port 25
220 my.mail.server V5.4-ECO7, OpenVMS V7.3-2 Alpha ready at Mon, 9 Nov 2009 09:00:42 -0800 (PST)
helo localhost
250 my.mail.server Hello LOCALHOST, pleased to meet you, friend
mail from: me@my.mail.server
250
rcpt to: me@somewhere.out.there
551 User not local, Relay disabled.
quit
221 my.mail.server Service closing transmission channel
On another VMS system that is configured to make non-local deliveries via a "smart host", my portable script to send mail via SMTP works. But on a host where a smart host is not available, it fails with the above errors.
I combed the TCP/IP docs, looking for an answer to this one, but couldn't find anything. What am I missing? How do I prevent other hosts from using this system as a mail relay, but allow local users to send mail via SMTP without using a gateway host to do it?
Please don't tell me "use the VMS MAIL client, then", as that is not portable.
Thanks,
Ben
p.s. For anyone who cares, the mail script is written in Ruby, but since the telnet session above demonstrates the problem just as well, that isn't really relevant.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2009 10:52 AM
тАО11-09-2009 10:52 AM
Re: How to not treat localhost SMTP as relaying
Option 1, enable mail relay and limit the source of connections. See Chapter 18, Managing TCPIP Services for OpenVMS at http://h71000.www7.hp.com/doc/83final/6526/6526pro_042.html#smtp_chap
$ TCPIP DISABLE SERVICE SMTP
$ TCPIP STOP MAIL
$ TCPIP SET SERVICE SMTP /ACCEPT=(host0, host1 ...)
$ TCPIP SET SERVICE SMPT /ACCEPT=NETWORK=a.b.c.d:mask
$ TCPIP START MAIL
$ TCPIP ENABLE SERVICE SMTP
Option 2, revise your script to use the DCL mail command, possibly in combination with mime as the source for your messages.
Andy Bustamante
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2009 10:59 AM
тАО11-09-2009 10:59 AM
Solution> Then I can't, as a local user of this
> system, send an email to the Internet via
> SMTP.
Makes sense to me.
> How do I prevent other hosts from using
> this system as a mail relay, but allow
> local users to send mail via SMTP without
> using a gateway host to do it?
I'd try:
1. Let it act as a relay, so that it can
deliver some mail.
2. Adjust the rules in
SYS$SPECIFIC:[TCPIP$SMTP]SMTP.CONFIG
to limit the client list. ("Good-Clients:"
might be an easy way.)
> $ TCPIP SET SERVICE SMTP /ACCEPT=(host0, host1 ...)
> $ TCPIP SET SERVICE SMPT /ACCEPT=NETWORK=a.b.c.d:mask
Or do it that way. As usual, many things are
possible.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2009 11:04 AM
тАО11-09-2009 11:04 AM
Re: How to not treat localhost SMTP as relaying
C code here: http://labs.hoffmanlabs.com/node/744
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2009 11:04 AM
тАО11-09-2009 11:04 AM
Re: How to not treat localhost SMTP as relaying
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2009 08:07 PM
тАО11-09-2009 08:07 PM
Re: How to not treat localhost SMTP as relaying
There may be something you could do with the TCPIP$SMTP_COMMON:SMTP.CONFIG file such as defining the values of "Relay-Zones:" to include the domains to which you wish to send mail. Of course doing this would create an open relay for thoes domains.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2009 08:41 PM
тАО11-09-2009 08:41 PM
Re: How to not treat localhost SMTP as relaying
you may also be able to do something here, however, this also leads to a domain limited open relay.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2009 03:38 AM
тАО11-10-2009 03:38 AM
Re: How to not treat localhost SMTP as relaying
Normally this overrides the "no-relay" for the hosts entered here.
Jouk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2009 03:43 AM
тАО11-10-2009 03:43 AM
Re: How to not treat localhost SMTP as relaying
Jouk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2009 05:15 AM
тАО11-10-2009 05:15 AM