Changing headers of outbound messages

Changing headers of outbound messages

am 03.06.2005 00:38:52 von Steve

Hello

I would like to change the FROM/REPLY-TO headers of outgoing messages
to a specific address. I already use Procmail to change headers of
some incoming messages, but I don't know how to do outbound.

Regards,
Steve :)

Re: Changing headers of outbound messages

am 03.06.2005 01:11:23 von Alan Connor

On comp.mail.misc, in <1117751932.025819.321190@o13g2000cwo.googlegroups.com>, "Steve" wrote:

>
>
> Hello
>
> I would like to change the FROM/REPLY-TO headers of outgoing
> messages to a specific address. I already use Procmail to
> change headers of some incoming messages, but I don't know how
> to do outbound.
>
> Regards, Steve :)
>

Someone who is attempting to obscure his posting history on
the Usenet by using a common first name for an alias should
not be given such information.

Oh. And stay out of my mailboxes. That's an order and
I can enforce it.

AC



--
alanconnor AT earthlink DOT net
Use your real return address or I'll never know you
even tried to mail me. http://tinyurl.com/2t5kp
~

Re: Changing headers of outbound messages

am 03.06.2005 01:17:08 von Sam

This is a MIME GnuPG-signed message. If you see this text, it means that
your E-mail or Usenet software does not support MIME signed messages.

--=_mimegpg-commodore.email-scan.com-3577-1117754230-0003
Content-Type: text/plain; format=flowed; charset="US-ASCII"
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Steve writes:

> Hello
>
> I would like to change the FROM/REPLY-TO headers of outgoing messages
> to a specific address. I already use Procmail to change headers of
> some incoming messages, but I don't know how to do outbound.

When you send a message, your E-mail client connects to your defined mail
servers and sends the message using SMTP.

The easiest way to do this is to reconfigure your E-mail client to generate
the E-mail message with the headers set the way you want to. Otherwise you
will need to check the documentation for your mail server to see if it
offers a way to change the headers. Not all mail servers have the ability
to do so, and the exact procedure is specific to your mail server.



--=_mimegpg-commodore.email-scan.com-3577-1117754230-0003
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQBCn5N2x9p3GYHlUOIRAi2hAJ9SwbHdsMZrHd+cR1g4vRWsJ1QSNQCf WDAP
dVGUliFe8dthXbEFCWzHB8k=
=xmcx
-----END PGP SIGNATURE-----

--=_mimegpg-commodore.email-scan.com-3577-1117754230-0003--

FAQ: Canonical list of questions Beavis refuses to answer (V1.30) (was Re: Changing headers o

am 03.06.2005 01:51:59 von Sam

This is a MIME GnuPG-signed message. If you see this text, it means that
your E-mail or Usenet software does not support MIME signed messages.

--=_mimegpg-commodore.email-scan.com-3577-1117756322-0005
Content-Type: text/plain; format=flowed; charset="US-ASCII"
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Usenet Beavis writes:

> Someone who is attempting to obs *SLAP*

Beavis! Long time no see!! What'cha been doing all this week? Visiting
Bigfoot?

> Oh. And stay out of my mailboxes. That's an order and
> I can enforce it.

Beavis, my boy! You still haven't answered question #11 from the following
list.

FAQ: Canonical list of questions Beavis refuses to answer (V1.30)

This is a canonical list of questions that Beavis never answers. This FAQ is
posted on a semi-regular schedule, as circumstances warrant.

For more information on Beavis, see:

http://angel.1jh.com/nanae/kooks/alanconnor.shtml

Although Beavis has been posting for a long time, he always remains silent
on the subjects enumerated below. His response, if any, usually consists of
replying to the parent post with a loud proclamation that his Usenet-reading
software runs a magical filter that automatically identifies anyone who's
making fun of him, and hides those offensive posts. For more information
see question #9 below.

============================================================ ================

1) If spammers avoid forging real E-mail addresses on spam, then where do
all these bounces everyone reports getting (for spam with their return
address was forged onto) come from?

2) If your Challenge-Response filter is so great, why do you still munge
when posting to Usenet?

3) Do you still believe that rsh is the best solution for remote access?
(http://tinyurl.com/5qqb6)

4) What is your evidence that everyone who disagrees with you, and thinks
that you're a moron, is a spammer?

5) How many different individuals do you believe really post to
comp.mail.misc? What is the evidence for your paranoid belief that everyone,
except you, who posts here is some unknown arch-nemesis of yours?

6) How many times, or how often, do you believe is necessary to announce
that you do not read someone's posts? What is your reason for making these
regularly-scheduled proclamations? Who do you believe is so interested in
keeping track of your Usenet-reading habits?

7) When was the last time you saw Bigfoot (http://tinyurl.com/23r3f)?

8) If your C-R system employs a spam filter so that it won't challenge spam,
then why does any of the mail that passes the filter, and is thusly presumed
not to be spam, need to be challenged?

9) You claim that the software you use to read Usenet magically identifies
any post that makes fun of you. In http://tinyurl.com/3swes you explain
that "What I get in my newsreader is a mock post with fake headers and no
body, except for the first parts of the Subject and From headers."

Since your headers indicate that you use slrn and, as far as anyone knows,
the stock slrn doesn't work that way, is this interesting patch to slrn
available for download anywhere?

10) You regularly post alleged logs of your procmail recipe autodeleting a
bunch of irrelevant mail that you've received. Why, and who exactly do you
believe is interested in your mail logs?

11) How exactly do you "enforce" an "order" to stay out of your mailbox,
supposedly (http://tinyurl.com/cs8jt)? Since you issue this "order" about
every week, or so, apparently nobody wants to follow it. What are you going
to do about it?

12) What's with your fascination with shit? (also http://tinyurl.com/cs8jt)?

13) You complain about some arch-nemesis of yours always posting forged
messages in your name. Can you come up with even a single URL, as an example
of what you're talking about?



--=_mimegpg-commodore.email-scan.com-3577-1117756322-0005
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQBCn5uix9p3GYHlUOIRAjc8AJ94sui1dUOWq4df/alBFHjisrTSaQCe K39H
yFszaIOV+/WVh/zZvHYXwDo=
=SFFO
-----END PGP SIGNATURE-----

--=_mimegpg-commodore.email-scan.com-3577-1117756322-0005--

Re: Changing headers of outbound messages

am 03.06.2005 03:07:51 von Steve

FFS Alan, get over yourself. Please don't concern yourself with my
posting habits, and please don't reply unless you can be of any help.

'nuff said.

Steve :)
PS. I'm not obscuring anything, just an occasional poster through
Google.

Re: Changing headers of outbound messages

am 03.06.2005 03:10:01 von Steve

Thanks Sam. My mail client (for better or worse) is OE, I was hoping
when I sent the mail to my ISP, it would also get channelled through
Procmail or a similar daemon which I could apply rules too. I'll check
with my ISP to see what they do with it.

Steve :)

Re: Changing headers of outbound messages

am 07.06.2005 10:49:43 von Frank Slootweg

Steve wrote:
> Hello
>
> I would like to change the FROM/REPLY-TO headers of outgoing messages
> to a specific address. I already use Procmail to change headers of
> some incoming messages, but I don't know how to do outbound.

Please tell a little more about you client (computer) setup. You
mention procmail and OE. Than is an uncommon, but not impossible (see my
headers) combination.

Just to be sure, you mean the "From:"/"Reply-To:" ((normally) mixed
case and colon) *headers*, not the FROM: SMTP command, don't you?

If so, OE can already set From: and Reply-To: to anything you like
(Tools -> Accounts... -> Mail -> click on account -> Properties ->
General -> Name:, E-mail address: and Reply address:). Of course it is
quite possible that your ISP/MSP overrides these settings, but if so,
there's nothing you can do about it on your side.

Re: Changing headers of outbound messages

am 07.06.2005 13:56:49 von Steve

Thanks Frank

In actual fact, I found a solution which works but is a bit basic...

I send the email to a particular address at my domain, and when
procmail sees it, I pipe it through 'sed' to change the From: header as
required, and remove the Reply-To: header completely, then pipe that to
'sendmail' to the address I wanted it to go to in the first place. Eg:

:0
* ^X-Original-To:.software-support@mydomain\.com
| sed -e 's/^From:.*/From: "Joe Bloggs" /1' \
-e 's/^Reply-To:.*//1' \
| $SENDMAIL "$SENDMAILFLAGS" software-support@somecompany.co.uk

Now, although I can make recipes for all different groups I post to, my
next step would be to make an alias file, and parse that for the
original To: address, the new From: header and forwarding address. If
you know how to do this, please be forthcoming, otherwise it's my
project for the next week or two.

Many thanks for your reply.
Steve :)

Re: Changing headers of outbound messages

am 15.06.2005 22:26:29 von Hans-Peter Sauer

Alan Connor wrote:
> On comp.mail.misc, in <1117751932.025819.321190@o13g2000cwo.googlegroups.com>, "Steve" wrote:
>
>
>>
>>Hello
>>
>>I would like to change the FROM/REPLY-TO headers of outgoing
>>messages to a specific address. I already use Procmail to
>>change headers of some incoming messages, but I don't know how
>>to do outbound.
>>
>>Regards, Steve :)
>>
>
>
> Someone who is attempting to obscure his posting history on
> the Usenet by using a common first name for an alias should
> not be given such information.
>
> Oh. And stay out of my mailboxes. That's an order and
> I can enforce it.
>
> AC
>
>
>

Are you trying to tell us Alan is not a **COMMON** first name? .That
Connor is not a *COMMON* surname?

Who are you to dictate what names other people should post under?
People like you should be put down for the sake of humanity.

Re: Changing headers of outbound messages

am 15.06.2005 23:46:58 von Sam

This is a MIME GnuPG-signed message. If you see this text, it means that
your E-mail or Usenet software does not support MIME signed messages.

--=_mimegpg-commodore.email-scan.com-7818-1118872020-0008
Content-Type: text/plain; format=flowed; charset="US-ASCII"
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Xerxes Ximones writes:

> Are you trying to tell us Alan is not a **COMMON** first name? .That
> Connor is not a *COMMON* surname?
>
> Who are you to dictate what names other people should post under?

He's our Beavis.

Just go to http://groups-beta.google.com/ and search for "Usenet Beavis".
Pretty much all you need to know.

> People like you should be put down for the sake of humanity.

Or in a zoo.


--=_mimegpg-commodore.email-scan.com-7818-1118872020-0008
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQBCsKHUx9p3GYHlUOIRAo1eAJ4/rvJZqVdPmwh3SwmxGreBICldPgCf Zorm
b8vK0VWDRc6KZMpdELOLvfE=
=gPXT
-----END PGP SIGNATURE-----

--=_mimegpg-commodore.email-scan.com-7818-1118872020-0008--

Re: Changing headers of outbound messages

am 21.06.2005 19:39:37 von bonomi

In article <1118145409.639044.316370@g43g2000cwa.googlegroups.com>,
Steve wrote:
>Thanks Frank
>
>In actual fact, I found a solution which works but is a bit basic...
>
>I send the email to a particular address at my domain, and when
>procmail sees it, I pipe it through 'sed' to change the From: header as
>required, and remove the Reply-To: header completely, then pipe that to
>'sendmail' to the address I wanted it to go to in the first place. Eg:
>
>:0
>* ^X-Original-To:.software-support@mydomain\.com
>| sed -e 's/^From:.*/From: "Joe Bloggs" /1' \
> -e 's/^Reply-To:.*//1' \
> | $SENDMAIL "$SENDMAILFLAGS" software-support@somecompany.co.uk
>
>Now, although I can make recipes for all different groups I post to, my
>next step would be to make an alias file, and parse that for the
>original To: address, the new From: header and forwarding address. If
>you know how to do this, please be forthcoming, otherwise it's my
>project for the next week or two.

If you have sendmail running on the local box, then you can hook a "milter"
up that will do all this stuff automatically. You need to know how to
write acutal programs, to do the necessary stuff -- or hire somebody to
do it.

Beware your 'sed' script above has problems. It turns the 'Reply-To'
header into a *blank*line*. anything after where that header was will
be perceived as part of the message -body-, not a header.