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 shkim <sh...@gmail.com> on 2008/01/13 12:41:49 UTC

RCPT command blocks domains not registered in

I found that the only domains specified in &lt;servernames&gt; can pass the
"RCPT TO" command.

Addresses with other domains always get error:

550 5.7.1 Requested action not taken: relaying denied


I want to check whether the target email address is acceptable or not by
looking up the database,

I have many virtual email domains so I can't specify all in <servernames> in
config.xml


According to an wiki article NoFastFail, it seems that I can't check in the
"RCPT TO" command.

So I think I should make the check process as a mailet,

but email addresses denied at "RCPT TO" command are never come to my custom
mailet.

(Only addresses passed the "RCPT TO" have come.)


My question is:

1. How can I accept all addresses on the "RCPT TO" stage?

2. Is it really impossible to check addresses with custom logic in "RCPT TO"
command?


Thanks in advance.
-- 
View this message in context: http://www.nabble.com/RCPT-command-blocks-domains-not-registered-in-%3Cservernames%3E-tp14784842p14784842.html
Sent from the James - Users mailing list archive at Nabble.com.


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


Re: RCPT command blocks domains not registered in

Posted by Stefano Bagnara <ap...@bago.org>.
If you want to give current trunk a try then it should be easy because 
we modularized the services so that the "local domainlist" is a service 
wired in the assembly.xml

You can see that by default we wire the XMLDomainList (taking the 
content of the <servername> xml tag as configuration) but the default 
assembly already provides a commented version for the JDBCDomainList or 
the JDBCVirtualUserTable that will automatically take the domains from a 
db for the former and from the jdbc virtual user table domains for the 
latter case.

Stefano

shkim ha scritto:
> I found that the only domains specified in &lt;servernames&gt; can pass the
> "RCPT TO" command.
> 
> Addresses with other domains always get error:
> 
> 550 5.7.1 Requested action not taken: relaying denied
> 
> 
> I want to check whether the target email address is acceptable or not by
> looking up the database,
> 
> I have many virtual email domains so I can't specify all in <servernames> in
> config.xml
> 
> 
> According to an wiki article NoFastFail, it seems that I can't check in the
> "RCPT TO" command.
> 
> So I think I should make the check process as a mailet,
> 
> but email addresses denied at "RCPT TO" command are never come to my custom
> mailet.
> 
> (Only addresses passed the "RCPT TO" have come.)
> 
> 
> My question is:
> 
> 1. How can I accept all addresses on the "RCPT TO" stage?
> 
> 2. Is it really impossible to check addresses with custom logic in "RCPT TO"
> command?
> 
> 
> Thanks in advance.



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


Re: RCPT command blocks domains not registered in

Posted by Norman Maurer <no...@apache.org>.
Hi,

you could write your own RCPTCmdHandler which look up the database.. In
trunk terhe is allready such a feature:

http://svn.apache.org/repos/asf/james/server/trunk/smtpserver-function/src/main/java/org/apache/james/smtpserver/core/filter/fastfail/ValidRcptHandler.java

bye
Norman

Am Sonntag, den 13.01.2008, 03:41 -0800 schrieb shkim:
> I found that the only domains specified in &lt;servernames&gt; can pass the
> "RCPT TO" command.
> 
> Addresses with other domains always get error:
> 
> 550 5.7.1 Requested action not taken: relaying denied
> 
> 
> I want to check whether the target email address is acceptable or not by
> looking up the database,
> 
> I have many virtual email domains so I can't specify all in <servernames> in
> config.xml
> 
> 
> According to an wiki article NoFastFail, it seems that I can't check in the
> "RCPT TO" command.
> 
> So I think I should make the check process as a mailet,
> 
> but email addresses denied at "RCPT TO" command are never come to my custom
> mailet.
> 
> (Only addresses passed the "RCPT TO" have come.)
> 
> 
> My question is:
> 
> 1. How can I accept all addresses on the "RCPT TO" stage?
> 
> 2. Is it really impossible to check addresses with custom logic in "RCPT TO"
> command?
> 
> 
> Thanks in advance.


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