Messaging
cancel
Showing results for 
Search instead for 
Did you mean: 

Send mail to certain recipients to different host & port

AndyMc
Occasional Contributor

Send mail to certain recipients to different host & port

Is it possible to redirect incoming emails to an HP-UX box for a specific user to a different port on the same host?

i.e email to user1@hosta.domain.local gets redirected to port 25000 on hosta.domain.local
3 REPLIES
Steven Schweda
Honored Contributor

Re: Send mail to certain recipients to different host & port

I don't _think_ that this question makes any
sense, but I could be wrong. You might try
explaining the actual problem which you are
trying to solve, instead of asking how to
implement what you think is its solution.

What do you have listening on port 25000 of
that system? (Is it expecting to do SMTP?)
AndyMc
Occasional Contributor

Re: Send mail to certain recipients to different host & port

Basically yes. We have SAP listening for SMTP on port 25000, and sendmail on port 25.

Apparently we can't change MS Exchange to point to port 25000 on this host so we need somehow to get traffic to port 25 redirected to port 25000 on the same host.

I thought perhaps sendmail could do it using mailertable or somesuch.
Steven Schweda
Honored Contributor

Re: Send mail to certain recipients to different host & port

I know nothing about persuading any e-mail
program to use a different port, but a Google
search for
sap smtp port
led to, for example:

http://www.ibm.com/developerworks/aix/library/au-sendmail_on_aix/index.html

which seems to discuss this particular
situation for sendmail (on AIX, but how
different could it be?). Apparently, one can
toss a port number onto an "A=TCP ..."
specification for a mailer. (Who knew?)

A similar search (with a more carefully
chosen keyword list) might do better, of
course.

You'd still need to re-jigger the rules to
get the appropriate recipients to use the new
and exotic alternate-port mailer, but I
assume that this would be child's play for
any serious sendmail user.