Next Page

1

Previous Page

Thread: Message-ID Javamail | coldfusion

Created on: 12/06/06 04:30 PM

Replies: 8

frankgerritse


Member


Joined: 11/16/05

Posts: 12

Message-ID Javamail | coldfusion
12/06/06 4:30 PM

hi

Some of our e-mails send with coldfusion will be detected as spam. I found out after some google searching this is partly caused by the MessageID! And no one seems to have an solution ?

This message ID's look like:
Message-ID: <14005657.1165439760994.JavaMail.Administrator@iis>

Now the only way to reduce this detection dramatically - is to correct the wrong server name behind the "@" sign. This must be a FQDN or a IP by RFC! Maybe JavaMail only gets the local hostname and nothing more. I don't know how it is working - but this is for sure - *not* the complete name if i do a reverse DNS lookup... the reverse DNS gives me the FQDN of the machine!

So I must change the FQDN or the whole message-ID... I tried the <cfmailparam name="Message-ID" value="#createUUID()#@matchingpool.nl"> function but it does not change the message id . Is there any config option for this?

The box is a Windows 2003 Standard R2 Application Server ColdFusion MX 7.01 .
Exchamge 2003 SP2

Thank you for your help.

gr Frank Gerritse

Link | Top | Bottom

admin


Experienced Member


Joined: 04/08/04

Posts: 2,952

RE: Message-ID Javamail | coldfusion
12/06/06 5:12 PM

Does this help?

http://kay.smoljak.com/archives/?Stop-cfmail-messages-being-flagged-as-spam

Link | Top | Bottom

frankgerritse


Member


Joined: 11/16/05

Posts: 12

RE: Message-ID Javamail | coldfusion
12/07/06 8:04 AM

No the problem is dat the <cfmailparam name="Message-ID" value="#createUUID()#@matchingpool.nl"> does not change anything ?
Is this tag supported in cf 7 ?

Link | Top | Bottom

admin


Experienced Member


Joined: 04/08/04

Posts: 2,952

RE: Message-ID Javamail | coldfusion
12/07/06 9:40 AM

Yep - it is. Not sure what to say then. Sorry!

Link | Top | Bottom

kasmit4


New Member


Joined: 02/13/07

Posts: 3

RE: Message-ID Javamail | coldfusion
02/13/07 3:21 PM

In cfmx7 you can set the java property mail.host to your FQDN. CFMail will use it as your host and your message-IDs will show the fqdn.

Add the java argument -Dmail.host=machine.domain.com
ie. -Dmail.host=smtp.adobe.com
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?threadid=1152039&catid=7

Link | Top | Bottom

kasmit4


New Member


Joined: 02/13/07

Posts: 3

RE: Message-ID Javamail | coldfusion
02/14/07 9:33 AM

It also appears to work if you set the system property on the template before calling CFMail:
<cfscript>
sysObj = CreateObject("java", "java.lang.System");
sysObj.setProperty("mail.host", "kensmith.adobe.com");
</cfscript>

<CFMail ...

Link | Top | Bottom

frankgerritse


Member


Joined: 11/16/05

Posts: 12

RE: Message-ID Javamail | coldfusion
02/14/07 4:01 PM

THNX it works great.

Link | Top | Bottom

kasmit4


New Member


Joined: 02/13/07

Posts: 3

RE: Message-ID Javamail | coldfusion
02/18/07 10:50 AM

Use caution when setting the System property. As the name implies you are changing for the whole system or server instance. So, if you want to set once, great. If you plan to change it for different apps or users, you should put the code setting the mail.host and the cfmail using that host inside named locks. That way the host will not get changed in the middle of processing.

Ken Smith
Adobe Systems

Link | Top | Bottom

carehart


Member


Joined: 10/08/05

Posts: 14

RE: Message-ID Javamail | coldfusion
12/07/07 10:09 AM

Just to add to this discussion, I've found that in CF8, the message ID is now populated with the name of the mail server set in CF (whether in the Admin or in the CFMAIL Server attribute). Hope that helps someone.

Link | Top | Bottom

Next Page

1

Previous Page

New Post

Please login to post a response.