Do you have "localhost" added to your DomainList (via jmx or james-cli)?

Bye,
Norman


2011/6/20 math math <[email protected]>:
> sure :
>
> domainlist.xml:
>
> <domainlist class="org.apache.james.domainlist.jpa.JPADomainList">
>  <autodetect>true</autodetect>
>  <autodetectIP>true</autodetectIP>
>  <defaultDomain>localhost</defaultDomain>
> </domainlist>
>
> ---------------------------------------------------------------------------------------------------------------
> mailetcontainer.xml:
>
> <mailetcontainer enableJmx="true">
>
>  <context>
>    <postmaster>Postmaster@localhost</postmaster>
>  </context>
>
>  <spooler>
>    <threads> 20 </threads>
>  </spooler>
>
>  <processors>
>    <processor state="root" enableJmx="true">
>      <mailet match="All" class="PostmasterAlias"/>
>      <mailet match="RelayLimit=30" class="Null"/>
>      <mailet match="SMTPAuthSuccessful" class="ToProcessor">
>        <processor>transport</processor>
>      </mailet>
>      <mailet match="InSpammerBlacklist=dnsbl.njabl.org."
> class="ToProcessor">
>        <processor>spam</processor>
>        <notice>550 Requested action not taken: rejected - see
> http://njabl.org/ </notice>
>       </mailet>
>       <mailet match="All" class="ToProcessor">
>        <processor>transport</processor>
>       </mailet>
>     </processor>
>
>    <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>
>      <!-- Disable this if you want to have case-sensitive local-parts of
> the recipients -->
>      <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>
>
>    <processor state="error" enableJmx="true">
>      <mailet match="All" class="ToRepository">
>        <repositoryPath>file://var/mail/error/</repositoryPath>
>      </mailet>
>    </processor>
>
>    <processor state="spam" enableJmx="true">
>      <mailet match="All" class="ToRepository">
>        <repositoryPath>file://var/mail/spam/</repositoryPath>
>      </mailet>
>    </processor>
>
>    <processor state="local-address-error" enableJmx="true">
>      <mailet match="All" class="ToRepository">
>        <repositoryPath>file://var/mail/address-error/</repositoryPath>
>      </mailet>
>    </processor>
>
>    <processor state="relay-denied" enableJmx="true">
>      <mailet match="All" class="ToRepository">
>        <repositoryPath>file://var/mail/relay-denied/</repositoryPath>
>      </mailet>
>    </processor>
>
>    <processor state="bounces" enableJmx="true">
>      <mailet match="All" class="DSNBounce">
>        <passThrough>false</passThrough>
>      </mailet>
>    </processor>
>  </processors>
> </mailetcontainer>
>
> 2011/6/20 Norman Maurer <[email protected]>
>
>> Hi there,
>>
>> can you show use your domainlist.xml  and your mailetcontainer.xml.
>>
>>
>> Thanks,
>> Norman
>>
>>
>> 2011/6/20 math math <[email protected]>:
>> > Hi there,
>> >
>> > after few month using successfully james 3M2 in dev mode, i m trying now
>> to
>> > use James 3beta 1.
>> > New James launching is quite fine in Eclipse ans mysql database... But
>> when
>> > i m trying to send mail from localhost to localhost, it does nt work, i
>> don
>> > 't see new message in mailbox....  here is what i got after trying
>> multiple
>> > configurations : i m sending from [email protected] to [email protected]
>> >
>> > INFO  11:44:05,311 | james.smtpserver | ID=404722680 Connection
>> established
>> > from 127.0.0.1 (127.0.0.1)
>> > INFO  11:44:05,404 | james.smtpserver | ID=404722680 Successfully spooled
>> > mail Mail1308563045397-7836577b-dca2-4ce3-9ac3-60b4259b05bc from
>> > [email protected] on 127.0.0.1 for [[email protected]]
>> > INFO  11:44:05,505 | james.smtpserver | ID=404722680 Connection closed
>> for
>> > 127.0.0.1 (127.0.0.1)
>> > INFO  11:44:05,638 | james.dnsservice | Couldn't resolve MX records for
>> > domain 127.0.0.1.
>> > INFO  11:44:05,639 | james.mailetcontext | Temporary problem looking up
>> mail
>> > server for host: 127.0.0.1
>> > INFO  11:44:05,639 | james.mailetcontext | Temporary exception delivering
>> > mail
>> (Mail1308563045397-7836577b-dca2-4ce3-9ac3-60b4259b05bc-to-127.0.0.1:
>> > INFO  11:44:05,639 | james.mailetcontext | Storing message
>> > Mail1308563045397-7836577b-dca2-4ce3-9ac3-60b4259b05bc-to-127.0.0.1 into
>> > outgoing after 0 retries
>> >
>> > don't understand what s this "Couldn't resolve MX records for domain
>> > 127.0.0.1." . Never saw that before with james M2....
>> >
>> >
>> > and here is what i got when sending from mat@localhost to mat@localhost:
>> >
>> >
>> > INFO  11:47:21,409 | james.smtpserver | ID=644415964 Connection
>> established
>> > from 127.0.0.1 (127.0.0.1)
>> > INFO  11:47:21,487 | james.smtpserver | ID=644415964 Successfully spooled
>> > mail Mail1308563241482-faf28f09-e439-4b00-9491-26cf6de8e134 from
>> > mat@localhost on 127.0.0.1 for [mat@localhost]
>> > INFO  11:47:21,501 | james.smtpserver | ID=644415964 Connection closed
>> for
>> > 127.0.0.1 (127.0.0.1)
>> > INFO  11:47:21,641 | james.dnsservice | Couldn't resolve MX records for
>> > domain localhost.
>> > ERROR 11:47:21,642 | james.dnsservice | Couldn't resolve IP address for
>> host
>> > localhost.
>> > INFO  11:47:21,642 | james.mailetcontext | Temporary problem looking up
>> mail
>> > server for host: localhost
>> > INFO  11:47:21,642 | james.mailetcontext | Temporary exception delivering
>> > mail
>> (Mail1308563241482-faf28f09-e439-4b00-9491-26cf6de8e134-to-localhost:
>> > INFO  11:47:21,642 | james.mailetcontext | Storing message
>> > Mail1308563241482-faf28f09-e439-4b00-9491-26cf6de8e134-to-localhost into
>> > outgoing after 0 retries
>> >
>> > ==> sending @localhost i can see messages in "sent" folder !! but not in
>> > "inbox" folder with thunderbird :(
>> >
>> > here is my dnsservice.xml
>> >
>> > <dnsservice>
>> >    <autodiscover>false</autodiscover>
>> >    <authoritative>true</authoritative>
>> >    <maxcachesize>50000</maxcachesize>
>> > </dnsservice>
>> >
>> -------------------------------------------------------------------------------------------------------------------------------------------------------------
>> > domainlist.xml :
>> >
>> > <domainlist class="org.apache.james.domainlist.jpa.JPADomainList">
>> >  <autodetect>true</autodetect>
>> >  <autodetectIP>true</autodetectIP>
>> >  <defaultDomain>localhost</defaultDomain>
>> > </domainlist>
>> >
>> -------------------------------------------------------------------------------------------------------------------------------------------------------------
>> > imapserver.xml
>> >
>> > <imapserver enabled="true">
>> >  <bind>localhost:143</bind>
>> >  <connectionBacklog>200</connectionBacklog>
>> >  <tls socketTLS="false" startTLS="false">
>> >  </tls>
>> >
>> >  <!-- Disallow plain authenticate / login. So any client will need to
>> > STARTTLS before try to login -->
>> >  <!-- or the socket must be using TLS in general -->
>> >  <plainAuthDisallowed>false</plainAuthDisallowed>
>> >
>> >  <!-- COMPRESS extension -->
>> >  <compress>false</compress>
>> >
>> >  <!-- Maximal allowed line-length before a BAD response will get returned
>> > to the client -->
>> >  <!-- This should be set with caution as a to high value can make the
>> > server a target for DOS! -->
>> >  <maxLineLength>65536</maxLineLength>
>> >
>> >  <!-- 10MB size limit before we will start to stream to a temporary file
>> > -->
>> >  <inMemorySizeLimit>10485760</inMemorySizeLimit>
>> >  <handler>
>> >      <connectionLimit> 0 </connectionLimit>
>> >      <connectionLimitPerIP> 0 </connectionLimitPerIP>
>> >  </handler>
>> > </imapserver>
>> >
>> -------------------------------------------------------------------------------------------------------------------------------------------------------------
>> > smtpserver.xml
>> >
>> > <smtpserver enabled="true">
>> >  <bind>localhost:25</bind>
>> >  <connectionBacklog>200</connectionBacklog>
>> >  <tls socketTLS="false" startTLS="false">
>> >  </tls>
>> >  <connectiontimeout>360</connectiontimeout>
>> >  <connectionLimit> 0 </connectionLimit>
>> >  <connectionLimitPerIP> 0 </connectionLimitPerIP>
>> >  <authorizedAddresses>127.0.0.0/8</authorizedAddresses>
>> >  <authRequired>false</authRequired>
>> >  <verifyIdentity>false</verifyIdentity>
>> >  <maxmessagesize>0</maxmessagesize>
>> >  <addressBracketsEnforcement>true</addressBracketsEnforcement>
>> >  <handlerchain enableJmx="true">
>> >    <handler
>> class="org.apache.james.smtpserver.fastfail.ValidRcptHandler"/>
>> >    <handler class="org.apache.james.smtpserver.CoreCmdHandlerLoader"/>
>> >
>> >  </handlerchain>
>> > </smtpserver>
>> >
>> >
>> > Doest anyone have any clue to help me?
>> >
>> > Another question : how to make runnable standalone james with those
>> > sources??
>> >
>> > Thanks,
>> >
>> > Mat.
>> >
>>
>> ---------------------------------------------------------------------
>> 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]

Reply via email to