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-23-2007, 09:33 AM   #1
jmorris8
LQ Newbie
 
Registered: Aug 2005
Posts: 15

Rep: Reputation: 0
Sendmail Domain??


I cant figure out how to set my domain/host name in sendmail. my email is sending out as root@host.domain.com (I know I probably shouldnt use root, but its where i did my configuration) I would like the email to say something like xxxxxx@domain.com. Thanks!
 
Old 02-23-2007, 11:51 AM   #2
jmorris8
LQ Newbie
 
Registered: Aug 2005
Posts: 15

Original Poster
Rep: Reputation: 0
Ok, I got my domain name to change to something correct. I still would like to login as root, but send the email as "TestUser" for example.

Also, when I open the emails I sent, the "from" name doesnt even show up.
 
Old 02-23-2007, 12:23 PM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
This depends on the client you are using. Are you using a particular command line mail app? And you really shouldn't be logging in as root, it's insecure. If you want root email to go to another account or user, just create an alias in /etc/mail/aliases or the like..
 
Old 02-23-2007, 12:28 PM   #4
jmorris8
LQ Newbie
 
Registered: Aug 2005
Posts: 15

Original Poster
Rep: Reputation: 0
Ok, I created another account, but I cant seem to change any permissions to edit certain files. This may turn out just fine. I'm using MUTT as a client and its working well so far. Do I specify the "From" address in this config file?

With the aliases, if I created an alias that was "username@mydomain.com" would it look like the email was coming from that address? Thanks.
 
Old 02-23-2007, 12:37 PM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
To set the from address in mutt add this to your .muttrc config file in your home directory:

Code:
# Default from
set from="First Last <user@domain.com>"
Aliases is only set for incoming email, doesn't change the outgoing mail.
 
Old 02-23-2007, 03:17 PM   #6
jmorris8
LQ Newbie
 
Registered: Aug 2005
Posts: 15

Original Poster
Rep: Reputation: 0
This is what I added to the muttrc file in etc/muttrc but the email still shows up without a sender?

# set from "email@mydomain.com"
#
# Name: from
# Type: e-mail address
# Default "email@mydomain.com"
 
Old 03-14-2007, 08:47 AM   #7
jmorris8
LQ Newbie
 
Registered: Aug 2005
Posts: 15

Original Poster
Rep: Reputation: 0
I'm still having this problem. Any ideas?
 
  


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
Sendmail. Can I use IP address instead of domain name? vs_optimist Linux - Newbie 2 04-26-2006 08:19 AM
Sendmail domain configuration don_wombat Linux - Software 5 02-25-2005 12:09 PM
Sendmail sending as host.domain.com, i want it to be from just domain.com. PlatinumRik Linux - Software 5 10-07-2004 05:32 PM
Sendmail needs my real domain name??? ugol Linux - Software 2 06-22-2004 12:04 AM
HELP! Sendmail Config for xxx.domain.com where xxx is not domain, but want act like 1 rld1025 Linux - Newbie 2 09-11-2003 08:53 AM


All times are GMT -5. The time now is 10:46 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration