LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-04-2002, 03:59 PM   #1
rlkiddjr
Member
 
Registered: Feb 2002
Distribution: FreeBSD 4.9
Posts: 69

Rep: Reputation: 15
Question Sendmail question


When I send an email via sendmail it sends as user@localhost.localdomain. How do you change this? I know you can masquerade the domain name but can it be changed another way. I have two domains so I really can't masquerade.
Thanks for any help,
Lee
 
Old 03-04-2002, 05:05 PM   #2
Scotty2435
Member
 
Registered: Dec 2001
Location: Waco, Texas USA
Distribution: Redhat 7.1
Posts: 232

Rep: Reputation: 30
in KDE you can go to network conifguration and change your hostname from localhost.localdomain to what you want it to be. You can also go to the command line and type
hostname NEWHOSTNAMEHERE

after you do either of these thing you need to change your /etc/hosts file to reflect your new hostname. Don't reboot before you change /etc/hosts
 
Old 03-04-2002, 07:56 PM   #3
chuck77
Member
 
Registered: Nov 2001
Location: singapore
Posts: 120

Rep: Reputation: 15
i also wanna know abt this question. if my server hostname is "abc.million.com" and the email sent out will be "user@abc.million.com". How do i change it to "user@million.com" ???
 
Old 03-04-2002, 10:21 PM   #4
karunesh
Member
 
Registered: Jan 2002
Location: India
Distribution: CentOS/Mandriva
Posts: 126

Rep: Reputation: 15
I think you want an entry in /etc/mail/local-host-names,as


yourdomain.com
mail.yourdomain.com


And also change your domain name in /etc/sendmail.cf.

Djyourdomain.com

 
Old 03-04-2002, 10:21 PM   #5
Scotty2435
Member
 
Registered: Dec 2001
Location: Waco, Texas USA
Distribution: Redhat 7.1
Posts: 232

Rep: Reputation: 30
I know with pine which you can run from the command line by typing well pine you can change your domain like this

after running pine go to setup
and then where it says user domain change that to whatever you want it. This will let you send mail as a bad domain
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail question sysrc Linux - Software 1 06-29-2004 03:19 AM
SendMail Question? gsmonk Linux - Networking 2 02-18-2004 07:05 AM
Sendmail question AMMullan Linux - Software 2 01-10-2004 07:03 PM
sendmail question security_ece Linux - Newbie 0 10-31-2003 08:35 AM
Sendmail question.. williamchen Linux - General 0 03-03-2003 04:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:49 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
Open Source Consulting | Domain Registration