Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 08-21-2008, 06:52 PM   #1
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
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

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

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

Original Poster
Rep: Reputation: 30

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:" -a "Reply-To:" -a "From:"

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.



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 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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:50 PM.

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