Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get Gmail mails via SMTP "Send Mail as" in IMAP "Sent" Folder?

Tags:

gmail

I use Gmail with many different Email Accounts like [email protected] - therefore I forward all emails to my Gmail Account and in Gmail I use the "Send Mail as" option, to include my [email protected] and send Emails in the name of that (or others).

Of course I therefore do not use Gmail Server, I use "send through mydomain.com's SMTP Servers" so that nobody will see the difference.

In the past, if I use an IMAP Tool like Outlook, Emails send with Outlook for [email protected] get also on my server in the "Sent" Folder (same as Inbox syncronisation).

IS there any way, that the emails send via Gmail will also be "duplicated" on my servers "IMAP" folders?

Reason: if I ever switch away from Gmail, I not only want all my received emails save in my servers inbox, I also want duplicates of my sent mails.

like image 647
Bob Avatar asked Dec 07 '25 16:12

Bob


1 Answers

IMAP is only for managing emails on the server. It cannot be used for sending emails. That must be done with SMTP. SMTP has no concept of IMAP, and most (if any) SMTP servers do not automatically copy a sent email into an IMAP "Sent" folder. So when programmably sending an email via SMTP, you usually have to log in to the associated IMAP account and manually copy the sent email into the "Sent" folder yourself. IMAP tools like Outlook do exactly that. And there is an IMAP extension (RFC 6154) that many IMAP servers implement (Gmail does) for identifying the "Sent" folder regardless of how it is actually named.

like image 86
Remy Lebeau Avatar answered Dec 10 '25 01:12

Remy Lebeau



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!