コード例 #1
0
        /// <summary>
        /// Initializes the SMTPProcessor with the appropriate
        /// interface implementations.  This allows the relay and
        /// delivery behaviour of the SMTPProcessor to be defined
        /// by the specific server.
        /// </summary>
        /// <param name="domain">
        /// The domain name this server handles mail for.  This does not have to
        /// be a valid domain name, but it will be included in the Welcome Message
        /// and HELO response.
        /// </param>
        /// <param name="recipientFilter">
        /// The IRecipientFilter implementation is responsible for
        /// filtering the recipient addresses to determine which ones
        /// to accept for delivery.
        /// </param>
        /// <param name="messageSpool">
        /// The IMessageSpool implementation is responsible for
        /// spooling the inbound message once it has been recieved from the sender.
        /// </param>
        public SMTPProcessor(string domain, IRecipientFilter recipientFilter, IMessageSpool messageSpool)
        {
            Initialize(domain);

            this.recipientFilter = recipientFilter;
            this.messageSpool    = messageSpool;
        }
コード例 #2
0
        /// <summary>
        /// Initializes the SMTPProcessor with the appropriate
        /// interface implementations.  This allows the relay and
        /// delivery behaviour of the SMTPProcessor to be defined
        /// by the specific server.
        /// </summary>
        /// <param name="domain">
        /// The domain name this server handles mail for.  This does not have to
        /// be a valid domain name, but it will be included in the Welcome Message
        /// and HELO response.
        /// </param>
        /// <param name="messageSpool">
        /// The IRecipientFilter implementation is responsible for
        /// filtering the recipient addresses to determine which ones
        /// to accept for delivery.
        /// </param>
        public SMTPProcessor(string domain, IMessageSpool messageSpool)
        {
            Initialize(domain);

            recipientFilter   = new LocalRecipientFilter(domain);
            this.messageSpool = messageSpool;
        }
コード例 #3
0
        /// <summary>
        /// Initializes the SMTPProcessor with the appropriate
        /// interface implementations.  This allows the relay and
        /// delivery behaviour of the SMTPProcessor to be defined
        /// by the specific server.
        /// </summary>
        /// <param name="domain">
        /// The domain name this server handles mail for.  This does not have to
        /// be a valid domain name, but it will be included in the Welcome Message
        /// and HELO response.
        /// </param>
        /// <param name="recipientFilter">
        /// The IRecipientFilter implementation is responsible for
        /// filtering the recipient addresses to determine which ones
        /// to accept for delivery.
        /// </param>
        public SMTPProcessor(string domain, IRecipientFilter recipientFilter)
        {
            Initialize(domain);

            this.recipientFilter = recipientFilter;
            messageSpool         = new MemoryMessageSpool();
        }
コード例 #4
0
        /// <summary>
        /// Initializes the SMTPProcessor with the appropriate
        /// interface implementations.  This allows the relay and
        /// delivery behaviour of the SMTPProcessor to be defined
        /// by the specific server.
        /// </summary>
        /// <param name="domain">
        /// The domain name this server handles mail for.  This does not have to
        /// be a valid domain name, but it will be included in the Welcome Message
        /// and HELO response.
        /// </param>
        public SMTPProcessor(string domain)
        {
            Initialize(domain);

            // Initialize default Interface implementations.
            recipientFilter = new LocalRecipientFilter(domain);
            messageSpool    = new MemoryMessageSpool();
        }
コード例 #5
0
        /// <summary>
        /// Initializes the SMTPProcessor with the appropriate 
        /// interface implementations.  This allows the relay and
        /// delivery behaviour of the SMTPProcessor to be defined
        /// by the specific server.
        /// </summary>
        /// <param name="domain">
        /// The domain name this server handles mail for.  This does not have to
        /// be a valid domain name, but it will be included in the Welcome Message
        /// and HELO response.
        /// </param>
        /// <param name="messageSpool">
        /// The IRecipientFilter implementation is responsible for 
        /// filtering the recipient addresses to determine which ones
        /// to accept for delivery.
        /// </param>
        public SMTPProcessor(string domain, IMessageSpool messageSpool)
        {
            Initialize(domain);

            _recipientFilter = new LocalRecipientFilter(domain);
            _messageSpool = messageSpool;
        }
コード例 #6
0
 /// <summary>Default Logger</summary>
 //private static ILog log = LogManager.GetLogger( typeof( SMTPProcessor ) );
 
 #endregion
 
 #region Constructors
         
 /// <summary>
 /// Initializes the SMTPProcessor with the appropriate 
 /// interface implementations.  This allows the relay and
 /// delivery behaviour of the SMTPProcessor to be defined
 /// by the specific server.
 /// </summary>
 /// <param name="domain">
 /// The domain name this server handles mail for.  This does not have to
 /// be a valid domain name, but it will be included in the Welcome Message
 /// and HELO response.
 /// </param>
 public SMTPProcessor( string domain )
 {
     Initialize( domain );
     
     // Initialize default Interface implementations.
     recipientFilter = new LocalRecipientFilter( domain );
     messageSpool = new MemoryMessageSpool();
 }
コード例 #7
0
 /// <summary>
 /// Initializes the SMTPProcessor with the appropriate 
 /// interface implementations.  This allows the relay and
 /// delivery behaviour of the SMTPProcessor to be defined
 /// by the specific server.
 /// </summary>
 /// <param name="domain">
 /// The domain name this server handles mail for.  This does not have to
 /// be a valid domain name, but it will be included in the Welcome Message
 /// and HELO response.
 /// </param>
 /// <param name="recipientFilter">
 /// The IRecipientFilter implementation is responsible for 
 /// filtering the recipient addresses to determine which ones
 /// to accept for delivery.
 /// </param>
 /// <param name="messageSpool">
 /// The IMessageSpool implementation is responsible for 
 /// spooling the inbound message once it has been recieved from the sender.
 /// </param>
 public SMTPProcessor( string domain, IRecipientFilter recipientFilter, IMessageSpool messageSpool )
 {
     Initialize( domain );
                 
     this.recipientFilter = recipientFilter;
     this.messageSpool = messageSpool;
 }
コード例 #8
0
 /// <summary>
 /// Initializes the SMTPProcessor with the appropriate 
 /// interface implementations.  This allows the relay and
 /// delivery behaviour of the SMTPProcessor to be defined
 /// by the specific server.
 /// </summary>
 /// <param name="domain">
 /// The domain name this server handles mail for.  This does not have to
 /// be a valid domain name, but it will be included in the Welcome Message
 /// and HELO response.
 /// </param>
 /// <param name="recipientFilter">
 /// The IRecipientFilter implementation is responsible for 
 /// filtering the recipient addresses to determine which ones
 /// to accept for delivery.
 /// </param>
 public SMTPProcessor( string domain, IRecipientFilter recipientFilter )
 {
     Initialize( domain );
                 
     this.recipientFilter = recipientFilter;
     messageSpool = new MemoryMessageSpool();
 }
コード例 #9
0
 public void Dispose()
 {
     this.messageSpool    = null;
     this.recipientFilter = null;
 }
コード例 #10
0
 public SMTPProcessorTest()
 {
     LogManager.ResetConfiguration();
     BasicConfigurator.Configure();
     _messageSpool = new MemoryMessageSpool();
 }