LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 02-05-2006, 03:22 PM   #1
Zeno McDohl
Member
 
Registered: Apr 2005
Location: Saratoga, NY
Distribution: Slackware
Posts: 316

Rep: Reputation: 30
Change email address?


My mail server is working, but how would I set the email name? I don't have a domain. When it sent an [automatic] email, the email address was from: root@linux_zeno.localdomain
 
Old 02-05-2006, 03:39 PM   #2
Netizen
Member
 
Registered: Sep 2003
Location: Texas
Distribution: Slackware and Ubuntu
Posts: 355

Rep: Reputation: 30
and the email client you are using is..................
 
Old 02-05-2006, 03:40 PM   #3
Zeno McDohl
Member
 
Registered: Apr 2005
Location: Saratoga, NY
Distribution: Slackware
Posts: 316

Original Poster
Rep: Reputation: 30
What? I'm not using X or anything... this is a server...
 
Old 02-05-2006, 03:46 PM   #4
Netizen
Member
 
Registered: Sep 2003
Location: Texas
Distribution: Slackware and Ubuntu
Posts: 355

Rep: Reputation: 30
oh right...evidently didn't catch on this is a script or program sending the email. Well, your mail program that sends the email is going to use root@<whatever your hostname is> in most cases.

Have you edited the 127.0.0.1 line in the /etc/hosts file?
 
Old 02-05-2006, 03:49 PM   #5
Zeno McDohl
Member
 
Registered: Apr 2005
Location: Saratoga, NY
Distribution: Slackware
Posts: 316

Original Poster
Rep: Reputation: 30
This?
Code:
127.0.0.1               localhost
I don't think that'll matter. It'll probably still send from root@whatever.

I just want to change the default email to one I have, like my gmail one.
 
Old 02-05-2006, 04:47 PM   #6
Netizen
Member
 
Registered: Sep 2003
Location: Texas
Distribution: Slackware and Ubuntu
Posts: 355

Rep: Reputation: 30
Quote:
Originally Posted by Zeno McDohl
This?
I don't think that'll matter. It'll probably still send from root@whatever.
right.
Quote:
I just want to change the default email to one I have, like my gmail one.
If a program is generating the email, like Logwatch, then there may be a place to specify the account to send the email from in the conf files. If a script you wrote is sending the email, you can use a program like mail to generate the email with whatever "from" address you want. Both easy to do.

If you want to have your gmail account be the default no matter what is sent. Then you will want to reconfigure sendmail to rewrite the "from" address. If you are using slackware it will be sendmail, if you are using another distro, it may not be sendmail, but exim or something else. Either way you will want to consult the documentation on the program. Sendmail's configuration is not known as the most friendly, and configuring it to rewrite the from address is not something i have ever done.
 
Old 02-05-2006, 04:57 PM   #7
Zeno McDohl
Member
 
Registered: Apr 2005
Location: Saratoga, NY
Distribution: Slackware
Posts: 316

Original Poster
Rep: Reputation: 30
Hmm. Probably best not to change the default for everything. I found the script, but it's in perl and I don't understand it.
Code:
system ("mail -s \"Phantasia 4 Account Information\" $ARGV[2] < /tmp/$ARGV[2].mail");
That's the line that sends it. I need to use -r right? Would this work?
Code:
system ("mail -r "blahblah@gmail.com" -s \"Phantasia 4 Account Information\" $ARGV[2] < tmp/$ARGV[2].mail");
 
  


Reply


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
how do i change to my new email address? ChrisRob General 2 01-16-2005 04:07 PM
Change from email address exim chestnut Linux - Software 3 06-22-2004 07:23 AM
Creating A Second Email Address For Email Account On Sendmail treedstang Linux - Software 1 04-27-2004 11:31 PM
email to more address at once mairul Linux - Newbie 4 03-18-2004 01:19 AM
sending an email to a email address after a perl operation meluser Programming 9 04-07-2003 02:26 PM


All times are GMT -5. The time now is 05:53 PM.

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