Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

Any way to force SMTP to relay all mail to external mailserver?

Peter Forsell_1
Occasional Contributor

Any way to force SMTP to relay all mail to external mailserver?

Is there any posibility to force SMTP in UCX 4.2 to always relay all mail to external mailserver. The problem is today that the mailserver think some mailadresses are local even if they are external due to problems with domain naming. I want UCX smtp to always relay every mail to the external mailerver even if it thinks its belongs to the LOCAL domain. Any nice command?
6 REPLIES
Kris Clippeleyr
Honored Contributor

Re: Any way to force SMTP to relay all mail to external mailserver?

Peter,

Have you tried the

$ TCPIP SET CONFIG SMTP /GATEWAY=host_or_domain

command (or the equivalent for UCX)?

Maybe also include the /OPTIONS=RELAY (although I haven't tried that one).

Greetz,

Kris
I'm gonna hit the highway like a battering ram on a silver-black phantom bike...
Ian Miller.
Honored Contributor

Re: Any way to force SMTP to relay all mail to external mailserver?

if you define the smtp zone to be the local system

UCX SET CONFIG/SMTP=ZONE="name.domain.com"

then restart SMTP
@SYS$STARTUP:UCX$SMTP_SHUTDOWN
@SYS$STARTUP:UCXSMTP_STARTUP
____________________
Purely Personal Opinion
Ian Miller.
Honored Contributor

Re: Any way to force SMTP to relay all mail to external mailserver?

There is also the logical UCX$SMTP_ALTGATE_ALWAYS which you can
DEFINE/SYSTEM/EXEC which is supposed to force all email via the alternate gateway
____________________
Purely Personal Opinion
Peter Forsell_1
Occasional Contributor

Re: Any way to force SMTP to relay all mail to external mailserver?

I have tried a lot, but I can only tranfer mail outside the server if I use a external mail receptient (other domain name). I want the external mailserver to have every mail undepending the domain name.

Adding the logical name def/sys/exec ucx$smtp_altgate_always yes dont change anything. I restartet smtp
I have tried to change the zone to gfksr1.gfk.stockholm.se with no change.Also gfk.stockholm.se no change

Some facts :
Server name :Gfksr1
Domain:gfksr1.gfk.stockholm.se
external mailserver (altgateway): remail.stockholm.se
Ps! this mailserver asume that my domain as sender is gfk.stockholm.se or it refuse connection (server out of our control)
As server normally shows gfksr1.gfk.stockholm.se to mailserver,I have changed domain name in UCX by substitute domain: hidden, gfk.stockholm.se
Right now the zone is :gfk.stockholm.se

Still the server thinks a mail as xx@gfk.stockholm.se is local in the Alpha server and the sends it back with notice "no such user"
Any more ideas?

Ian Miller.
Honored Contributor

Re: Any way to force SMTP to relay all mail to external mailserver?

are there any relevent MX records?
Try DEF/SYS UCX$SMTP_LOG_LEVEL 5 and restart SMTP. This will write debug information to the log file in SYS$SPECIFIC:[UCX_SMTP])
____________________
Purely Personal Opinion
Peter Forsell_1
Occasional Contributor

Re: Any way to force SMTP to relay all mail to external mailserver?

Today I added the mx record "set mx gfk.stockholm.se/gatew=remail.stockholm.se
It already containded mx record "stockholm.se gatew =remail.stockholm.se"
I have used the log level 5 for some time .Really a very good trace tool.
I sent a mail today and looked in the log. Very early in the log it looks up the domain name that is "gfk.stockholm.se" and then sets the bit "local". Then everything is runned in local mode