LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 08-03-2012, 10:12 AM   #1
rohit_k
LQ Newbie
 
Registered: Oct 2007
Location: Pune
Distribution: RHEL, SOLARIS, SUSE
Posts: 20

Rep: Reputation: 1
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 iport.
Pls help.
 
Old 08-04-2012, 04:36 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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
 
1 members found this post helpful.
Old 08-06-2012, 07:02 AM   #3
rohit_k
LQ Newbie
 
Registered: Oct 2007
Location: Pune
Distribution: RHEL, SOLARIS, SUSE
Posts: 20

Original Poster
Rep: Reputation: 1
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?
 
Old 08-06-2012, 08:57 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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

Last edited by bathory; 08-06-2012 at 09:08 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sun Java System Application server in a zone crisostomo_enrico Solaris / OpenSolaris 4 11-13-2007 10:40 AM
Is your Sun Java System application server starting up? crisostomo_enrico Solaris / OpenSolaris 3 09-29-2007 06:27 AM
how to configure sendmail as smart host cksoo Linux - Enterprise 2 01-16-2006 01:43 PM
Sun Directory Server / Messaging Server subaruwrx Linux - Software 14 09-08-2004 05:48 AM
Setup a VPN server on a Sun Java desktop system. hollor Linux - Newbie 1 06-14-2004 09:26 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 06:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration