LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 06-17-2008, 01:07 PM   #1
davidedwardgill
Member
 
Registered: Apr 2008
Location: Michigan
Distribution: RedHat EE 5
Posts: 37

Rep: Reputation: 15
Sendmail /try smtp username showing @localdomain ?


Hello

When I start sendmail up in test mode, and run the
sendmail -bt
/trflags HS
/try smtp UserName

it shoots out the following:

Trying header sender address DavidGill for mailer smtp
canonify input: DavidGill
Canonify2 input: DavidGill
Canonify2 returns: DavidGill
canonify returns: DavidGill
1 input: DavidGill
1 returns: DavidGill
HdrFromSMTP input: DavidGill
PseudoToReal input: DavidGill
PseudoToReal returns: DavidGill
MasqSMTP input: DavidGill
MasqSMTP returns: DavidGill < @ *LOCAL* >
MasqHdr input: DavidGill < @ *LOCAL* >
canonify input: david . gill @ *LOCAL*
Canonify2 input: david . gill < @ *LOCAL* >
Canonify2 returns: david . gill < @ *LOCAL* >
canonify returns: david . gill < @ *LOCAL* >
MasqHdr returns: david . gill < @ localhost . localdomain . >
HdrFromSMTP returns: david . gill < @ localhost . localdomain . >
final input: david . gill < @ localhost . localdomain . >
final returns: david . gill @ localhost . localdomain
Rcode = 0, addr = david.gill@localhost.localdomain

What in the world am I doing wrong? It splits up the user ID from the generics table but it doesn't realize the domain name.

I am not using virtusertable, is this the cause of this problem. I am setting this up from Craig Hunts Linux Network Servers book. He doesn't mention using virtusertables...
 
Old 06-17-2008, 11:02 PM   #2
d3ckard
LQ Newbie
 
Registered: May 2007
Posts: 13

Rep: Reputation: 0
give your host a proper fully qualified hostname, make sure the system boots with it and then set that in your /etc/host file so that daemons that start up and try to find out who they are have an immediate place to resolve this info. Make sure your DNS resolvers send back the same matching info. Otherwise sendmail and other apps will default out to localhost.. your /etc/hosts file should end up looking something like:

127.0.0.1 localhost.localdomain localhost
1.2.3.4 myhostname.domain.com myhostname

>sender address DavidGill
is suspicious - shouldn't that be a real email address?

HTH
 
Old 06-26-2008, 11:39 AM   #3
davidedwardgill
Member
 
Registered: Apr 2008
Location: Michigan
Distribution: RedHat EE 5
Posts: 37

Original Poster
Rep: Reputation: 15
That fixed the problem with it using local host rather than the domain name.

THANKS!
 
  


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
prstat and ps -ef showing different username binary_0011 Solaris / OpenSolaris 3 11-01-2006 01:41 AM
sendmail from address is root@localhost.localdomain procfs Linux - Software 9 09-26-2006 10:42 AM
Sendmail--changing domain from localhost.localdomain andrewstr Linux - Software 3 02-21-2006 01:19 PM
sendmail using localhost.localdomain joe.biz Linux - Software 1 10-27-2005 05:47 PM
sendmail and @localhost.localdomain deadlock Linux - Networking 4 12-17-2003 08:08 AM


All times are GMT -5. The time now is 07:27 AM.

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