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 Jan Moxter <ja...@moxter.net> on 2011/07/20 18:55:30 UTC

3.0-M3-SNAPSHOT Configuration

Hallo,

i am using a 3.0-M3-SNAPSHOT  and i realized that some of the  
configurations are ignored.

- In special i am interested to know how to configure now the hello- 
name of the smtp server. (Some other smtp servers do not accept us due  
to the hello name). We do have to overwrite the name the DNS servers  
return

- further on  it seems like the mailetcontainer.xml configuration is  
ignored. Even when we change the transport processor it does not have  
any influence. Might it be that camel needs some other configuration.

Thanks a lot


Jan

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: 3.0-M3-SNAPSHOT Configuration

Posted by Eric Charles <er...@apache.org>.
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:<te...@moxter.net>
> 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
> <te...@moxter.net> 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:<te...@moxter.net>
> 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
> test3@moxter.net check if its an alias
> INFO 18:23:56,491 | james.smtpserver | ID=22356883 Rejected message.
> Unknown user: test3@moxter.net
> 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: test3@moxter.net]
> 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: server-user-unsubscribe@james.apache.org
>>>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>>>
>>>>
>>>>
>>>> --
>>>> Eric Charles
>>>> http://about.echarles.net
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>
>>
>>
>> --
>> Eric Charles
>> http://about.echarles.net
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>> For additional commands, e-mail: server-user-help@james.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>


-- 
Eric Charles
http://about.echarles.net

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: 3.0-M3-SNAPSHOT Configuration

Posted by Norman Maurer <no...@googlemail.com>.
Hi there,

you need to add the ip address which you are sending from to the
authorizedNetworks block in the smtpserver.xml or use SMTP AUTH. With
this you are allowed to send to "remote" users...

Bye,
Norman


2011/7/23 Jan Moxter <ja...@moxter.net>:
>
> 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:<te...@moxter.net>
> 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
> <te...@moxter.net> 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:<te...@moxter.net>
> 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
> test3@moxter.net check if its an alias
> INFO  18:23:56,491 | james.smtpserver | ID=22356883 Rejected message.
> Unknown user: test3@moxter.net
> 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:
> test3@moxter.net]
> 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: server-user-unsubscribe@james.apache.org
>>>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>>>
>>>>
>>>>
>>>> --
>>>> Eric Charles
>>>> http://about.echarles.net
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>
>>
>>
>> --
>> Eric Charles
>> http://about.echarles.net
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>> For additional commands, e-mail: server-user-help@james.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: 3.0-M3-SNAPSHOT Configuration

Posted by Jan Moxter <ja...@moxter.net>.
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:<te...@moxter.net>
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 <test@moxter.net 
 > 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:<te...@moxter.net>
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 test3@moxter.net 
  check if its an alias
INFO  18:23:56,491 | james.smtpserver | ID=22356883 Rejected message.  
Unknown user: test3@moxter.net
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: test3@moxter.net]
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: server-user-unsubscribe@james.apache.org
>>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>>
>>>
>>>
>>> --
>>> Eric Charles
>>> http://about.echarles.net
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>> For additional commands, e-mail: server-user-help@james.apache.org
>>
>
>
> -- 
> Eric Charles
> http://about.echarles.net
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: 3.0-M3-SNAPSHOT Configuration

Posted by Eric Charles <er...@apache.org>.
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.

> 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: server-user-unsubscribe@james.apache.org
>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>
>>
>>
>> --
>> Eric Charles
>> http://about.echarles.net
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>> For additional commands, e-mail: server-user-help@james.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>


-- 
Eric Charles
http://about.echarles.net

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: 3.0-M3-SNAPSHOT Configuration

Posted by Jan Moxter <ja...@moxter.net>.

Hallo and thanks for the answer

On Jul 22, 2011, at 2:53 AM, Eric Charles wrote:

> On 20/07/11 18:55, Jan Moxter wrote:
>> Hallo,
>>
>> i am using a 3.0-M3-SNAPSHOT and i realized that some of the
>> configurations are ignored.
>>
>> - In special i am interested to know how to configure now the hello- 
>> name
>> of the smtp server. (Some other smtp servers do not accept us due  
>> to the
>> hello name). We do have to overwrite the name the DNS servers return
>>
>
> Did you set helloName tag is smtpserver.xml.
> See https://svn.apache.org/repos/asf/james/app/trunk/src/main/config/examples/smtpserver.xml
> (don't forget to set autodetect="false"

Oh i missed that. thanks this is solved now. And now i also know where  
the configuration examples are :-)

>
>> - further on it seems like the mailetcontainer.xml configuration is
>> ignored. Even when we change the transport processor it does not have
>> any influence. Might it be that camel needs some other configuration.
>>
>
> It should work. Modifying mailetcontainer.xml is how you define the  
> processing of the mails. If this does not work, could you explain  
> what you want to do and send the configuration you set.
>
> Thx.


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 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: server-user-unsubscribe@james.apache.org
>> For additional commands, e-mail: server-user-help@james.apache.org
>>
>
>
> -- 
> Eric Charles
> http://about.echarles.net
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: 3.0-M3-SNAPSHOT Configuration

Posted by Eric Charles <er...@u-mangate.com>.
On 20/07/11 18:55, Jan Moxter wrote:
> Hallo,
>
> i am using a 3.0-M3-SNAPSHOT and i realized that some of the
> configurations are ignored.
>
> - In special i am interested to know how to configure now the hello-name
> of the smtp server. (Some other smtp servers do not accept us due to the
> hello name). We do have to overwrite the name the DNS servers return
>

Did you set helloName tag is smtpserver.xml.
See 
https://svn.apache.org/repos/asf/james/app/trunk/src/main/config/examples/smtpserver.xml
(don't forget to set autodetect="false"

> - further on it seems like the mailetcontainer.xml configuration is
> ignored. Even when we change the transport processor it does not have
> any influence. Might it be that camel needs some other configuration.
>

It should work. Modifying mailetcontainer.xml is how you define the 
processing of the mails. If this does not work, could you explain what 
you want to do and send the configuration you set.

Thx.

> Thanks a lot
>
>
> Jan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>


-- 
Eric Charles
http://about.echarles.net

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org