Пример #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;
        }
 /// <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();
 }
 /// <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;
 }
 /// <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();
 }