Sending email directly using MailKit - mailkit

All the examples I've seen on using MimeKit/MailKit to send an email has the SMTP client logging into a SMTP server and sending the email through that server. Is it possible to have MimeKit/MailKit send the email directly to the recipient?
In other words, if my app wishes to send an email to friend#hisdomain.com, is it possible to get the MailKit SMTP client to communicate directly to the SMTP server at hisdomain.com and send the email without having to go through my SMTP server? Or, if I have an app programmed to send me the daily whatever, to send the email to my SMTP server without having to actually log into the SMTP server.

Related

Spoof email online serivce: how it works? i.e. https://emkei.cz/

How do these online services of spoof email work?
They usually require the from domain really exists. It means there is a smtp server which accepts the connection.
Let's say I send a mail from test#xxx.com. The site will try to connect to the xxx.com smtp server and it will deliver the message.
The questions are:
How it is able to find the xxx.com domain smtp server?
To correctly deliver the message, xxx.com has to be without authentication. However, also with a fake gmail.com domain, the email is correctly sent, even though Gmail requires auth.

Setting up Send only mail server

I am setting a mail server for one of my website for which I am using external ZOHO mail server. But for sending mails through the website I am using postfix mail server. Now the issue I am facing is when I send mail through my website to some other mail eg. tushar#gmail.com it send the mail with no issue but if I send mail to one of my own domain email e.g. care#example.com the mail is not received.
I have follows this tutorial to setup send the only postfix: and followed SPF record and DKIM setup using this and this.
I resolved the problem by removing $myhostname variable from mydestination, which probably changed the way mail was sent. Earlier it was through local and now it is being sent through smtp

Gmail warning: the domain not encrypted this message

When I send messages from my server using SMTP Gmail always gets a message with little red lock (left near the senders email) with a message "The domain not encrypted this message".
I send emails via Outlook 2016, using SMTP authentication. pop using SSl 995, smtp using TLS 587. Everything works fine, i can send and receive messages, but Gmail warns that server still not encrypts messages, but the messages are encrypted via TLS.
What can be wrong ?

VestaCP/exim mail server returns 550 smtp auth requried

I have just installed VestaCP on a fresh CentOS VPS.
I have set up email for one domain. All mail sent to that domain bounces with the error 550 smtp auth requried
I have commented out the following;
deny message = smtp auth requried
from exim.conf
I have turned off anti-spam.
I still get the bounce with this message.
Specifically, if I send an email from a gmail account google responds:
Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the server for the recipient domain foobar.tld by mail.foobar.tld. [x.x.x.x].
The error that the other server returned was:
550 smtp auth requried
Any experience with this? I have seen the problem on a number of threads but have not found a solution.
I partially solved the problem. It only occurred when sending mail to the smtp server from a domain that was hosted on the same server for web but not for email. When I sent email from a domain that had nothing to do with any domains hosted on the same server as the exim instance, then it got through. I still can't send email from the domain that was causing the problem and I would like to, but I can work around it.
So to be clear in case anyone reads this:
domain1 web is hosted on server1
domain1 email is hosted on google's servers
domain2 is hosted on server1 for web and email
exim is running on server1
when I send email from thunderbird via google's server from email#domain1 to and email#domain2 the exim instance asks google's smtp server for authentication even though the mail is being delivered to a mailbox in its list of domains it can deliver to on the same physical server where it is running.
I suspect that it is suspicious of the from address, which it shouldn't be since the mx records indicate that it does not host mail for that domain.

Send email from Gmail to localhost (Postfix)

I need to send email from Gmail to my local machine with Postfix. How to do it?
If you want to send email from an external mail server to your email server this is what you do:
Get a public IP address to your mail server.
Get a domain name for sending the incoming email. Let us call it yourdomain.com.
Map MX entry for your domain yourdomain.com to the public IP address of your mail server. MX entries publish your domain's mail server location so that a mail server like gmail can find our where the email should be sent.
With this setup any email sent to a valid user on your mail server using email address like user#yourdomain.com should reach your server.