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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can't send mail! 4

Status
Not open for further replies.

khalidaaa

Technical User
Jan 19, 2006
2,323
BH
Hi all,

I can't send an email from root :(

When i do so i get this message:

Code:
# mail root
Subject: test msg
test body
Cc: 

# hash map "Alias0": missing map file /etc/mail/aliases.db: World writable directory
dbm map "Alias0": missing map file /etc/mail/aliases: A file or directory in the path name does not exist.

I have alot of files in the /var/spool/mqueue which i think related to this above error!

Any idea how to solve this issue? I can easily send msgs outside the box but not inside!

I don't know what is missing?!?

Regards,
Khalid
 
here is what i get when i try to build a new db for aliases

Code:
# sendmail -bi
WARNING: World writable directory /var
WARNING: Group writable directory /var/spool
WARNING: Group writable directory /var/spool/mqueue
WARNING: World writable directory /etc
hash map "Alias0": missing map file /etc/mail/aliases.db: World writable directory
dbm map "Alias0": missing map file /etc/mail/aliases: A file or directory in the path name does not exist.
WARNING: cannot open alias database /etc/mail/aliases
Cannot create database for alias file /etc/mail/aliases: A system call received a parameter that is not valid.

 
First resolve your too "liberal" rights it may be the solution
 
WARNING: World writable directory /etc
On a general security note this is not good. Even if it is not the cause of your mail issues you should fix this. I would suggest you run
Code:
chmod 755 /etc
asap!

Ceci n'est pas une signature
Columb Healy
 
I suggest that is the same failure I had once:

Try:

chmod 755 /var/spool
chmod 750 /var/spool/mqueue

/usr/sbin/newaliases

Hope this helps!

mad

Advanced Interactive eXecutable
 
See thread52-1105963

Mike

"Whenever I dwell for any length of time on my own shortcomings, they gradually begin to seem mild, harmless, rather engaging little things, not at all like the staring defects in other people's characters."
 
Thank you guys for the tips. I'm sure when i go tomorrow to work, i will be happy to apply all the recommendation

Mike is checked that link previously but i couldn't see a solution over there! could you point it out to me?

Cheers
Khalid
 
madmurdock I did what you suggested but with no use! my files had the permissions already!

Code:
# ls -al /var/spool
total 344
drwxrwxr-x  13 bin      bin            4096 Mar 28 2006  .
drwxrwxrwx  24 bin      bin            4096 Mar 28 2006  ..
drwxrwx---   2 root     system       163840 Jan 23 10:26 mqueue
 
i've done all the suggestion above

Code:
# chmod 755 /var/spool

# chmod 750 /var/spool/mqueue

# /usr/sbin/newaliases
WARNING: World writable directory /var
/etc/mail/aliases: 4 aliases, longest 9 bytes, 57 bytes total

# chmod 755 /var

# /usr/sbin/newaliases
/etc/mail/aliases: 4 aliases, longest 9 bytes, 57 bytes total

Now its working :) Thanks guys

But i'm still having along list in /var/spool/mqueue! can i just delete them? what's the implication in doing so?

I'm wondering how did this solve the situation! it was working long time ago and now it is suddenly not!

Regards,
Khalid
 
oh my god I just descovered that all the emails were staying in /var/spool/mqueue! now i have them in the root mail box!

I guess this happened because we had problems with the compay email last few days!

stars deserved :)

Regards,
Khalid
 
you can run:

sendmail -q

to process mqueue again

-q [ Time ]
Processes saved messages in the queue at the intervals specified
by the Time variable. If the Time variable is not specified, this
flag processes the queue at once.


It is also sefe to delete not needed messages from mqueue directory.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top