Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Senmail/Mail Prob

Status
Not open for further replies.

Boolman

Programmer
Mar 7, 2001
5
US
Well here it is...I went through the steps to configure my sendmail too...you guessed it...send mail. Good news is it worked, Bad news is it waits exactly one minute before sending...I have it set up to go through a router, but I believe it is trying to use itself first then times out and uses what its supposed to. It is mainly an inconvenience, but I would like it fixed. Just as a side note I went through the quick setup in mailsetup, and used LOCAL for my host name.

The following three lines are repeated everytime I send a message in the logfile...

sendmail[4248]: alias database /var/adm/sendmail/aliases.pag out of date
sendmail[4422]: My unqualified host name (MYHOST) unknown; sleeping for retry
sendmail[4422]: unable to qualify my own domain name (MYHOST) -- using short name

Any ideas??
 
The output is talking about two seperate things I think.

1 - The aliases database, rebuild that by logging in as root and running the 'newaliases' command.

2 - Host name. Looks as though you may have missed a step in setting your hostname.

try these two commands, they should both return the name of your host

uname -n
hostname

Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
 
Well, I used the newaliases command and that yielded this error...

WARNING: local host name (MYHOST) is not qualified; fix $j in config file
WARNING: writable directory /var

I must assume that this is the root of the problem...thanks for the help. Any tips on setting up aliases?

 
Boolman,

I don't think you have an aliases problem really -- well you do, but never mind about that for the moment.

Sendmail:

First off. I'm not enough of a sendmail person to guide you properly.

If it were *me* in this situation I would look in the sendmail.cf file (somewhere in or below /etc) and find $j. It's almost certainly something to do with your local host name and its domain.

Can you ping/telnet/ftp Ok to this machine from other places on your network? Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
 
Try setting the FQDN of your machine the first field after the IP address in [tt]/etc/hosts[/tt]

I hope it works...
 
I have a problem with my send mail after an upgrade from 2.6 to 7. It sends mail internally but not to my email address outside of server. Any suggestions?
 
Boolman, I have been going through something like this - and teser - same problem. In your sendmail.cf, there should be a macro j$ (kinda' shown below). Uncomment this line, and replace the domain name after the j$w with your .domain.com. Does that make sense?

# Change the following line:
# #Dj$w.Foo.COM
# to
# Dj$w.yourdomain.com

I have been fighting with sendmail.cf for 2 days now on how to get the email "FROM" address just right for our Exchange servers to accept this email, external from the UNIX box.

Regards.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top