LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-17-2019, 08:49 AM   #1
TokTok
Member
 
Registered: Oct 2019
Posts: 230

Rep: Reputation: Disabled
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.
 
Old 10-29-2019, 11:00 PM   #2
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,372

Rep: Reputation: 51
Question

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.
 
1 members found this post helpful.
Old 10-30-2019, 07:49 AM   #3
TokTok
Member
 
Registered: Oct 2019
Posts: 230

Original Poster
Rep: Reputation: Disabled
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 ?
 
Old 10-30-2019, 10:03 AM   #4
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,760

Rep: Reputation: 2224Reputation: 2224Reputation: 2224Reputation: 2224Reputation: 2224Reputation: 2224Reputation: 2224Reputation: 2224Reputation: 2224Reputation: 2224Reputation: 2224
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.
 
2 members found this post helpful.
Old 10-30-2019, 01:59 PM   #5
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Quote:
Originally Posted by scasey View Post
which would be re-inventing the wheel, it seems.
+1
Just set up a new email account (or 3) and use that.
 
1 members found this post helpful.
Old 10-30-2019, 02:08 PM   #6
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
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.
 
1 members found this post helpful.
Old 10-31-2019, 05:56 AM   #7
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,486

Rep: Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556
Quote:
Originally Posted by scasey View Post
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.
 
1 members found this post helpful.
Old 10-31-2019, 10:04 PM   #8
TokTok
Member
 
Registered: Oct 2019
Posts: 230

Original Poster
Rep: Reputation: Disabled
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 ?
 
Old 10-31-2019, 10:21 PM   #9
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,760

Rep: Reputation: 2224Reputation: 2224Reputation: 2224Reputation: 2224Reputation: 2224Reputation: 2224Reputation: 2224Reputation: 2224Reputation: 2224Reputation: 2224Reputation: 2224
Quote:
Originally Posted by TokTok View Post
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.
 
1 members found this post helpful.
Old 11-01-2019, 03:11 AM   #10
Flyingwoodenhorse
LQ Newbie
 
Registered: Oct 2019
Posts: 10

Rep: Reputation: Disabled
Quote:
Originally Posted by TokTok View Post
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.
 
1 members found this post helpful.
Old 11-01-2019, 04:18 AM   #11
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,760

Rep: Reputation: 2224Reputation: 2224Reputation: 2224Reputation: 2224Reputation: 2224Reputation: 2224Reputation: 2224Reputation: 2224Reputation: 2224Reputation: 2224Reputation: 2224
Quote:
Originally Posted by Flyingwoodenhorse View Post
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.
 
1 members found this post helpful.
Old 11-01-2019, 08:13 AM   #12
TokTok
Member
 
Registered: Oct 2019
Posts: 230

Original Poster
Rep: Reputation: Disabled
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 ?

Last edited by TokTok; 11-01-2019 at 08:14 AM. Reason: Forgot to add something.
 
Old 11-12-2019, 06:11 PM   #13
TokTok
Member
 
Registered: Oct 2019
Posts: 230

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TenTenths View Post
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 ?
 
Old 11-12-2019, 06:22 PM   #14
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,760

Rep: Reputation: 2224Reputation: 2224Reputation: 2224Reputation: 2224Reputation: 2224Reputation: 2224Reputation: 2224Reputation: 2224Reputation: 2224Reputation: 2224Reputation: 2224
Quote:
Originally Posted by TokTok View Post
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.
 
1 members found this post helpful.
Old 11-26-2019, 01:37 PM   #15
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by scasey View Post
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.

Last edited by 273; 11-26-2019 at 01:38 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with shell script when parsing and forwarding email forward Programming 1 06-21-2009 12:32 PM
Mail Forwarding in postfix/maildrop/redhat (like yahoo mail forwarding) topcat Linux - Software 1 08-31-2007 12:10 PM
Simple Port Forwarding Firewall - not forwarding MadTurki Linux - Security 14 04-09-2006 12:08 PM
port forwarding and packet forwarding syrtsardo Linux - Newbie 2 07-03-2003 10:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration