LinuxQuestions.org
Help answer threads with 0 replies.
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 03-16-2004, 06:25 PM   #1
davidks1977
LQ Newbie
 
Registered: Mar 2004
Posts: 3

Rep: Reputation: 0
Problem using "newaliases" to update sendmail alias file


I am getting pretty frustrated with this, perhaps someone can shed some light..

I am simply trying to update my alias file for sendmail. I run "newaliases" and it seems to run without any issues. However, my aliases.db file never updates to match my aliases text file. I have checked, and double checked the sendmail.cf to make sure I have the aliases file in the correct location, which I do. I am fairly new at this so I could easily be overlooking something extremely simple!

I am running sendmail on Redhat currently.

This is what I am doing:

1. editing the aliases file located at /etc/aliases
2. running "newaliases" and ran "sendmail -bi" for the hell of it
3. even restart my sendmail services using "service sendmail restart"
4. look at the aliases.db and bang my hand against my head because it doesn't update
5. go back to step "1." and repeat

Thank you!

Dave
 
Old 03-17-2004, 12:12 PM   #2
davidks1977
LQ Newbie
 
Registered: Mar 2004
Posts: 3

Original Poster
Rep: Reputation: 0
I did read something about running the makemap command to create the db file, however, it doesn't seem to render the proper format for sendmail. I found some sites that reccomended running something to the effect of: "makemap hash /etc/aliases.db < /etc/aliases" but this stops sendmail from receiving mail completely so I have to copy over the old aliases.db file and restart the sendmail service. Is there a way I could manually create this file outside of the "newaliases" or "sendmail -bi" command? how about directly editing the aliases.db file?

This is frustrating!

Dave
 
Old 03-17-2004, 01:57 PM   #3
coolamit78
Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: RHEL AS 3/4, Windows XP
Posts: 546

Rep: Reputation: 31
If you are using RedHat 9, then I think editing the sendmail.cf file directly is not the best way to configure sendmail....RedHat provides another file sendmail.mc in the same directory (/etc/mail), which you should ideally look to edit ...

This is how I go on to make changes to my sendmail configuration:

1. cd /etc/mail

2. cp sendmail.cf sendmail.cf.orig
(keep a copy of original sendmail file in case u mess up)

After making changes in the file sendmail.mc give the command

3. m4 sendmail.mc > sendmail.cf

4. service sendmail restart

So that whatever changes made are activated.

As far as my knowledge goes, I dont think one needs to touch the aliases.db file as it is automatically generated from the /etc/aliases file.....

Try the above and I guess that should help..

Regards,

amit
 
Old 03-17-2004, 02:35 PM   #4
davidks1977
LQ Newbie
 
Registered: Mar 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you for the response. I have located the sendmail.mc file however interesting I did not find a line to specify the alias file location... Do I need to add a particular variable for aliases?

for an exmaple this is what I saw for the virtusertable:

FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable')

Would I add something like:

FEATURE(`AliasFile',`hash -o /etc/aliases')

Thank you!

Dave
 
Old 03-18-2004, 12:40 AM   #5
coolamit78
Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: RHEL AS 3/4, Windows XP
Posts: 546

Rep: Reputation: 31
Well, I can tell u one thing for sure that if you are using Red Hat 9 and chose to install sendmail from the RedHat cds, then you dont need to add anything to the sendmail.mc file with regard to aliases.

Just edit the file /etc/aliases and after you save and exit the editor, give the command

newaliases

service sendmail restart

Thats it...and you dont need to change anything else anywhere to get the aliases working.

Regards,

amit
 
  


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
FC4: "yum update libcddb" fails -- missing dependancy problem: MattCrypto Fedora 2 07-28-2005 07:47 PM
bash equivalence of tcsh "alias em "emacs \!:1 &""? rgiggs Slackware 3 07-29-2004 03:07 AM
Update Fedora2 using "yum update" problem chinaundead Fedora 9 04-27-2004 10:25 AM
does failed using urpmi messed up my "Install Software" / "mandrake update" ??? sirpelidor Mandriva 1 11-02-2003 10:00 PM
sendmail: "permission denied" when using include:/file sohmc Linux - Software 1 05-22-2003 07:40 AM


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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration