RE: Postfix dabase location

From: Schmehl, Paul L (no email)
Date: Sun Sep 01 2002 - 12:44:30 EDT


Quit trying to swim upstream. When you posted postconf -n, this was one
of your parameters:
config_directory = /etc/postfix

*That* is where aliases should be (and all your other config files, like
virtual, access, etc.) So, vi /etc/postfix/aliases, postalias
/etc/postfix/aliases, and in main.cf alias_database =
hash:$config_directory/aliases. Then postfix reload, and your problem
should be solved (as far as the alias db goes.)

Now, when you say "deliver mail locally", deliver to what? $HOME/Mail?
/Maildir? An IMAP server? A completely different box?

Postfix will work out of the box *if* all you're doing is replacing a
local copy of sendmail and delivering mail to unix mailboxes **on that
box**. If you're doing anything else **or if you change its parameters
without telling it what you changed** (like putting aliases in
/etc/mail/aliases), then it won't work until you fix it.

If you're delivering mail to local unix mailboxes, the accounts either
have to exist or be aliased to one that does exist (like postmaster
root, root your_account, etc.)

Paul Schmehl ()
Supervisor, Support Services
University of Texas at Dallas
http://www.utdallas.edu/~pauls/
AVIEN Founding Member

> -----Original Message-----
> From: Scott Weber [mailto:]
> Sent: Sunday, September 01, 2002 11:20 AM
> To: Schmehl, Paul L
> Cc: Bert Driehuis;
> Subject: Re: Postfix dabase location
>
>
> The only difference in behavior is now the postalias command does
> not give me an error.
>
> No matter how many times I restart postfix, it does not
> deliver mail locally. Nor does it complain about aliases.db again.
>
> After REBOOTING, and starting postfix, I get ONE and ONLY ONE
> entry in syslog:
> sys1 postfix/local[239]: fatal: open database
> /etc/aliases.db: No such file or directory
>
> This message does not reappear no matter how many times I
> try to fix the configuration and do a reload. It ONLY shows
> up once after rebooting.
>
> And this, despite postconf shows:
> alias_database = dbm:/etc/mail/aliases
>
> It's supposed to be a drop in replacement for sendmail, which I
> have removed from the startup scripts. But it's not using the
> same database.
> Something is very broken, and this is an "out of the box
> install". And postfix will not tell me what is wrong, so I
> can help fix it.
>
>
> "Schmehl, Paul L" wrote:
> >
> > Change your alias map to hash.
> >
> > alias database = hash:/etc/mail/aliases
> >
> > Then run postalias /etc/mail/aliases
> >
> > Paul Schmehl ()
> > Supervisor, Support Services
> > University of Texas at Dallas
> > http://www.utdallas.edu/~pauls/
> > AVIEN Founding Member
> >
> > > -----Original Message-----
> > > From: Scott Weber [mailto:]
> > > Sent: Sunday, September 01, 2002 10:35 AM
> > > To: Bert Driehuis
> > > Cc:
> > > Subject: Postfix dabase location
> > >
> > >
> > > Thank you for being more helpful and understanding.
> > >
> > > Let me provide the following information which indicates either:
> > > 1> That there is some very strange time warp occurring -or-
> > > 2> I still don't understand something that is supposed to
> > > be blatantly obvious
> > >
> > > My syslog:
> > > sys1 postfix/local[239]: fatal: open database
> > > /etc/aliases.db: No such file or directory
> > >
> > > Simple enough? But what about this?
> > > postconf -n:
> > > alias_database = dbm:/etc/mail/aliases <------- WHAT?????!!!
> > > command_directory = /usr/sbin
> > > config_directory = /etc/postfix
> > > daemon_directory = /usr/libexec/postfix
> > > debug_peer_level = 2
> > > inet_interfaces = all
> > > mail_owner = postfix
> > > mailq_path = /usr/bin/mailq
> > > manpage_directory = /usr/man
> > > mydestination = $myhostname, localhost.$mydomain, $mydomain
> > > mydomain = softwaremisfits.com
> > > myhostname = sys1
> > > mynetworks_style = subnet
> > > myorigin = $mydomain
> > > newaliases_path = /usr/bin/newaliases
> > > queue_directory = /var/spool/postfix
> > > readme_directory = /usr/share/doc/postfix
> > > sample_directory = /etc/postfix/samples
> > > sendmail_path = /usr/sbin/sendmail
> > > setgid_group = maildrop
> > > smtpd_banner = $myhostname ESMPT $mail_name ($mail_version) ...
> > >
> > > And running newalises gives the following:
> > > postalias: fatal: unsupported map type: dbm
> > > -
> > > To unsubscribe, send mail to with
> content (not
> > > subject): unsubscribe postfix-users
> > >
>
-
To unsubscribe, send mail to with content
(not subject): unsubscribe postfix-users








Hosted Email Solutions

Invaluement Anti-Spam DNSBLs



Powered By FreeBSD   Powered By FreeBSD