LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 08-21-2008, 06:52 PM   #1
donnied
Member
 
Registered: Oct 2006
Distribution: Debian x64
Posts: 198

Rep: Reputation: 30
CLI how to change Return-Path in mail


I'm trying to send an email to work but my home domain is blocked. (Apparently they block dyndns addresses.)

When using mail -a " " how do I change the Return-Path?
Or is there another way (without changing the exim config file)?

I've tried
mail -a "Return-Path:me@work" -a "Return-To:me@work" -a "from:me@work" me@work

Last edited by donnied; 08-21-2008 at 06:55 PM.
 
Old 08-22-2008, 03:07 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,983
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
Ummm .. this won't achieve anything, because it won't impact on
the IP address you're sending from.


Cheers,
Tink
 
Old 08-22-2008, 05:10 PM   #3
donnied
Member
 
Registered: Oct 2006
Distribution: Debian x64
Posts: 198

Original Poster
Rep: Reputation: 30
*grin*

You'd think that wouldn't you? You think that surely they would do many things. My domain is blacklisted from the place I work, but a made up domain that in no way matches my ip and can't even get bounced back works. (And this is better than it was.)

The format would be:
mail -a "Return-Path: me@work.net" -a "Reply-To: me@work.net" -a "From: me@work.net" me@work.net

with a space between the colon and the address.

To truly change the return-path, you'll need to edit /etc/email-addresses. (If you're using exim.)

Last edited by donnied; 09-06-2008 at 04:56 PM.
 
  


Reply

Tags
mail


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Postfix change return-path and writing own script for master.cf alitrix Linux - Server 7 07-25-2008 12:49 PM
bash - return home path babag Programming 2 06-01-2008 04:59 PM
Sendmail re-writing return path hammer65 Linux - Software 1 02-01-2007 10:59 AM
php mail script return path richard22 Linux - Software 1 08-22-2003 04:10 AM
Sendmail return path dj_relentless Linux - General 2 06-07-2002 06:40 AM


All times are GMT -5. The time now is 07:03 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration