sending mail to uid@domain.com

Hi,

I migrated to sun messaging 6.2 in my company (I hide some informations that are confidential, so obviously mydomain is replaced by my real domain ;), don't take care of that)

./imsimta version

Sun Java(tm) System Messaging Server 6.2-3.04 (built Jul 15 2005)

libimta.so 6.2-3.04 (built 01:30:02, Jul 15 2005)

Linux mystore.mydomain.fr 2.4.21-4.ELsmp #1 SMP Fri Oct 3 17:52:56 EDT 2003 i686 i686 i386 GNU/Linux

Everything works fine, but I've got a little problem.

My uid is dchochoi1, the mail is david.chochoi1@mydomain.fr, I also defined a mailequivalentaddress and a mailalternateaddress, this is a test account.

So I can send mails to david.chochoi1@mydomain.fr but I would also like to be able to send a mail to dchochoi1@mydomain.fr, but at this time it says me unknow or illegal alias.

Obviously !

I checked the ldap log, the search is done only with mail, mailequivalentaddress and mailalternateaddress :

conn=190040 op=16 msgId=17 - SRCH base="ou=thepath,o=gouv,c=fr" scope=2 filter="(|(mail=dchochoi1@mydomain.fr)(mailAlternateAddress=dchochoi1@mydomain.fr)(mailEquivalentAddress=dchochoi1@mydomain.fr))" attrs="objectClass inetUserStatus mailUserStatus inetMailGroupStatus uid preferredLanguage mailRoutingAddress mailDeliveryOption mail mailAlternateAddress mailEquivalentAddress vacationStartDate vacationEndDate mailConversionTag mailMsgMaxBlocks mailHost mailQuota mailMsgQuota mailProgramDeliveryInfo mailDeliveryFileURL maildeliveryfile mailAutoReplyMode mailAutoReplySubject mailAutoReplyText mailAutoReplyTextInternal mailAutoReplyTimeout mailSieveRuleSource mailForwardingAddress mailDeferProcessing mgrpMsgRejectAction mgrprejecttext mgrpMsgRejectText mgrpBroadcasterPolicy mgrpDisallowedBroadcaster mgrpAllowedBroadcaster mgrpDisallowedDomain mgrpAllowedDomain mgrpMsgMaxsize mgrpAuthPassword mgrpModerator mgrpDeliverTo memberURL uniqueMember mgrpRFC822MailMember rfc822mailmember mgrpErrorsTo mgrpAddHeader mgrpRemoveHeader mgrpMsgPrefixText mgrpMsgSuffixText mgmanMemberVisibility expandable"

So dchochoi1@mydomain.fr will not work.

I don't want to add dchochoi1@mydomain.fr as a mailequivalentaddress or mailalternateaddress.

It was possible with the last version by selecting a checkbox that said something like "send mail to uid" under the "startconsole" program, but with this version, I can't find anything about that...

here is the ldap entry :

dn: uid=dchochoi1,ou=thepath,o=gouv,c=fr

mailHost: mystore.mydomain.fr

objectClass: top

objectClass: person

objectClass: organizationalPerson

objectClass: inetOrgPerson

objectClass: educationnationale

objectClass: inetUser

objectClass: ipUser

objectClass: inetSubscriber

objectClass: iplanet-am-managed-person

objectClass: iplanet-am-user-service

objectClass: inetmailuser

objectClass: inetlocalmailrecipient

objectClass: userpresenceprofile

mail: david.chochoi1@mydomain.fr

dataSource: Sun ONE Messaging Server 6.0 Admin Console

mailUserStatus: active

mailDeliveryOption: mailbox

mailAlternateAddress: da.chochoi1@mydomain.fr

mailEquivalentAddress: dav.chochoi1@mydomain.fr

iplanet-am-user-login-status: Active

inetUserStatus: Active

cn: Chochoi David

givenName: David

nompatro: Chochoi

sn: Chochoi

dermaj: 21/02/2007

gestion: uid=ADMIN-GENERAL,ou=thepath,o=gouv,c=fr

uid: dchochoi1

Thanks for your help.

[3650 byte] By [tchoyya] at [2007-11-26 20:44:18]
# 1

Hi,

> So I can send mails to david.chochoi1@mydomain.fr but

> I would also like to be able to send a mail to

> dchochoi1@mydomain.fr, but at this time it says me

> unknow or illegal alias.

You need to add dchochoi1@mydomain.fr as either a mailalternate or mailequivalent address if you want messaging server to accept and deliver email for this address.

> So dchochoi1@mydomain.fr will not work.

> I don't want to add dchochoi1@mydomain.fr as a

> mailequivalentaddress or mailalternateaddress.

Then it won't work. I can't see any logical reason not to add the address. On the other hand there are reasons to not want the address <uid>@domain to work for example, what if you don't want this address (to stop spam) or want to add it to another account (if a user leaves) etc.

> It was possible with the last version by selecting a

> checkbox that said something like "send mail to uid"

> under the "startconsole" program, but with this

> version, I can't find anything about that...

This behaviour may have worked in the Netscape 4.X days, and/or in the iMS5.2 dirsync days, but the behaviour hasn't existed since then.

Regards,

Shane.

shane_hjortha at 2007-7-10 2:05:01 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 2

I found !

It is possible actually !

After several days looking for that, It works fine !

I was looking in the docs.sun.com about options.dat, a document (http://docs.sun.com/source/817-6266/dirldap.html) explains what means exactly $V and $R in ALIAS_URL0=ldap:///$V?*?sub?$R.

"The $R metacharacter provides an appropriate filter for the URL"

It is based to the ims50 schema tag which contains : mail mailalternateaddress and mailequivalentaddress

So, I added a new alias_url :

ALIAS_URL1=ldap:///$V?*?sub?uid=$U

I checked my ldap access log :

When I write to david.chochoi1@domain.fr (full email address), only ALIAS_URL0 is executed, ALIAS_URL1 is ignored

When I write to dchochoi1@domain.fr (uid@domain.fr), ALIAS_URL0 is executed but returns nothing, then ALIAS_URL1 is executed and returns the good result.

tchoyya at 2007-7-10 2:05:01 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...