You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by mike tazelaar <ta...@yahoo.com> on 2011/07/08 16:20:51 UTC
DSNBounce - no error message response
I am trying to get a DSNBounce response. However, even though the dnsserver,
mailet and spoolmanager indicate that JAMES is processing the mail, there is no
error response from DSNBounce. I have included my config.xml settings as well
as my properties settings for the Transport.send. What code changes do I need
to make to get the DSNBounce to respond with an error message?
08/07/11 07:57:38 INFO dnsserver: Couldn't resolve MX records for
domain addressbad.gov.
08/07/11 07:57:38 INFO dnsserver: Couldn't find CNAME records for domain
addressbad.gov.
08/07/11 07:57:38 ERROR dnsserver: Couldn't resolve IP address for host
addressbad.gov.
08/07/11 07:57:38 INFO James.Mailet: RemoteDelivery: No mail server found for:
addressbad.gov
08/07/11 07:57:38 INFO James.Mailet: RemoteDelivery: Temporary exception
delivering mail (Mail1310133457874-0-to-addressbad.gov:
08/07/11 07:57:38 INFO James.Mailet: RemoteDelivery: Storing message
Mail1310133457874-0-to-addressbad.gov into outgoing after 0 retries
08/07/11 07:57:01 INFO spoolmanager: Mailet DSNBounce instantiated.
<!-- DSNBounce properly create a DSN compliant bounce -->
<processor name="bounces">
<mailet match="All" class="DSNBounce">
<passThrough>true</passThrough>
<debug>true</debug>
<!-- optional subject prefix prepended to the original message -->
<!--
<prefix>[bounce]</prefix>
-->
<!-- message, heads or none, default=message -->
<attachment>heads</attachment>
<!-- the message sent in the bounce, the first occurrence of the
pattern [machine] is -->
<!-- replaced with the name of the executing machine -->
<!-- Default: Hi. This is the James mail server at [machine] ... -->
<messageString>Here is [machine]. I'm not able to deliver this
message.</messageString>
</mailet>
</processor>
properties.put("mail.smtp.dsn.notify","SUCCESS,FAILURE
ORCPT=rfc822;Postmaster@localhost");
properties.put("mail.smtp.dsn.ret", "HDRS");
Session session = Session.getDefaultInstance(properties);
Re: DSNBounce - no error message response
Posted by Norman Maurer <no...@googlemail.com>.
Its temporary error so it will not send a bounce until the max retry
count is reached. Only on a permanent error it will send an bounce
directly.
bye
norman
Am Freitag, 8. Juli 2011 schrieb mike tazelaar <ta...@yahoo.com>:
> I am trying to get a DSNBounce response. However, even though the dnsserver,
> mailet and spoolmanager indicate that JAMES is processing the mail, there is no
> error response from DSNBounce. I have included my config.xml settings as well
> as my properties settings for the Transport.send. What code changes do I need
> to make to get the DSNBounce to respond with an error message?
>
>
> 08/07/11 07:57:38 INFO dnsserver: Couldn't resolve MX records for
> domain addressbad.gov.
> 08/07/11 07:57:38 INFO dnsserver: Couldn't find CNAME records for domain
> addressbad.gov.
> 08/07/11 07:57:38 ERROR dnsserver: Couldn't resolve IP address for host
> addressbad.gov.
>
> 08/07/11 07:57:38 INFO James.Mailet: RemoteDelivery: No mail server found for:
> addressbad.gov
> 08/07/11 07:57:38 INFO James.Mailet: RemoteDelivery: Temporary exception
> delivering mail (Mail1310133457874-0-to-addressbad.gov:
> 08/07/11 07:57:38 INFO James.Mailet: RemoteDelivery: Storing message
> Mail1310133457874-0-to-addressbad.gov into outgoing after 0 retries
>
> 08/07/11 07:57:01 INFO spoolmanager: Mailet DSNBounce instantiated.
>
> <!-- DSNBounce properly create a DSN compliant bounce -->
> <processor name="bounces">
> <mailet match="All" class="DSNBounce">
> <passThrough>true</passThrough>
> <debug>true</debug>
> <!-- optional subject prefix prepended to the original message -->
> <!--
> <prefix>[bounce]</prefix>
> -->
>
> <!-- message, heads or none, default=message -->
>
> <attachment>heads</attachment>
>
>
> <!-- the message sent in the bounce, the first occurrence of the
> pattern [machine] is -->
> <!-- replaced with the name of the executing machine -->
> <!-- Default: Hi. This is the James mail server at [machine] ... -->
>
> <messageString>Here is [machine]. I'm not able to deliver this
> message.</messageString>
>
> </mailet>
> </processor>
>
> properties.put("mail.smtp.dsn.notify","SUCCESS,FAILURE
> ORCPT=rfc822;Postmaster@localhost");
> properties.put("mail.smtp.dsn.ret", "HDRS");
> Session session = Session.getDefaultInstance(properties);
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org