LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   Configure Smart Host in Sun Java System Messaging Server 7 u4 (https://www.linuxquestions.org/questions/solaris-opensolaris-20/configure-smart-host-in-sun-java-system-messaging-server-7-u4-4175420196/)

rohit_k 08-03-2012 10:12 AM

Configure Smart Host in Sun Java System Messaging Server 7 u4
 
I want my Sun Java System Messaging Server to forward all the incoming mails to some different host (without having a copy in data stores).
In Sendmail, we can do this by specifying DS[ip_address] in sendmail.cf file.
(Often referred as smart host).

How to configure smart host in Sun Java System Messaging Server? I want all the mails to be blindly forwarded to specified ip:port.
Pls help.

bathory 08-04-2012 04:36 PM

Quote:

I want my Sun Java System Messaging Server to forward all the incoming mails to some different host (without having a copy in data stores).
In Sendmail, we can do this by specifying DS[ip_address] in sendmail.cf file.
(Often referred as smart host).
This is not what a smarthost is doing, unless you mean that you want to route the outgoing mail to some third party mailserver.
In this case maybe the following could help, as I've used JES till version 6.3, so if something hasn't changed dramatically after the acquisition by Oracle the instructions should be the same.

To configure a smarthost, you should edit imta.cnf (make a backup first), find the line with the tcp_local channel definition, after "channel definitions" (or something like that) and add a daemon keyword followed by the hostname or the IP of the smarthost at the end of it. The whole tcp_local channel should look something like that:
Code:

! tcp_local
tcp_local  smtp mx ... daemon smarthost.domain.com
tcp-daemon

You can enclose the smarthost hostname or IP in brackets if you don't want to do a dns lookup.
After that you need to recompile the new configuration and reload:
Code:

./imsimta cnbuild
./imsimta refresh

Regards

rohit_k 08-06-2012 07:02 AM

Thnx for the reply.
I tried adding "daemon sink.mydomain.com" in imta.cnf; it didn't help. All mails are getting stored in :
/opt/sun/comms/messaging64/data/store/partition/primary/

I also went thru official documentation. It says the same thing that you suggested. Probably something is wrong in my setup.
I didnt find anything useful in log files too: /opt/sun/comms/messaging64/log
Any idea which log files I should inspect?

bathory 08-06-2012 08:57 AM

Quote:

I tried adding "daemon sink.mydomain.com" in imta.cnf; it didn't help. All mails are getting stored in :
/opt/sun/comms/messaging64/data/store/partition/primary/
I've told you that the smarthost deals with the outgoing mail.
If you want to do this for the incoming mail, so that it's not going into the store but gets forwarded to another mailserver, I can only think that you have to create a new channel (e.g tcp_incoming) associated with a new rewrite rule, so that all incoming mail goes through that channel and finishes to your mailserver sink.mydomain.com


Quote:

I didnt find anything useful in log files too: /opt/sun/comms/messaging64/log
You need to enable logging that is not enabled by default. So find the line that starts with the "defaults" keyword and add "logging" right after it. It should look something like:
Code:

defaults logging notices ...
As always recompile the configuration and refresh imta

Regards


All times are GMT -5. The time now is 11:51 AM.