Changing From: address in trn

Add a line to your .trn/trnrc file in the [environment] section, like:
(substitute "Full Name" with something reasonable and the word "username" with your own username)

[environment]
FROM="Full Name <username@blackhole.nyx.net>"

You might also want to define an environment variable named NO_ORIGINATOR to prevent your email address from leaking out through the Originator: header.

Apparently, this only works with the Solaris version: Trn version: 4.0-test76 (Apr 2, 2001).

In Bourne shells (sh, zsh, bash, etc.)
NO_ORIGINATOR=1
export NO_ORIGINATOR
In C-shells (csh, tcsh)
setenv NO_ORIGINATOR 1

References:

Spam Control at Nyx


Casper Maarbjerg, 2004-12-09