Re: postfix - fatal: open database /etc/aliases.db: Invalid argument

2004-03-25 Thread Martin Hudec

Hi,

well newaliases in /usr/local/bin is alias for /usr/local/sbin/sendmail :).

pleiades# ll /usr/local/bin/ | grep newaliases
lrwxr-xr-x  1 root  wheel   32 Mar 24 11:33 newaliases - 
../../../usr/local/sbin/sendmail

and for those FreeBSD 4.x systems, yes I use postfix with aliases db as shown here:

uname -a:

FreeBSD amber.aeternal.net 4.9-STABLE FreeBSD 4.9-STABLE #0: Sat Mar 20 21:30:02 CET 
2004 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/AMBER  i386

postconf | grep aliases:

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
newaliases_path = /usr/bin/newaliases

And all is working.. 
but postfix is version 2.0.18 and not 2.0.19 as on my current 5.2.1 machine.

Thank you very much for your help :)


On Wed, Mar 24, 2004 at 02:03:18PM +0100, Remko Lodder ([EMAIL PROTECTED]) wrote:
 Do you use postfix there? and use the aliases db?

 newaliases_path = /usr/local/bin/newaliases
 --
 So you should use that one... and/or alias the current one to the one in 
 /usr/local/bin ...
 

-- 
=--
:
:. kind regards
:.. Martin Hudec
:.:
:.: :m: +421.907.303393
:.: :@: [EMAIL PROTECTED]
:.: :w: http://www.aeternal.net

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: postfix - fatal: open database /etc/aliases.db: Invalid argument

2004-03-24 Thread Remko Lodder
Hi Martin,

Martin Hudec (webmail) wrote:
and /etc/mail/aliases.db has

-rw-r-  1 root  wheel  65536 Mar 24 12:25 aliases.db
I think that your problem is with the permissions of that file.
I think that you perhaps should use chmod o+r aliases.db in the 
/etc/mail directory, or chgrp postdrop (or whatever group you use) 
aliases.db in the /etc/mail directory.

And then retry :-)

cheers

--
--
Kind regards,

Remko Lodder
Elvandar.org/DSINet.org
www.mostly-harmless.nl Dutch community for helping newcomers on the 
hackerscene

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: postfix - fatal: open database /etc/aliases.db: Invalid argument

2004-03-24 Thread Martin Hudec (webmail)
Hi Remko,

i tried that too.. but no success :(.
-rw-r--r--  1 root  wheel  65536 Mar 24 12:25 aliases.db

anyway thanks :)
Martin

On Wed, 24 Mar 2004 13:12:51 +0100, Remko Lodder wrote
  -rw-r-  1 root  wheel  65536 Mar 24 12:25 aliases.db
 
 I think that your problem is with the permissions of that file.
 I think that you perhaps should use chmod o+r aliases.db in the 
 /etc/mail directory, or chgrp postdrop (or whatever group you use) 
 aliases.db in the /etc/mail directory.
 
 And then retry :-)


--
aEternal.net WebMail (http://mail.aeternal.net)

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: postfix - fatal: open database /etc/aliases.db: Invalid argument

2004-03-24 Thread Remko Lodder
Hi Martin

Martin Hudec (webmail) wrote:

Hi Remko,

i tried that too.. but no success :(.
-rw-r--r--  1 root  wheel  65536 Mar 24 12:25 aliases.db
anyway thanks :)
Martin
I think i found the issue:

Mar 24 12:25:19 pleiades sendmail[7597]: alias database /etc/mail/aliases
rebuilt by corwin
Mar 24 12:25:19 pleiades sendmail[7597]: /etc/mail/aliases: 25 aliases,
longest 10 bytes, 256 bytes total
Mar 24 12:25:22 pleiades postfix/postfix-script: starting the Postfix 
mail system
Mar 24 12:25:22 pleiades postfix/master[7643]: daemon started -- version 
2.0.19
Mar 24 12:25:32 pleiades postfix/smtpd[7648]: fatal: open database
/etc/aliases.db: Invalid argument

U use newaliases in the sendmail package to re-generate the database 
{right?}.

To my best knowledge postfix uses postmap... /usr/local/sbin/postmap (or 
whereever your postmap command is located) /path/to/aliases, perhaps it 
can open it after that action...

--
--
Kind regards,

Remko Lodder
Elvandar.org/DSINet.org
www.mostly-harmless.nl Dutch community for helping newcomers on the 
hackerscene

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: postfix - fatal: open database /etc/aliases.db: Invalid argument

2004-03-24 Thread Martin Hudec (webmail)
Hi,

thank you :) now it works..

I always used newaliases as:
newaliases_path = /usr/bin/newaliases

to generate aliases.db, as I said on my other FreeBSD 4.x systems I have never
experienced problems so far.

I used postmap hash:aliases, it complained for : signs, so I removed them.

Should also I change that newaliases symlink to /usr/local/sbin/postmap (now
it is linked to /usr/sbin/mailwrapper)?

cheers,
Martin

On Wed, 24 Mar 2004 13:32:41 +0100, Remko Lodder wrote
 U use newaliases in the sendmail package to re-generate the database 
 {right?}.
 
 To my best knowledge postfix uses postmap... /usr/local/sbin/postmap 
 (or whereever your postmap command is located) /path/to/aliases, 
 perhaps it can open it after that action...


--
aEternal.net WebMail (http://mail.aeternal.net)

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: postfix - fatal: open database /etc/aliases.db: Invalid argument

2004-03-24 Thread Remko Lodder
Heya Martin,

Martin Hudec (webmail) wrote:

Hi,

thank you :) now it works..

Good :-)

I always used newaliases as:
newaliases_path = /usr/bin/newaliases
to generate aliases.db, as I said on my other FreeBSD 4.x systems I have never
experienced problems so far.
Do you use postfix there? and use the aliases db?

I used postmap hash:aliases, it complained for : signs, so I removed them.

Should also I change that newaliases symlink to /usr/local/sbin/postmap (now
it is linked to /usr/sbin/mailwrapper)?
i have:

#alias_maps = hash:/etc/aliases
# The alias_database parameter specifies the alias database(s) that
# are built with newaliases or sendmail -bi.  This is a separate
# configuration parameter, because alias_maps (see above) may specify
#alias_database = hash:/etc/aliases
# newaliases_path: The full pathname of the Postfix newaliases command.
# This is the Sendmail-compatible command to build alias databases.
newaliases_path = /usr/local/bin/newaliases
--
So you should use that one... and/or alias the current one to the one in 
/usr/local/bin ...

Hope this helps,

Cheers!

Kind regards,

Remko Lodder
Elvandar.org/DSINet.org
www.mostly-harmless.nl Dutch community for helping newcomers on the 
hackerscene

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]