|
I think, its very old version.
|
|
|
|
|
|
I was wondering how you do attachment(like a picture) with the smtp client and how you handle that in smtp server?
btw, thanks for the great code!
Master of the last path
|
|
|
|
|
Hi,
I dont get exactly what you mean.
|
|
|
|
|
In the client code, there is no property for an attached file(attachment), the client can only send text or bytes. For example:
aClient = new LumiSoft.Net.SMTP.Client.SMTP_Client();
aClient.Port = 25;
aClient.SmartHost = "blahblah.is.l-43com.com";
string[] mailDestination = new string[1];
mailDestination[0] = "someones email address";
Stream aMailBodyStream = new MemoryStream();
bool okOrnot = aClient.Send(mailDestination, "tumitoto@l-43com.com", aMailBodyStream);
There is no place for me to attach a file with the mail message above.
|
|
|
|
|
|
Ok, that works, thanks! Now I am having a server problem, I will do that in a different thread.
|
|
|
|
|
Hey,
I am writing a PUSH mail server in C# which means I will have to create a SMTP server to send/recieve external emails. How on earth do I send mail from my SMTP server to an arbitrary SMTP server? I don't mind writing a little (ok, much) code, but I noticed that to send email via my SMTP server I need to log in. So then how do I send mail to a server that requires logins?
Is the client actually a client/server? What is mean is can I assume that the communication from the client to the server is EXACTLY the same as a server to server?
All I need is what to send in plain old ASCII, I got TCP/IP under my belt. Tell me that server->server is the same as client->server and I will be just as happy.
Thanks!
Jonathan Dickinson
|
|
|
|
|
Hi,
>How on earth do I send mail from my SMTP server to an arbitrary SMTP server?
I dont get what you mean exactly. Are you talking about getting destination email domain IP addresses ?
>So then how do I send mail to a server that requires logins?
uhuu, what can i say you just need to login, thats all.
>Is the client actually a client/server? What is mean is can I assume that the communication from >the client to the server is EXACTLY the same as a server to server?
Nope, smtp client and servers 2 different things. Client sends message, while smtp server receives. So full functional mail server will use smtp server and client components.
Relay part in mail server is actually smtp client.
|
|
|
|
|
Is there a simple way to use this mail server as an e-mail robot to execute an application or pass the message to a class implementing an interface when new e-mail arrives in a particular mail box? Alternately, which class would you suggest modifying to implement this functionality?
Thanks,
Anthony
-- modified at 16:43 Wednesday 25th July, 2007
After poking around a bit. It looks like the filter functionality probably does what I'm looking for. Do you have any documentation on creating a new filter? Most of the settings seem intuitive, but what does the "Cost" value do?
-- modified at 17:01 Wednesday 25th July, 2007
The spam filter code looks like it should be sufficient to guide me, but I'd still like to know what the "Cost" value is for.
|
|
|
|
|
Hi,
Yes filter is right way to go.
Cost means process order, lower value means higher processing priority.
In real life what that gives, for example you put some fast easy spam check before hard virus scan, then if smap filter rejects message, next filters not executed.
NOTE:
If you code something, ensure that you use latest 0.92 version !!!
|
|
|
|
|
I dont know whther this is the right place to ask this doubt.
I would like to use Mail Sending program in ASP.NET in Web pages and which is working fine in windows, but when I am deploying this application on Suse-linux which is configured with mod_mono, it is displaying me error.
Here is the code
System.Net.Mail.MailMessage msg = new System.Net.Mail.MailMessage();
msg.To.Add("abcd@gmail.com");
msg.From = new MailAddres("abcd@gmail.com","null",System.Text.Encoding.UTF8);
msg.Subject = "Test Subject";
msg.Body = "This is my msg Body";
SmtpClient client = new SmtpClient();
client.Credentials = new System.Net.NetworkCredential("xyz@gmail.com", "pwd123");
client.Port = 587;
client.Host = "smtp.gmail.com";
client.EnableSsl = true;
client.SendCompleted += new SendCompletedEventHandler(client_SendCompleted);
client.Send(msg);
1. I am not able to understand that what changes should I have to do at SuseLinux machine so that this code works there too.
2. Do I have to edit the mod_mono or apache configuration to listen smtp at suse?
3. Sending mail through postfix at suselinux machine is working fine thru command line.
I will appreciate you for helping me.
Thanks in advance
Vertis
|
|
|
|
|
|
Hi, firstly - thanks for all the hard effort & all the code - stunning.
Next a question :
Is it possible to configure the mail server to collect from one or more "catch all" pop3 accounts rather than on a user by user basis ?
Thanks in advance.
|
|
|
|
|
Hi,
Yep, you can, just do route like * to 1 mailbox ... that will do the trick.
|
|
|
|
|
Thanks, but I think I am still a little confused.
I'd like to collect via pop3 from a remote mailserver for delivery into a domain on the luimusoft mailserver, which in turn splits the incoming pop3 and "delivers" it to the user(s) mailbox(s) according to the rules.
So to clarify - the lumisoft mailserver would be collecting from not delivering to a catch all pop3.
I can see what looks like where you can configure the collection for individual users but what about for entire domain(s) ?
Sorry if this is a no brainer - just can't seem to see it in the manager interface.
Many thanks in advance.
|
|
|
|
|
If you need to collect mail, then you need to make local user(s)
and add "Remote Servers" for each account.
You can tgte full domain, pop3 works user basis, so you need to add each user mapping in UI.
|
|
|
|
|
Any chance of this as a future enhancement ?
|
|
|
|
|
What enachement ?
As said never possible to do so that you can download all remote accounts to local accounts with pop3, when you don't do mapping.
Basically how this must be done and what current server upports:
local user 1 -> remote server account 1
remote server account 2
remote server account 3
....
local user 2 -> remote server account 1
remote server account 2
remote server account 3
....
Just look user properties -> remote servers .
All easy as that, id don't get what "wheel" you try to invent ... .
|
|
|
|
|
It's me and my old "MS Exchange" habits that seem to be getting in the way of explaining exactly what it is I am after.
I can see that for each user in the lumisoft mailserver I can collect from pop3 account(s).
It is my understanding that these are user accounts and the pop3 account(s) you are collecting from should only hold mail related to that user.
Scenario
Mailserver on internet for foo.bar.com.
Mail is "pooled" into a single catch all pop3 account - there are no user accounts.
Lumisoft mailserver collects from the foo.bar.com catch all, splits it back out to individual emails and stores them in the relevant local users mailbox.
There are plenty of tools that do "collect from pop3 and redeliver as smtp" like :
www.exchangepop3.com
or
www.archimatrix.com/us/software/arxConnector/index.htm
I was just hoping that this could be included as a feature - that is if I have not totally lost the plot and it works already ?!?!??
|
|
|
|
|
>Mail is "pooled" into a single catch all pop3 account - there are no user accounts.
>Lumisoft mailserver collects from the foo.bar.com catch all, splits it back out to individual >emails and stores them in the relevant local users mailbox.
I have told several times you can dothis, but different way.
You are to lazy to look Uer properties -> Remote Servrers ... if you looked it, filled one, ...
Also seems you are not home with email stuff, you some kinfd dummy idea to collect mail and re split it agian, why ? just collect messages to right local mailboxes. Result is same but more simplier, also takes less processing power, .. .
|
|
|
|
|
If I had control over what I was collecting from and could arrange for individual pop3 accounts for each user I would agree.
Since I do not, I was asking for help.
It would seem from your reply that you are unwilling to furnish this.
This is far from a "dummy idea" as this functionality is not only included in the software I have previously mentioned, but is also present in Microsoft's Small Business Server package (versions 4.5, 2000 & 2003).
Thanks for your time anyway.
|
|
|
|
|
>I had control over what I was collecting from and could arrange
I have told serveral times you can do it, i reall don't get what you don't get ... .
All there in UI -> Users Groups > User -> Remote Servers
|
|
|
|
|
I think I may finally understand.
Example :
foo.bar.com - A domain I have no control over has a single pop3 account I can collect from that has all of the email destined for the foo.bar.com domain regardless of username.
In this single pop3 box are two emails :
One to Fred@foo.bar.com
One to Kim@foo.bar.com
What you are saying is that I can :
Create two users in the lumisoft mailserver (Fred and Kim)
Make it repsonsible for foo.bar.com
Add ONE remote server to ONE user (Fred) for the pop account with mail for both users (Fred and Kim) and the server is clever enough to know that the mail is really destined for TWO users and will deliver it accordingly.
This being the case I humbly apologise for my lack of understanding.
|
|
|
|
|
Ok.
Remote box:
1 user account, but 2 addresses ?
Fred@foo.bar.com
Kim@foo.bar.com
Local box:
2 user accounts
Fred
Fred@foo.bar.com
Kim
Fred@foo.bar.com
???
Probably easier to discuss in MSN, my msn is ivx@lumisoft.ee .
|
|
|
|