local stmp service on Windows servers?

Re: local smtp service on Windows servers?

I would like moving the emails to the Pickup Directory for later delivery instead of routing to a relay server.

My mail settings would look like this:
<smtp deliveryMethod="SpecifiedPickupDirectory">
<specifiedPickupDirectory pickupDirectoryLocation="???" />
</smtp>

but I don't know which folder to use for the "pickupDirectoryLocation"?

if using localhost as the SMTP server, does settings would like this:
<mailSettings>
<smtp>
<network
host="localhost"
port="25 or another Port?"
userName="Do I need to specify authentication details here? I think it's required, but don't know which account to use yet"
password="same as above" />
</smtp>
</mailSettings>
 
Re: local smtp service on Windows servers?

Can you tell my why you wish to use a pickup location like this? What is the purpose in it.
 
Re: local smtp service on Windows servers?

Yeah, 2 purposes. I describe them shortly. The text is quite lengthy. dont say I didnt warm you.

I write a simple feedback system for a hotel where the hotel managers log in and send feedback mail to their guests about hotel bookings.
Usually, I use this:
<smtp deliveryMethod="Network" from="[email protected]">
<network host="mail.sample.com" password="password" userName="[email protected]"/>
</smtp>

but it is not suitable for this case as the "From" field is fix for all mails while my client would like the the "From" reflects the manager email who sent the feedback so the guest could know who he/she deals with.


So, the first pupose is to find a fix account plays as an authentication proxy for all the manager emails so as long as the manager log in the system, they don't need to provide email credentials when the feedback mail is sent out.
That's the reason for the:

<smtp deliveryMethod="SpecifiedPickupDirectory">
<specifiedPickupDirectory pickupDirectoryLocation="???" />
</smtp>
OR

<mailSettings>
<smtp>
<network
host="localhost"
port="???"
userName="???"
password="???" />
</smtp>
</mailSettings>

I only need 1 fix account to authenticate when dropping the managers' mails into the "localhost" or "pickupDirectory". Could these solutions qualify the first pupose? Any other solution is appreciated!

The second purpose is my client want to send marketing email to his customers when there're holidays, events or discounts, etc. The number of mails sent may be hundreds, I guess.
So I think dropping all the mails to the "localhost" or "pickupDirectory" is more quickly than relaying mail to a separate relay server, am I right?
The local smtp server can send those mail later, they are not time-sensitive emails.

other problem raising here is I dont know what is the limit when sending out a large number of emails.
I don't want to be considered as spamming. I know spamming means account will be suspended. I want to protect both the client and me too. Is there a mailing guideline here?
 
Re: local smtp service on Windows servers?

Hello,

I found the solution for the 1st purpose. Simply set the username/pass to any vaild email account and set MailMessage.From property to the email of the managers when they send feedback.

Why not I think about this simple before! Sorry to bother you guy with the above lengthy text.

The second purpose I try the setting:
<smtp deliveryMethod="Network">
<network host="localhost"/>
</smtp>

it works but this way (I use SmtpClient.Send) would block the calling thread until all mails are sent out. I'm on win15, is there a "pickupDirectory" in this server?
 
Back
Top