LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   2 way email forwarding script for linux ? (https://www.linuxquestions.org/questions/linux-software-2/2-way-email-forwarding-script-for-linux-4175662683/)

TokTok 10-17-2019 08:49 AM

2 way email forwarding script for linux ?
 
Does anybody know of a script that will forward both ways in a email conversation so real primary email stays private ? Normally it is just one way that i knowq but i`m having a hard time finding a script to do it, if a domain is needed it`s ok, no problem there. I could pay for a service online but why bother when the intent is to remain private. Hopefully free / open source.

dedec0 10-29-2019 11:00 PM

Do you really need a script to do that? I use that kind of thing, but i have nothing special at the machines i use. There are free mail providers who will allow you to use a different address when sending messages.

This right is given to you after you prove the other address is yours. I have an account at Yahoo, for example. And with it, i can send messages from 3 addresses: the actual Yahoo account; two other accounts i have around, but found confortable to configure their messages to be forwarded to this Yahoo account. And this "alien use" is normal both from the webmail interface or the IMAP/SMTP access of the account.

TokTok 10-30-2019 07:49 AM

I`m aware of yahoo-google & others allowing to forward mail but i don`t like either, no respect for user privacy, yaho might be the worst-they have / sell api access that gives complete access to your email, contact`s and everything else, wheather google does i don`t know i don`t use it but this was taken from yahoo web site a few years back so nothing is private even though you think it is.
Back to email, could it be done with ThunderBird or some other client ? There are a few company`s that charge for it but i don`t like to pay for something like that. Do you know of any scripts on GitHub or SourceForge that are un-complicated to use-install ?

scasey 10-30-2019 10:03 AM

What dedec0 describes should be do-able with any email account, free or paid. "Forging" a From: address is trivial with most any email client, and most email servers won't care that you're doing it once you're authorized to send email from that server by logging into it. I do it with Thunderbird all the time on my email server.

There are a some caveats:
First, yahoo/AOL/Oath/Verizon (all the same company now) Will not deliver mail to a yahoo/AOL address if the From says yahoo or AOL but the mail didn't come from one of their servers. So, if the From: is forged to be From yahoo, it won't get delivered to yahoo. Probably not an issue in your case, since why would you use some other mail server and then forge a yahoo address, given your stance.

Second, while you can forge a From: address, and add a Reply-to: address that's different from the From:, the headers of the email will always indicate the server(s) that processed it, from the originating ISP to the delivering server, and any servers that processed the email between the two. They won't necessarily identify the actual user -- although they might -- but one can always identify the delivering server.

That said, I'm not at all clear what you're asking otherwise. What you seem to want is a "script" that functions as an email client, which would be re-inventing the wheel, it seems.

descendant_command 10-30-2019 01:59 PM

Quote:

Originally Posted by scasey (Post 6052260)
which would be re-inventing the wheel, it seems.

+1
Just set up a new email account (or 3) and use that.

273 10-30-2019 02:08 PM

I'm not sure why email is required for this? Something like Signal will encrypt communications and traffic analysios can be defeated by VPN or similar.

TenTenths 10-31-2019 05:56 AM

Quote:

Originally Posted by scasey (Post 6052260)
the headers of the email will always indicate the server(s) that processed it, from the originating ISP to the delivering server, and any servers that processed the email between the two.

Not strictly correct, any server in the chain can delete (or, for that matter, add) headers. Most commonly it's used where mail is passed among a number of internal systems / mail relays and these internal headers are stripped by the "exiting" MTA.

TokTok 10-31-2019 10:04 PM

The main objective is to preserve primary address privacy, mail server i could care less about only protecting primary-real address from being identified. This can be done with Thunderbird ?

scasey 10-31-2019 10:21 PM

Quote:

Originally Posted by TokTok (Post 6052806)
The main objective is to preserve primary address privacy, mail server i could care less about only protecting primary-real address from being identified. This can be done with Thunderbird ?

Yes.

Flyingwoodenhorse 11-01-2019 03:11 AM

Quote:

Originally Posted by TokTok (Post 6052806)
This can be done with Thunderbird ?

I have not used it this before,but i hope you can try this so that we can know if it works.

scasey 11-01-2019 04:18 AM

Quote:

Originally Posted by Flyingwoodenhorse (Post 6052863)
I have not used it this before,but i hope you can try this so that we can know if it works.

It works.
I have ~30 email addresses aliased to my “primary” email address. One example: my bank. They have an email address that no one else has. Any email to that address must come from my bank. More importantly, any email that purports to be from my bank that’s NOT to that address is a phishing email, because that’s the only address my bank has.

For the “two way” thing the OP wants, they must have a real, “non-primary” email address to receive replies.

TokTok 11-01-2019 08:13 AM

scasey >> For the “two way” thing the OP wants, they must have a real, “non-primary” email address to receive replies.
But would it look like it came from the same address "qwer@qwer.com" going both ways "in-received / out-replied to" ?
Ps. Using Thunderbird, Correct ?

TokTok 11-12-2019 06:11 PM

Quote:

Originally Posted by TenTenths (Post 6052551)
Not strictly correct, any server in the chain can delete (or, for that matter, add) headers. Most commonly it's used where mail is passed among a number of internal systems / mail relays and these internal headers are stripped by the "exiting" MTA.

So how would this be done ( delete or add headers / ip address ) or is it already done with Thunderbird or something else using both linux-windows ? Know of any T-bird Plugins ?

What about WordPress ? Any plugins for it ?

scasey 11-12-2019 06:22 PM

Quote:

Originally Posted by TokTok (Post 6056978)
So how would this be done ( delete or add headers / ip address ) or is it already done with Thunderbird or something else using both linux-windows ? Know of any T-bird Plugins ?

What about WordPress ? Any plugins for it ?

It’s done by the MTAs (mail servers) through which the email passes. It has nothing to do with MUAs like Thunderbird.
WordPress would interact with an MTA.
Yes there are plugins to help with that. Search in WordPress for those.

273 11-26-2019 01:37 PM

Quote:

Originally Posted by scasey (Post 6052878)
It works.
I have ~30 email addresses aliased to my “primary” email address. One example: my bank. They have an email address that no one else has. Any email to that address must come from my bank. More importantly, any email that purports to be from my bank that’s NOT to that address is a phishing email, because that’s the only address my bank has.

For the “two way” thing the OP wants, they must have a real, “non-primary” email address to receive replies.

I have a similar setup where email to an address not relating to a mailbox I have registered sends them to an admin address. It works well and, as you mentioned, highlights spammers.
Unfortunately, the email sent from Linux Questions fails when trying to send to such an address, so I have no email updates. So, yes, it's a great solution but some sites may send email via services which won't allow sending to a "catch-all" address more than a few times.


All times are GMT -5. The time now is 05:48 PM.