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 <servernames> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to