How to determine the smtp server save send mails or not? - email

When sending mail using SMTP server, how to determine whether the smtp server rely and save send mails to "Sent" folder or not.
Example
When sending mail using GMail smtp server ( smtp.gmail.com ), GMail server automatically rely and save the mail to "Sent" folder. But few other server like Exchange, GoDaddy,.. these are the servers not saving the mail to "Sent" folder. We have to manually append the message to respective folder using IMAP append command.
If I able to find whether the server won't save send mails to "Sent" folder means, I can invoke IMAP append command to save the mail to "Sent" folder

You cannot find that out. But you can make gmail and godaddy behave almost compatibly by sending a Bcc to the user. Gmail does that automatically, but if you do it explicitly the user still gets only one copy.
When you send mail via SMTP, add "rcpt to:<myaddress#doma.in>", and both gmail and godaddy will write the message to some filter. If you're lucky the message is even in the right folder.

Related

Sending email directly using 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.

Can I use mix of GSuite and my own server to send emails?

I am hosting my email address, for example, arvind#mydomain.com on Gsuite.
How do I add more addresses in my server such as abc#mydomain.com and use my own server, such as my website to send emails to this user. I created abc#mydomain.com using WHM/cpanel for the domain. I am able to send email from this address but they end in spam folder. Also I am not able to send emails to this address.
I have added Google's server to MX entries and my own server such as mail.mydomain.com. However if I try to send email to abc#mydomain.com it fails with "Address not found".
How can I fix it? I am able to edit DNS entries if required to.

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

Auto delete new mail from cPanel

To save the disk quota, I forwarded all new incoming emails to gmail, unfortunately the mail server keep a copy in inbox. How can I delete all incoming emails after forward while I have the cPanel to manage the server.
See this link or this link on how to delete mail automatically.
If you want to do it manually, one way is to do it from within cPanel. Go to the File Manager, you will see a directory called Mail (on the righthand column).

smtp wont relay messages for hotmail

I have built a site where users can send out messages to other users with similar interests, this is done with smtp on iis6, soon to be iis7.
WHat Im finding though is that every now an then messages dont get through to SOME users with hotmail accounts. Is this something I can sort via iis?
thanks
Check the undelivered mail folder on your SMTP Server. IF the hotmail messages are there then hotmail is refusing delivery from your mail server.
The undelivered aka bounced email folder may also contain delivery notifications if your admin mail forwarding is not setup properly. These will provide more direct information as to the cause of failure.
If both of these fail, setup a script to send a message to a hotmail account and then retrieve it. When the test message fails to be retrieved, the script can then capture DNS resolver cache and other useful info to give you a hint as to what went wrong.