LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 05-03-2004, 02:51 PM   #1
PlatinumRik
Member
 
Registered: Feb 2003
Location: Buffalo, NY
Distribution: Novell Linux Desktop
Posts: 159

Rep: Reputation: 30
Sendmail sending as host.domain.com, i want it to be from just domain.com.


currently mail is being sent like this "user@host.domain.com" i want it to go out from just the domain like this "user@domain.com" how do i make sendmail do this?

Rick
 
Old 05-03-2004, 03:02 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
What is it setup as in your config file?
 
Old 05-03-2004, 05:56 PM   #3
PlatinumRik
Member
 
Registered: Feb 2003
Location: Buffalo, NY
Distribution: Novell Linux Desktop
Posts: 159

Original Poster
Rep: Reputation: 30
divert(-1)
include(`/usr/share/sendmail-cf/m4/cf.m4')
OSTYPE(`linux')
DOMAIN(`mydomain.com')dnl
TURE(always_add_domain)dnl
FEATURE(`masquerade_entire_domain')
FEATURE(`masquerade_envelope')
FEATURE(`allmasquerade')
MASQUERADE_AS(`mydomain.com')
MASQUERADE_DOMAIN(`mydomain.com')
MASQUERADE_AS(mydomain.com)
FEATURE(`mailertable')
FEATURE(relay_entire_domain)dnl
FEATURE(access_db)dnl
FEATURE(`blacklist_recipients')dnl
FEATURE(nouucp,reject)dnl
FEATURE(`redirect')dnl
MAILER(local)dnl
MAILER(smtp)dnl
wlocalhost.localdomain
 
Old 10-07-2004, 11:52 AM   #4
pauljtester
LQ Newbie
 
Registered: Apr 2004
Posts: 28

Rep: Reputation: 15
PlatinumRik -

Did you ever figure this out? I'm having the same prob as you and my conf file looks just abou the same.

Cheers,
PJT
 
Old 10-07-2004, 01:23 PM   #5
Pete M
Member
 
Registered: Aug 2003
Location: UK
Distribution: Redhat 9 FC 3 SUSE 9.2 SUSE 9.3 Gentoo 2005.0 Debian Sid
Posts: 657

Rep: Reputation: 30
pauljtester

Edit /etc/mail/local-host-names

Add yourdomain.com like this

# local-host-names - include all aliases for your machine here.
yourdomain.com

Restart Sendmail

Pete
 
Old 10-07-2004, 04:32 PM   #6
pauljtester
LQ Newbie
 
Registered: Apr 2004
Posts: 28

Rep: Reputation: 15
Pete -

Thanks for your reply. I tried what you mentioned, however, if I just have the domain in there and leave off the hostname, no mail is sent out at all.... Instead I've removed everything from /etc/mail/local-host-names and it's a bit better.

I've also edited the /etc/hosts file so that it's

xxx.xxx.xxx.xxx myhostname mydomainname.com

I had some other garbage in there that was mucking things up. It's still not working properly, but that's not the sendmail problem on my box, it's a problem with the relay it's going through.

Thanks for your help
PJT
 
  


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
Change user@host.domain to user@domain Wynand1 Linux - Networking 7 09-13-2004 11:56 PM
sending mail from my new domain name BU5T4 Linux - Newbie 1 12-12-2003 05:22 PM
postfix : sending local mail without domain iainr Linux - Software 2 12-10-2003 03:05 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 07:53 AM
Sendmail host/domain problem. Tarantismic Yak Linux - General 2 05-08-2001 06:25 PM


All times are GMT -5. The time now is 06:47 PM.

Main Menu
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