send/receive mail from OWIN self-host webapp with custom domain - email

I have a domain, a Console Application with OWIN self-host.
The Console app host on AWS EC2 server windows server 2012.
My mail feature of server is sending Verification Mail
I've google many owin mail send or receive infomation,
but all of them are smtp/pop3 on google or some other smtp/pop3 server.
Is it possible to do send / receive mail in a console with current ip or custom domain?
I've try method.
Use hMailServer:
No luck in this. can't send/receive any mail, and set gmail for add smtp and pop3,
but fail.
the error msg: "We were unable to locate the other domain. Please contact your other provider."
Use AWS SES:
Still fail on this.
AWS SES need vail domain with anyaccount#domain, but i have no mail feature on my server.
Use my gmail:
Connect gmail need SSL. I have no SSL.
And research hours for host ssl on OWIN self-host,
Is there other solution for this?

I set a DNS MX Record from my DNS provider.
Now,I can send/receive mail with hamilserver and gmail smtp/pop3.
not best solution, but my problem solved.

Related

Vesta / Cloudflare DNS/ Can't connect to mail server with outlook client

I started to use Cloudflare, but I got some problems with mail management.
I can receive and send emails through Vesta Roundcube webmail. But my outlook client stopped working. I can't add my email to any email client such as Apple Mail or Outlook. I think it does not receive a message from the mail server. I am stuck, I don't know where to look next.
This is my config on Cloudflare. And it seems fine. My web and email is on a different webserver.
Any idea of what should be changed?
I finally fixed it. Change your mail A record from "Proxied" to Dns only.

How can I encrypt the Node-RED email login?

I'm using Node-RED in IBM's Bluemix. There are nodes to get email in and send email out. However, the email credentials do not seem to be encrypted when sent over the internet. I'm a bit concerned about that. Is there a way to find email receive and email send nodes for Node-RD where they login to the email server using TLS (or SSL)?
If you configure the email nodes to point at SSL/TLS ports then they will connect via a secure channel.
Also I believe that if the mail servers support the STARTTLS command then they will upgrade the connection once connected.

How to configure an Internet mail server to use with IIS website

I am looking for a little direction to my problem. Short story, I have a website hosted on a web server. I pay a yearly subscription. This year I am planning on taking it off and hosting it internally. I already backed up, restored, and installed all necessary components (on Windows BTW with IIS, PHP, and MySQL). The site works great internal and by IP address externally through a firewall. (IP address for now until my web host subscription expires, then I will forward and register DNS).
But now this is my problem, my website has email functionality which works on my providers server. I want to install a local mail server for my website that will wind up sending and receiving emails through my website. I am lost here. No sure which path I should take. I have installed and used Exchange 2003 in the past just for internal domains, nothing for internet AND internet.
Anyone with ideas, links, suggestions? I see that IIS does support SMTP virtual servers, is this a possible route? If so, what about POP3 or IMAP (incoming) server solutions?
Thanks
Edit
---Update On Situation---
So far I have configured a local exchange server that works with my local webserver. I then created a CNAME in my web host DNS zone for my IP address. I created a simple subdomain for my site redirected to my home web server. Everything works great, internal email through Exchange 2003 from website on IIS, redirected DNS names, almost there. Now I just need to create Internet Mail functionality in Exchange. Went through the Exchanges wizard to "open system" for Internet mail, created new SMTP connector and ....nothing for external mail test. Failed! Thought everything was configured properly. I also tried to open all ports on firewall, 25 and 110.
I'd recommend using something like PostMarkApp to send transactional email from the website, and use hosted email (Google Apps for Domains) for your email. Its a pain to run a real mail server.
Link to Exchange Internet mail SMTP connector configuration:
Configure Exchange Internet Mail SMTP Connector
Well, I did figure it out. I was on the right path and everything was working but I just configured my client wrong and my ISp blocked port 25, duh. CHanged port to unused 366. But here is a little tip for anyone that may need to figure this out in the future.
1)Setup install IIS with default SMTP and NNTP virtual servers.
2)Install Exchange into organization. Internal naming convention doesn't really make a difference between internal to externally if you are behind a firewall. Basically this means you don't have to create a seperate zone in DNS if using this for a seperate domain hosted elsewhere. Hope this didn't confuse anyone.
3)Right click on server name in Exchange System Manager and go to Internet Mail Wizard
4)If you want your clients to hold a different domain email address than your internal you can setup in exchange through
Exchange System Manager >> Recipients >> Recipient Policies
Then add a Masquerade in Default SMTP Virtual Server
5)Have a gmail Internet SMTP connector set to smtp.gmail.com as smart host with a gmail email account settings and TLS checked
6)Default SMTP VS set with outbound port 587 and TLS checked
If you need to change SMTP ports too, don't forget to change not just firewall but also inside Exchange.

How to configure email accounts like support#xyz.com or feedback#xyz.com on AWS

I registered my domain with godaddy.com. Want to use EC2 with SES to host my website on amazon web services.
On my website there would be few email accounts like support#xyz.com or feedback#xyz.com. How can I configure these email accounts on my SES server ( or my ec2 server ); so that I could receive any emails sent to these email addresses ( through some mail client like Outlook, Thunderbird)
This is the answer I received from the AWS team via the AWS forum:
Hello,
I'm sorry to say that SES doesn't handle inbound email today. We are
an outbound email delivery service only. However, you could (with some
effort) set up a postfix server and a POP3 server on an EC2 instance,
get a static IP bound to that EC2 instance, and list that on your MX
records. It is a bit more of a challenge than using gmail.com for
example, but it would provide you what are looking for.
Thanks, and please let me know if I can help further.
Paolo
You can sign your domain up for free Google Apps. During the setup, Google will direct you to modify your domain's MX records in Godaddy in order to receive mail. Then you can use AWS SES to send mail and mail will be received by your domain's Gmail user.

use smtp.mydomain.com to forward to smtp.gmail.com?

I am using google apps for email. I can send email out through c# code fine with smtp.gmail.com.
I would like to be able to use the name smtp.mydomain.com instead, but still have it go to smtp.gmail.com. I tried just seeing a CNAME in my DNS settings, but I get this error:
"The remote certificate is invalid according to the validation procedure."
Any ideas?
Thanks.
Yes, you can't, the TLS certificate used to communicate privately with the remote SMTP server is signed with smtp.gmail.com. The only solution is to create a SMTP relay with sendmail for example on your own server.