[Postfixbuch-users] fatal: open database /etc/aliases.db: Invalid argument
Stefan Hofmeir
stefan1 at hofmeir.de
Mi Okt 17 00:19:46 CEST 2007
Hallo,
Am Dienstag, 16. Oktober 2007 um 20:02 schrieb Ralf Hildebrandt:
>> alias_database = hash:/etc/aliases.db, hash:/usr/local/mailman/data/aliases.db
> Das ist falsch. Das ".db" muss bei beiden weg.
nun geändert.
Trotzdem besteht der Fehler weiterhin:
# tail -f /var/log/mail.log
Oct 16 23:46:40 sv postfix/master[22515]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Oct 16 23:47:27 sv postfix/local[22558]: fatal: open database /etc/aliases.db: Invalid argument
Oct 16 23:47:28 sv postfix/master[22515]: warning: process /usr/libexec/postfix/local pid 22558 exit status 1
Oct 16 23:47:28 sv postfix/master[22515]: warning: /usr/libexec/postfix/local: bad command startup -- throttling
Oct 16 23:47:40 sv postfix/smtpd[22562]: fatal: open database /etc/aliases.db: Invalid argument
Oct 16 23:47:41 sv postfix/master[22515]: warning: process /usr/libexec/postfix/smtpd pid 22562 exit status 1
Oct 16 23:47:41 sv postfix/master[22515]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Oct 16 23:48:28 sv postfix/local[22563]: fatal: open database /etc/aliases.db: Invalid argument
Oct 16 23:48:29 sv postfix/master[22515]: warning: process /usr/libexec/postfix/local pid 22563 exit status 1
Oct 16 23:48:29 sv postfix/master[22515]: warning: /usr/libexec/postfix/local: bad command startup -- throttling
interessant: gleich nach Löschen der aliases.db und Neuanlage
(#newaliases) funktionert Postfix für ein paar Sekunden:
root at sv01:/etc# tail -f /var/log/mail.log
Oct 17 00:13:03 sv postfix/qmgr[23801]: 677575BD90: from=<statd at sv...>, size=5178, nrcpt=1 (queue active)
Oct 17 00:13:03 sv postfix/qmgr[23801]: 624BE53FEE: From
Oct 17 00:13:03 sv01 postfix/qmgr[23801]: 677575BD90: from=<statd at sv01.>, size=5178, nrcpt=1 (queue active)
Oct 17 00:13:03 sv01 postfix/qmgr[23801]: 624BE53FEE: from=<statd at sv01.>, size=5178, nrcpt=1 (queue active)
Oct 17 00:13:03 sv01 postfix/qmgr[23801]: 6B954136D56: from=<statd at sv0>, size=5180, nrcpt=1 (queue active)
Oct 17 00:13:03 sv01 postfix/qmgr[23801]: 64C8013366B: from=<statd at sv0>, size=1529, nrcpt=1 (queue active)
Oct 17 00:13:03 sv01 postfix/qmgr[23801]: 6B1D7136D44: from=<statd at sv>, size=5180, nrcpt=1 (queue active)
Oct 17 00:13:03 sv01 postfix/qmgr[23801]: 64A0C13393B: from=<>, size=1952, nrcpt=1 (queue active)
Oct 17 00:13:03 sv01 postfix/qmgr[23801]: 66373133670: from=<statd at sv, size=5180, nrcpt=1 (queue active)
Oct 17 00:13:03 sv01 postfix/qmgr[23801]: 696E153FA8: from=<statd at sv01>, size=5178, nrcpt=1 (queue active)
Oct 17 00:13:03 sv01 postfix/qmgr[23801]: 6B778136D7D: from=<statd at sv01>, size=5180, nrcpt=1 (queue active)
Oct 17 00:13:03 sv01 postfix/qmgr[23801]: 6043D136D23: from=<statd at sv01>, size=5180, nrcpt=1 (queue active)
Oct 17 00:13:04 sv01 postfix/master[23799]: warning: process /usr/libexec/postfix/local pid 23804 exit status 1
Oct 17 00:13:04 sv01 postfix/master[23799]: warning: /usr/libexec/postfix/local: bad command startup -- throttling
Oct 17 00:13:05 sv01 postfix/smtp[23803]: 2231A53DC5: to=<daqenzhjxx at kunimune.com>, relay=none, delay=413421, status=deferred (Host or domain name not found. Name service error for name=kunimune.com type=MX: Host not found, try again)
Oct 17 00:13:08 sv01 postfix/smtpd[23808]: fatal: open database /etc/aliases.db: Invalid argument
Oct 17 00:13:09 sv01 postfix/master[23799]: warning: process /usr/libexec/postfix/smtpd pid 23808 exit status 1
Oct 17 00:13:09 sv01 postfix/master[23799]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Oct 17 00:14:04 sv01 postfix/local[23812]: fatal: open database /etc/aliases.db: Invalid argument
Oct 17 00:14:05 sv01 postfix/master[23799]: warning: process /usr/libexec/postfix/local pid 23812 exit status 1
Oct 17 00:14:05 sv01 postfix/master[23799]: warning: /usr/libexec/postfix/local: bad command startup -- throttling
Oct 17 00:14:09 sv01 postfix/smtpd[23813]: fatal: open database /etc/aliases.db: Invalid argument
Oct 17 00:14:10 sv01 postfix/master[23799]: warning: process /usr/libexec/postfix/smtpd pid 23813 exit status 1
Oct 17 00:14:10 sv01 postfix/master[23799]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
, size=5178, nrcpt=1 (queue active)
Oct 17 00:13:03 sv postfix/qmgr[23801]: 6B954136D56: from=<statd at sv>, size=5180, nrcpt=1 (queue active)
Oct 17 00:13:03 sv postfix/qmgr[23801]: 64C8013366B: from=<statd at sv>, size=1529, nrcpt=1 (queue active)
Oct 17 00:13:03 sv postfix/qmgr[23801]: 6B1D7136D44: from=<statd at sv>, size=5180, nrcpt=1 (queue active)
Oct 17 00:13:03 sv postfix/qmgr[23801]: 64A0C13393B: from=<>, size=1952, nrcpt=1 (queue active)
Oct 17 00:13:03 sv postfix/qmgr[23801]: 66373133670: from=<statd at sv>, size=5180, nrcpt=1 (queue active)
Oct 17 00:13:03 sv postfix/qmgr[23801]: 696E153FA8: from=<statd at sv01>, size=5178, nrcpt=1 (queue active)
Oct 17 00:13:03 sv postfix/qmgr[23801]: 6B778136D7D: from=<statd at sv.....>, size=5180, nrcpt=1 (queue active)
Oct 17 00:13:03 sv postfix/qmgr[23801]: 6043D136D23: from=<statd at sv....>, size=5180, nrcpt=1 (queue active)
Oct 17 00:13:04 sv postfix/master[23799]: warning: process /usr/libexec/postfix/local pid 23804 exit status 1
Oct 17 00:13:04 sv postfix/master[23799]: warning: /usr/libexec/postfix/local: bad command startup -- throttling
Oct 17 00:13:05 sv postfix/smtp[23803]: 2231A53DC5: to=<daqenzhjxx at ....>, relay=none, delay=413421, status=deferred (Host or domain name not found. Name service error for name=kunimune.com type=MX: Host not found, try again)
Oct 17 00:13:08 sv postfix/smtpd[23808]: fatal: open database /etc/aliases.db: Invalid argument
Oct 17 00:13:09 sv postfix/master[23799]: warning: process /usr/libexec/postfix/smtpd pid 23808 exit status 1
Oct 17 00:13:09 sv postfix/master[23799]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Oct 17 00:14:04 sv postfix/local[23812]: fatal: open database /etc/aliases.db: Invalid argument
Oct 17 00:14:05 sv postfix/master[23799]: warning: process /usr/libexec/postfix/local pid 23812 exit status 1
Oct 17 00:14:05 sv postfix/master[23799]: warning: /usr/libexec/postfix/local: bad command startup -- throttling
Oct 17 00:14:09 sv postfix/smtpd[23813]: fatal: open database /etc/aliases.db: Invalid argument
Oct 17 00:14:10 sv postfix/master[23799]: warning: process /usr/libexec/postfix/smtpd pid 23813 exit status 1
Oct 17 00:14:10 sv postfix/master[23799]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Hätte jemand eine Lösung? Dankw!!!!!
main.cf
-------
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
myhostname = sv333.domainname123.de
myorigin = $myhostname
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost
mynetworks = 127.0.0.1, localhost, 213.xxx.xxx.xx
local_recipient_maps = unix:passwd.byname $alias_maps
smtp_always_send_ehlo = yes
#smtp_bind_address=127.0.0.1
smtpd_client_restrictions = permit_mynetworks
unknown_local_recipient_reject_code = 550
alias_maps = hash:/etc/aliases, hash:/usr/local/mailman/data/aliases
#alias_maps = hash:/usr/local/mailman/data/aliases
alias_database = hash:/etc/aliases, hash:/usr/local/mailman/data/aliases
# virtual_alias_maps = hash:/etc/postfix/virtual
home_mailbox = Maildir/
mail_spool_directory = /var/mail
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/local/man
sample_directory = /etc/postfix
readme_directory = no
recipient_delimiter = +
virtual_mailbox_domains = anderedomain123.de
#virtual_mailbox_base = /var/mail/vhosts
#virtual_mailbox_maps = hash:/etc/postfix/vmailbox
virtual_alias_maps = hash:/etc/postfix/virtual
hash_queue_names = deferred, defer active bounce flush incoming
master.cf
---------
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - n - - smtpd
#submission inet n - n - - smtpd
# -o smtpd_etrn_restrictions=reject
#628 inet n - n - - qmqpd
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - n 300 1 oqmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
trace unix - - n - 0 bounce
verify unix - - n - 1 verify
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - n - - smtp
relay unix - - n - - smtp
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - n - - showq
error unix - - n - - error
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
#
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
#
old-cyrus unix - n n - - pipe
flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
--
Herzliche Grüße,
Stefan Hofmeir
Mehr Informationen über die Mailingliste Postfixbuch-users