Hello all,

I need a way to set the 'From' address in a email sent from the command-line using the 'mail' program (the BSD version I think, whatever Red Hat / Fedora is using). I imagine that this program uses the local mail service (postfix in this case), so a configuration there would be fine.

I know that in exim there's a file called /etc/email-addresses that holds mappings from user names to real addresses. If there is something for postfix that does that same thing that would be ideal.

Heck, even if I could manually set the Reply-To: field using 'mail' (perhaps some directive in mail.rc?) that would be sufficient. I've scoured the man page a couple of times, but it's a little muddled because 'mail' is also used for reading mail.

I know I could probably write a perl script to do this, but this isn't for me, and it needs to be something simple I can teach and then walk away from.

Thanks in advance,

Andrew

____________________
BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to