Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I'm sure this is an easy question: how do I change the return address to something real when I use 'mail' from the commandline?
I have an external mail server with the account firstname.lastname@example.org. I lease this account. It is a POP and SNTP account. At home I route this using fetchmail so that I read it with kmail. In kmail I have defined the correct email return address. But if I send mail from a script or the commandline this way:
Thanks for the reply, Kevin. But I've searched in vain for a .mailrc setting like you suggest. For example, here is a description of the .mailrc file format, and no mention in it of a way to set the 'replyto' address:
On my system (Suse8.1) there is an /etc/mail.rc file which contains nothing useful that I can see:
set asksub append dot save crt=20
ignore Received Message-Id Resent-Message-Id Status Mail-From Return-Path Via
I have found that in the /etc/postfix/main.cf file, if I change:
I have at least corrected the domain part of both the reply to and from addresses. However, the username is that of my local account (jcunningham), not my mail account (jeffrey). How can I make it prepend my mail account name to the mail domain instead of my local account?
The reason for using mail in my current situation is not preference, its legacy: there are a large body of scripts where I work already set up to use mail to send notifications when certain stages of processing are completed. I don't own all the scripts and don't want to try changing them if I can help it. These scripts are shared and must remain so.
It took me about five minutes to configure mutt to do what I wanted. Something like this is definitely the way to go. Now I have to figure out how to get the other people involved to change the common scripts. Thanks.
I'll look in that direction, Peter.
Thanks. But I succeeded in changing the domain by setting
in /etc/postfix/main.cf. What I haven't figured out yet is how to set the username. It prepends the user account name to the domain for both the replyto and from lines, instead of the username at cunningham.net.