How does the LDAP mail attribute mailSMTPSubmitChannel work?

I'm using iMS 5.2 along with the iDS 5.1 on direct LDAP mode.

I've tried to use the <i>mailSMTPSubmitChannel</i> attribute I read about in the iMS SchemaReferenceGuide.

I've created a simple outbound channel in <i>imta.cnf</i> and assigned above attribute to one of my mail users.

As stated in the Guide, all mails should now be sent through this new channel - but in fact nothing changed, now I wonder if there has something else to be configured first?

So has anyone tried this before? Any hint would be helpful.

Thanks in advance!

[604 byte] By [708342] at [2007-11-25 7:12:46]
# 1
I had same problem.
peribit at 2007-6-29 17:46:39 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 2
the manual says that ll mails should now be sent through this new channel if the SMTP AUTH is successful.are you using authentication?
peter_fabian at 2007-6-29 17:46:39 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 3

How are you trying to use this? The schema guide states

mailSMTPSubmitChannel

Origin

iPlanet Messaging Server 5.0

Syntax

cis, single-valued

Object Classes

inetMailUser

Definition

Most commonly, this attribute is a factor involved in setting up guaranteed message delivery, or in setting up other special classes of service. When defined, this attribute tells the MTA to consider the channel named by this attribute to be the effective submission channel, if the SMTP AUTH is successful.

Example

mailSMTPSubmitChannel=tcp_tas

So, posting your ldap entry for a test user, and looking at a test -rewrite -debug should help us see what's happening.

jay_plesset at 2007-6-29 17:46:39 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 4

The message still send to tcp_local channel.

I tested by "imsimta qm test -rewrite -debug -from testuser@xyz.com" and below is resule.

===========================================================

imta.cnf

!

! tcp_vip

!tcp_vip smtp mx single_sys remotehost inner switchchannel identnonenumeric \

subdirs 20 maxjobs 7 pool SMTP_POOL maytlsserver maysaslserver saslswitchchannel \

tcp_auth blocklimit 20000 sourceblocklimit 100000 logging daemon mail.gookgoo.com

tcp-vip-daemon

===========================================================

uid=testuser,ou=People,o=xyz.com,o=gookgoo

iplanet-am-modifiable-by=cn=Top-level Admin Role,o=gookgoo

givenName=Testuser

loginname=testuser@xyz.com

inetUserStatus=Active

personalTitle=Mr.

mail=testuser@xyz.com

sn=Testuser

cn=Testuser Testuser

uid=testuser

userPassword=testuser

objectClass=userpresenceprofile

objectClass=iplanet-am-user-service

objectClass=iplanet-am-managed-person

objectClass=top

objectClass=icscalendaruser

objectClass=organizationalperson

objectClass=inetadmin

objectClass=person

objectClass=inetuser

objectClass=inetlocalmailrecipient

objectClass=gookgoo

objectClass=iplanetpreferences

objectClass=ipuser

objectClass=inetorgperson

objectClass=inetsubscriber

objectClass=inetmailuser

connectinternet=active

mailUserStatus=active

mailDeliveryOption=mailbox

mailHost=mail.gookgoo.com

preferredLanguage=en

mailSMTPSubmitChannel=tcp_vip

===========================================================

# imsimta test -rewrite -debug -from testuser@xyz.com

Initializing mm_.

Initializing mm_ submission.

Checking identifiers.

Address: test@oracle.com

*** Debug output from initializing MM for submission:

14:44:10.73: mmc_winit('l','testuser@xyz.com','0HWR00K02PHM0300@mail.gookgoo.com') called.

14:44:10.73: Queue area size 42203238, temp area size 1885604

14:44:10.73:10550809 blocks of effective free queue space available; setting disk limit accordingly.

14:44:10.73:942802 blocks of free temporary space available; setting disk limit accordingly.

14:44:10.73:from_access mapping check: ||MAIL|l|testuser@xyz.com|

14:44:10.73:- passed.

14:44:10.73: Rewriting: Mbox = "testuser", host = "xyz.com", domain = "$*", literal = "", tag = ""

14:44:10.73: Rewrite: "$*", position 0, hash table -

14:44:10.73:Found: "$A$E$F$U%$H$V$H@mail.gookgoo.com"

14:44:10.73:Rewrite failed, not forward.

14:44:10.73: Rewrite: "$*", position 1, hash table -

14:44:10.73:Failed.

14:44:10.73: Rewrite: "$*", position 0, rewrite database -

14:44:10.73:Failed

14:44:10.73: Rewriting: Mbox = "testuser", host = "xyz", domain = "xyz.com", literal = "", tag = ""

14:44:10.73: Rewrite: "xyz.com", position 0, hash table -

14:44:10.73:Failed.

14:44:10.73: Rewrite: "xyz.com", position 0, rewrite database -

14:44:10.73:Failed

14:44:10.73: Rewriting: Mbox = "testuser", host = "xyz", domain = ".com", literal = "", tag = ""

14:44:10.73: Rewrite: "*.com", position 0, hash table -

14:44:10.73:Failed

14:44:10.73: Rewrite: ".com", position 0, hash table -

14:44:10.73:Found: "$U%$H$D@TCP-DAEMON"

14:44:10.73:New mailbox: "testuser".

14:44:10.73:New host: "xyz.com".

14:44:10.73:New route: "TCP-DAEMON".

14:44:10.73:New channel system: "TCP-DAEMON".

14:44:10.73: Looking up host "TCP-DAEMON".

14:44:10.73:- found on channel tcp_local

14:44:10.74: Rewriting: Mbox = "testuser", host = "xyz.com", domain = "$*", literal = "", tag = ""

14:44:10.74: Rewrite: "$*", position 0, hash table -

14:44:10.74:Found: "$A$E$F$U%$H$V$H@mail.gookgoo.com"

14:44:10.74:Rewrite failed, not forward.

14:44:10.74: Rewrite: "$*", position 1, hash table -

14:44:10.74:Failed.

14:44:10.74: Rewrite: "$*", position 0, rewrite database -

14:44:10.74:Failed

14:44:10.74: Rewriting: Mbox = "testuser", host = "xyz", domain = "xyz.com", literal = "", tag = ""

14:44:10.74: Rewrite: "xyz.com", position 0, hash table -

14:44:10.74:Failed.

14:44:10.74: Rewrite: "xyz.com", position 0, rewrite database -

14:44:10.74:Failed

14:44:10.74: Rewriting: Mbox = "testuser", host = "xyz", domain = ".com", literal = "", tag = ""

14:44:10.74: Rewrite: "*.com", position 0, hash table -

14:44:10.74:Failed

14:44:10.74: Rewrite: ".com", position 0, hash table -

14:44:10.74:Found: "$U%$H$D@TCP-DAEMON"

14:44:10.74:New mailbox: "testuser".

14:44:10.74:New host: "xyz.com".

14:44:10.74:New route: "TCP-DAEMON".

14:44:10.74:New channel system: "TCP-DAEMON".

14:44:10.74: Looking up host "TCP-DAEMON".

14:44:10.74:- found on channel tcp_local

14:44:10.74:Checking reverse URL cache for: testuser@xyz.com

14:44:10.74:Applying reverse URL pattern ldap:///$V?$N?sub?$R to: testuser@xyz.com

14:44:10.75:Resulting URL: ldap:///o%3Dxyz.com%2Co%3Dgookgoo?preferredlanguage,mail,mailequivalentaddress? sub?(|(mail=testuser@xyz.com)(mailAlternateAddress=testuser@xyz.com)(mailEquival entAddress=testuser@xyz.com))

14:44:10.75: mmc_open_url called to open ldap:///o%3Dxyz.com%2Co%3Dgookgoo?preferredlanguage,mail,mailequivalentaddress? sub?(|(mail=testuser@xyz.com)(mailAlternateAddress=testuser@xyz.com)(mailEquival entAddress=testuser@xyz.com)), flags = 384

14:44:10.75:URL with quotes stripped: ldap:///o%3Dxyz.com%2Co%3Dgookgoo?preferredlanguage,mail,mailequivalentaddress? sub?(|(mail=testuser@xyz.com)(mailAlternateAddress=testuser@xyz.com)(mailEquival entAddress=testuser@xyz.com))

14:44:10.75:LDAP URL identified

14:44:10.75: URL context #1 will be used

14:44:10.75:Performing URL search on: ldap:///o%3Dxyz.com%2Co%3Dgookgoo?preferredlanguage,mail,mailequivalentaddress? sub?(|(mail=testuser@xyz.com)(mailAlternateAddress=testuser@xyz.com)(mailEquival entAddress=testuser@xyz.com))

14:44:10.76: mmc_read_url result: [uid=testuser,ou=People,o=xyz.com,o=gookgoo]

14:44:10.76:URL resolution returned: [uid=testuser,ou=People,o=xyz.com,o=gookgoo]

14:44:10.76: mmc_read_url result: [preferredlanguage] en

14:44:10.76:URL resolution returned: [preferredlanguage] en

14:44:10.76:Attribute index: 10

14:44:10.76: mmc_read_url result: [mail] testuser@xyz.com

14:44:10.76:URL resolution returned: [mail] testuser@xyz.com

14:44:10.76:Attribute index: 12

14:44:10.76:LDAP URL produced address testuser@xyz.com

14:44:10.76:No more result to return

14:44:10.76:Override postmaster: postmaster@xyz.com

14:44:10.76:Mapped return address: testuser@xyz.com

***

*** Debug output from rewriting a forward header address:

14:44:10.76: Rewriting: Mbox = "test", host = "oracle.com", domain = "$*", literal = "", tag = ""

14:44:10.76: Rewrite: "$*", position 0, hash table -

14:44:10.76:Found: "$A$E$F$U%$H$V$H@mail.gookgoo.com"

14:44:10.76:Rewrite failed, not envelope.

14:44:10.76: Rewrite: "$*", position 1, hash table -

14:44:10.76:Failed.

14:44:10.76: Rewrite: "$*", position 0, rewrite database -

14:44:10.76:Failed

14:44:10.76: Rewriting: Mbox = "test", host = "oracle", domain = "oracle.com", literal = "", tag = ""

14:44:10.76: Rewrite: "oracle.com", position 0, hash table -

14:44:10.76:Failed.

14:44:10.76: Rewrite: "oracle.com", position 0, rewrite database -

14:44:10.76:Failed

14:44:10.76: Rewriting: Mbox = "test", host = "oracle", domain = ".com", literal = "", tag = ""

14:44:10.76: Rewrite: "*.com", position 0, hash table -

14:44:10.76:Failed

14:44:10.76: Rewrite: ".com", position 0, hash table -

14:44:10.76:Found: "$U%$H$D@TCP-DAEMON"

14:44:10.76:New mailbox: "test".

14:44:10.76:New host: "oracle.com".

14:44:10.76:New route: "TCP-DAEMON".

14:44:10.76:New channel system: "TCP-DAEMON".

14:44:10.76: Looking up host "TCP-DAEMON".

14:44:10.76:- found on channel tcp_local

14:44:10.76:Rewrite rules result: test@oracle.com

14:44:10.76:Checking reverse URL cache for: test@oracle.com

14:44:10.76:Applying reverse URL pattern ldap:///$V?$N?sub?$R to: test@oracle.com

14:44:10.77:URL generation failed, status = 0

14:44:10.77:Applying reverse mapping to: test@oracle.com

14:44:10.77:No match.

***

forward channel= tcp_local

channel description=

channel user filter=

dest channel filter=

source channel filter =

channel flags #0= BIDIRECTIONAL SINGLE_SYSTEM IMMNONURGENT NOSERVICEALL

channel flags #1= SMTP_CRLF MX IDENTNONENUMERIC DEFAULT

channel flags #2= COPYSENDPOST COPYWARNPOST POSTHEADONLY HEADERINC NOEXPROUTE

channel flags #3= LOGGING NOGREY NORESTRICTED RETAINSECURITYMULTIPARTS

channel flags #4= EIGHTNEGOTIATE NOHEADERTRIM NOHEADERREAD RULES

channel flags #5=

channel flags #6= LOCALUSER REPORTHEADER

channel flags #7= SWITCHCHANNEL REMOTEHOST DATEFOUR DAYOFWEEK

channel flags #8= NODEFRAGMENT EXQUOTA REVERSE NOCONVERT_OCTET_STREAM

channel flags #9= NOTHURMAN INTERPRETENCODING USEINTERMEDIATE RECEIVEDFROM VALIDATELOCALNONE NOTURN

defaulthost= gookgoo.com gookgoo.com

linelength = 998

addrsperfile= 99

channel env addr type = SOURCEROUTE

channel hdr addr type = SOURCEROUTE

channel official host = tcp-daemon

channel queue 0 name= SMTP_POOL

channel queue 1 name= SMTP_POOL

channel queue 2 name= SMTP_POOL

channel queue 3 name= SMTP_POOL

channel after params=

channel daemon name= mail.yit.co.th

channel user name=

urgentnotices = 1 3 5

normalnotices = 1 3 5

nonurgentnotices= 1 3 5

channel rightslist ids =

nonurgentbackoff= PT1M PT5M PT10M PT30M

normalbackoff = PT1M PT5M PT10M PT30M

urgentbackoff = PT1M PT5M PT10M PT30M

local behavior flags= %x0

backward channel= tcp_local

header To: address= test@oracle.com

header From: address= test@oracle.com

envelope To: address= test@oracle.com (route (TCP-DAEMON,TCP-DAEMON)) (host oracle.com)

envelope From: address = test@oracle.com

name=

mbox= test

Extracted address action list:

test@oracle.com

Extracted 733 address action list:

test@oracle.com

Address list expansion:

-13 expansion total.

*** Debug output from submitting an envelope address:

14:44:10.77: mmc_wadr(0x00118048,'test@oracle.com','test@oracle.com') called.

14:44:10.77: Copy estimate before address addition is 1

14:44:10.77:Parsing address test@oracle.com

14:44:10.77: Rewriting: Mbox = "test", host = "oracle.com", domain = "$*", literal = "", tag = ""

14:44:10.77: Rewrite: "$*", position 0, hash table -

14:44:10.77:Found: "$A$E$F$U%$H$V$H@mail.gookgoo.com"

14:44:10.77:Match, pattern = "oracle.com", current = "(*domaincheck*)"

14:44:10.77:old state = not checked.

14:44:10.77:Domain check on oracle.com.

14:44:10.77:new state = fail pending.

14:44:10.77:Rewrite failed due to prechannel mismatch.

14:44:10.77: Rewrite: "$*", position 1, hash table -

14:44:10.77:Failed.

14:44:10.77: Rewrite: "$*", position 0, rewrite database -

14:44:10.77:Failed

14:44:10.77: Rewriting: Mbox = "test", host = "oracle", domain = "oracle.com", literal = "", tag = ""

14:44:10.77: Rewrite: "oracle.com", position 0, hash table -

14:44:10.77:Failed.

14:44:10.77: Rewrite: "oracle.com", position 0, rewrite database -

14:44:10.77:Failed

14:44:10.77: Rewriting: Mbox = "test", host = "oracle", domain = ".com", literal = "", tag = ""

14:44:10.77: Rewrite: "*.com", position 0, hash table -

14:44:10.77:Failed

14:44:10.77: Rewrite: ".com", position 0, hash table -

14:44:10.77:Found: "$U%$H$D@TCP-DAEMON"

14:44:10.77:New mailbox: "test".

14:44:10.77:New host: "oracle.com".

14:44:10.77:New route: "TCP-DAEMON".

14:44:10.77:New channel system: "TCP-DAEMON".

14:44:10.77: Looking up host "TCP-DAEMON".

14:44:10.77:- found on channel tcp_local

14:44:10.77:- adding address test@oracle.com to headers.

14:44:10.77:Applying forward mapping to: test@oracle.com

14:44:10.77:- orig_send_access mapping check: l|testuser@xyz.com|tcp_local|test@oracle.com

14:44:10.77: - passed.

14:44:10.77:- send_access mapping check: l|testuser@xyz.com|tcp_local|test@oracle.com

14:44:10.77: - passed.

14:44:10.77:- orig_mail_access mapping check: ||MAIL|l|testuser@xyz.com|tcp_local|test@oracle.com

14:44:10.77: - passed.

14:44:10.77:- mail_access mapping check: ||MAIL|l|testuser@xyz.com|tcp_local|test@oracle.com

14:44:10.77: - passed.

14:44:10.77:- adding address test@oracle.com to channel tcp_local

14:44:10.77: Copy estimate after address addition is 2

***

Expanded address:

test@oracle.com

Submitted address list:

tcp_local

test@oracle.com (orig test@oracle.com, host oracle.com) *NOTIFY-FAILURES* *NOTIFY-DELAYS*

Submitted notifications list:

Address:

Jong_Chai at 2007-6-29 17:46:39 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 5

I think you may have misunderstood what this is for. You're sending out FROM your account, to an external user, right?

Mapping puts such messages into tcp_local. mailSMTPSubmitChannel won't change that. It's the channel that such mails come into the server as that changes.

What effect is it that you're really trying to create? I suspect you're trying to use the wrong tool for this job, that mailSMTPSubmitchannel isn't what you truly want to use.

Please help me to help you. Exactly what problem is it you're attempting to solve?

jay_plesset at 2007-6-29 17:46:39 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 6

I want to create a new channel for some user can send a message size large than another user by give them the LDAP attribute and value.

mailsmtpsubmitchannel: tcp_vip

imta.cnf

!

! tcp_vip

!tcp_vip smtp mx single_sys remotehost inner switchchannel identnonenumeric \

subdirs 20 maxjobs 7 pool SMTP_POOL maytlsserver maysaslserver saslswitchchannel \

tcp_auth blocklimit 20000 sourceblocklimit 100000 logging

tcp-vip-daemon

Jong_Chai at 2007-6-29 17:46:39 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 7

!

! tcp_vip

!tcp_vip smtp mx single_sys remotehost inner switchchannel identnonenumeric \

subdirs 20 maxjobs 7 pool SMTP_POOL maytlsserver maysaslserver saslswitchchannel \

tcp_auth blocklimit 20000 sourceblocklimit 100000 logging

tcp-vip-daemon

This isn't a valid channel. I doubt that it will compile.

You have it commented-out . . .

jay_plesset at 2007-6-29 17:46:39 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...