LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-18-2005, 05:22 AM   #1
zamri
Member
 
Registered: May 2004
Location: Malaysia
Distribution: Mandrake,Slackware,RedHat
Posts: 157

Rep: Reputation: 30
postfix : newaliases peoblem


Hi all,

I have made changes to my /etc/postfix/aliases file and i want to rebuild the alias db file. When I run this command :

#newaliases

I got an error:
postalias: fatal: open database /etc/postfix/aliases.db: Unknown error 429493638

What is the problem here? my alias file is of type hash as configured in main.cf.

This is my postconf -n :
alias_maps = hash:/etc/postfix/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
delay_warning_time = 4h
html_directory = /usr/share/doc/postfix-2.1.4/html
inet_interfaces = all
mail_owner = postfix
mailbox_command = /usr/bin/procmail -Y -a $DOMAIN
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mynetworks_style = host
newaliases_path = /usr/bin/newaliases.postfix
owner_request_special = no
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.1.4/README_FILES
recipient_canonical_maps = hash:/etc/postfix/mycanonical
recipient_delimiter = +
sample_directory = /usr/share/doc/postfix-2.1.4/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP $mail_name ($mail_version) (Mandrake Linux)
unknown_local_recipient_reject_code = 450
 
Old 07-18-2005, 08:52 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
what if you use the proper postmap call?

postmap /etc/postfix/aliases
 
Old 07-18-2005, 11:56 PM   #3
zamri
Member
 
Registered: May 2004
Location: Malaysia
Distribution: Mandrake,Slackware,RedHat
Posts: 157

Original Poster
Rep: Reputation: 30
the output is the same.
 
Old 07-19-2005, 12:15 AM   #4
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
I don't think you use 'postmap' but 'postalias'. Try 'postalias /etc/postfix/aliases'. That should create the hash.

-twantrd
 
Old 07-19-2005, 07:29 AM   #5
zamri
Member
 
Registered: May 2004
Location: Malaysia
Distribution: Mandrake,Slackware,RedHat
Posts: 157

Original Poster
Rep: Reputation: 30
the output is the same. what went wrong actually. I have deleted the aliases.db and rebuilt the hash file again but to no avail.
 
Old 07-19-2005, 12:12 PM   #6
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
You need to define your alias_database parameter appropriately in main.cf:
Code:
alias_database = hash:/etc/postfix/aliases
Then, run postfix reload and newaliases

Last edited by Berhanie; 07-19-2005 at 12:14 PM.
 
Old 07-19-2005, 10:07 PM   #7
zamri
Member
 
Registered: May 2004
Location: Malaysia
Distribution: Mandrake,Slackware,RedHat
Posts: 157

Original Poster
Rep: Reputation: 30
alias_database? i set to alias_maps. What is the difference? and i have done what you say but still error.
 
Old 07-19-2005, 10:37 PM   #8
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
alias_database is the subset of alias_maps that is built with the newalias command. According to your config file, your newaliases binary is called newaliases.postfix (not newaliases -- i missed that in my last post. sorry.)
 
Old 07-19-2005, 10:46 PM   #9
zamri
Member
 
Registered: May 2004
Location: Malaysia
Distribution: Mandrake,Slackware,RedHat
Posts: 157

Original Poster
Rep: Reputation: 30
Are they the same? I think they are the same binary but i didn;t check which symlink what?
 
Old 07-19-2005, 10:57 PM   #10
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
Quote:
Originally posted by zamri
Are they the same? I think they are the same binary but i didn;t check which symlink what?
i don't think so. /usr/bin/newaliases.postfix should be a symlink to the binary referenced by sendmail_path.
 
Old 07-21-2005, 10:14 PM   #11
zamri
Member
 
Registered: May 2004
Location: Malaysia
Distribution: Mandrake,Slackware,RedHat
Posts: 157

Original Poster
Rep: Reputation: 30
yup. ur right. newaliases.postfix is different from newaliases. it is symlinked


































yes ur right. newaliases is different from newaliases.postfix. newaliases.postfix is symlinked to sendmail.postfix

i have run the command newaliases.postfix /etc/postfix/aliases

and it takes forever to complete. why ?
 
Old 07-22-2005, 10:41 AM   #12
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
Quote:
and it takes forever to complete. why ?
I don't know. You don't need to specify an argument to newaliases (try just newaliases.postfix). You might also take a look at your mail logs.
 
Old 09-06-2005, 03:04 AM   #13
zamri
Member
 
Registered: May 2004
Location: Malaysia
Distribution: Mandrake,Slackware,RedHat
Posts: 157

Original Poster
Rep: Reputation: 30
anyone? i have no clue how to solve this problem.. i googled a bit and found someone with the same problem but no solution : http://www.google.com.my/url?sa=t&ct...DMPYigGOtfXlCw
 
Old 09-14-2005, 04:48 AM   #14
zamri
Member
 
Registered: May 2004
Location: Malaysia
Distribution: Mandrake,Slackware,RedHat
Posts: 157

Original Poster
Rep: Reputation: 30
hi all,

newaliases.postfix is symlinked to sendmail.postfix on my system which i think has something wrong somewhere. before this, i always ran newaliases command to update my aliases db. and it seems do the job. after problem occurred, i figured out that in my config there is newaliases.postfix and not newaliases. I changed it to newaliases and restart apache. It worked ok. I think i just solved this problem. any idea / comment / advice anyone?
 
  


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
newaliases problem kafnir Linux - Networking 1 07-11-2004 02:52 AM
newaliases problem kafnir Linux - Networking 1 06-24-2004 04:13 PM
Postfix's newaliases-command not working ZeiP Linux - Software 1 03-22-2004 04:04 PM
Problem using "newaliases" to update sendmail alias file davidks1977 Linux - Software 4 03-18-2004 12:40 AM
vi & an peoblem m_pahlevanzadeh Red Hat 2 01-14-2004 05:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:28 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