Hi Jan,
I just tested with trunk version and mails are correctly remotely sent.
In my case, I had to add the <gateway> tag because my ISP block SMTP to
anything else than it's own SMTP relay.
You say you are using M3-SNAPSHOT. We recently changed the packaging
which is now done via a 'app' project but have no snapshots atm for
that. Maybe there was a regression in the M3-SNAPSHOT?
We will keep you updated when we have new snapshots. In the meantime,
you can try to build from source if you like.
Thx.
On 23/07/11 20:30, Jan Moxter wrote:
On Jul 23, 2011, at 3:48 AM, Eric Charles wrote:
On 22/07/11 18:46, Jan Moxter wrote:
The problem is that we have a split configuration for the mails. That
means some are handles on this server others on another server. So i
want to configure this server to always deliver remotely.
(Further on i was thinking to use are regex match to decide if local
delivery o remote delivery must be used)
So for now, you want James to act as a transparent SMTP proxy.
The configuration you gave should do the job.
Do you see anything in the log (you can set log level to DEBUG in
log4j.properties.) ?
Are there files under var/mail/* folders?
Thx.
This is the log.
NFO 18:23:55,791 | james.smtpserver | ID=22356883 Connection established
from *******l (*************)
DEBUG 18:23:55,795 | james.smtpserver | ID=22356883
org.apache.james.smtpserver.JamesWelcomeMessageHandler disconnect=false
DEBUG 18:23:56,026 | james.smtpserver | ID=22356883
org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler
received: EHLO [*************]
DEBUG 18:23:56,026 | james.smtpserver | ID=22356883 Lookup command
handler for command: EHLO
DEBUG 18:23:56,027 | james.smtpserver | ID=22356883
org.apache.james.protocols.smtp.core.esmtp.EhloCmdHandler: 250
[mail.moxter.net Hello [*************] (========== [*************]),
PIPELINING, ENHANCEDSTATUSCODES, 8BITMIME]
DEBUG 18:23:56,028 | james.smtpserver | ID=22356883
org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler
disconnect=false
DEBUG 18:23:56,238 | james.smtpserver | ID=22356883
org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler
received: MAIL FROM:<[email protected]>
DEBUG 18:23:56,238 | james.smtpserver | ID=22356883 Lookup command
handler for command: MAIL
DEBUG 18:23:56,240 | james.smtpserver | ID=22356883
org.apache.james.smtpserver.JamesMailCmdHandler: 250 [2.1.0 Sender
<[email protected]> OK]
DEBUG 18:23:56,241 | james.smtpserver | ID=22356883
org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler
disconnect=false
DEBUG 18:23:56,440 | james.smtpserver | ID=22356883
org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler
received: RCPT TO:<[email protected]>
DEBUG 18:23:56,440 | james.smtpserver | ID=22356883 Lookup command
handler for command: RCPT
DEBUG 18:23:56,441 | james.smtpserver | ID=22356883 executing hook
org.apache.james.smtpserver.fastfail.ValidRcptHandler
DEBUG 18:23:56,467 | james.smtpserver | ID=22356883 Unknown user
[email protected] check if its an alias
INFO 18:23:56,491 | james.smtpserver | ID=22356883 Rejected message.
Unknown user: [email protected]
DEBUG 18:23:56,492 | james.smtpserver | ID=22356883 executing hook
org.apache.james.protocols.smtp.core.log.HookResultLogger@1e1542f
INFO 18:23:56,492 | james.smtpserver | ID=22356883
org.apache.james.smtpserver.fastfail.ValidRcptHandler: result=2 (DENY)
DEBUG 18:23:56,492 | james.smtpserver | ID=22356883 executing hook
org.apache.james.smtpserver.jmx.HookResultJMXMonitor@5dfc79
INFO 18:23:56,492 | james.smtpserver | ID=22356883
org.apache.james.smtpserver.JamesRcptCmdHandler: 550 [5.1.1 Unknown
user: [email protected]]
DEBUG 18:23:56,493 | james.smtpserver | ID=22356883
org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler
disconnect=false
DEBUG 18:23:56,704 | james.smtpserver | ID=22356883
org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler
received: QUIT
DEBUG 18:23:56,707 | james.smtpserver | ID=22356883 Lookup command
handler for command: QUIT
DEBUG 18:23:56,707 | james.smtpserver | ID=22356883
org.apache.james.protocols.smtp.core.QuitCmdHandler: 221 [2.0.0
mail.moxter.net Service closing transmission channel]
DEBUG 18:23:56,707 | james.smtpserver | ID=22356883
org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler
disconnect=false
INFO 18:23:56,707 | james.smtpserver | ID=22356883 Connection closed for
========= (*************)
With the configuration as shown (ransparenet proxy) i would expect that
it sends the mail.
There are no files in var/mail/
This configuration did work on M2 and fails on the M3-SNAPSHOT.
Thanks
Jan
So the only thing id did on the M2 was to comment this parts from the
mailetcontainer and it delivered remotely, but doing this on the M3 did
not work.
<processor state="transport" enableJmx="true">
<mailet match="SMTPAuthSuccessful" class="SetMimeHeader">
<name>X-UserIsAuth</name>
<value>true</value>
</mailet>
<!--
<mailet match="All" class="RecipientRewriteTable">
<recipientrewritetable>DefaultRecipientRewriteTable</recipientrewritetable>
</mailet>
<mailet match="RecipientIsLocal" class="RecipientToLowerCase"/>
<mailet match="RecipientIsLocal" class="LocalDelivery"/>
<mailet match="HostIsLocal" class="ToProcessor">
<processor>local-address-error</processor>
<notice>550 - Requested action not taken: no such user here</notice>
</mailet>
-->
<mailet match="All" class="RemoteDelivery">
<outgoingQueue>outgoing</outgoingQueue>
<delayTime>5 minutes</delayTime>
<delayTime>10 minutes</delayTime>
<delayTime>45 minutes</delayTime>
<delayTime>2 hours</delayTime>
<delayTime>3 hours</delayTime>
<delayTime>6 hours</delayTime>
<maxRetries>25</maxRetries>
<maxDnsProblemRetries>0</maxDnsProblemRetries>
<deliveryThreads>10</deliveryThreads>
<sendpartial>true</sendpartial>
<bounceProcessor>bounces</bounceProcessor>
</mailet>
</processor>
Thanks
Jan
Thanks a lot
Jan
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
--
Eric Charles
http://about.echarles.net
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
--
Eric Charles
http://about.echarles.net
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
--
Eric Charles
http://about.echarles.net
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]