On 03/28/2011 10:30 PM, motty.cruz wrote:

Hello Jeroen,

I appreciate your support very much.

In my main.cf file I had

local_recipient_database = hash:/usr/local/etc/postfix/userdb, hash:/usr/local/etc/postfix/uservirt

That line above does not give me any errors

but you're right it does not work, because I get the following in my logs:

NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 550 5.1.1 <mo...@domain.tls>: Recipient address rejected: User unknown in local recipient table; from=<motty_t...@domain.tls> to=<mo...@domain.tls>proto=SMTP helo=<domain.tls>


That would be because the above is not a valid postfix configuration setting, as I already explained.

But if I change the line above to:

local_recipient_maps = hash:/usr/local/etc/postfix/userdb, hash:/usr/local/etc/postfix/uservirt

that when I get the error:

fatal: open database /usr/local/etc/postfix/userdb.db: Invalid argument

I do not think is permission problems,

-rw-r--r--   1 root  wheel  1232896 Mar 28 11:13 userdb.db


1.2 MEGAbytes ? Really ?
I am curious what exactly the postmap command was.

-rw-r--r--   1 root  wheel    16384 Mar 28 11:13 uservirt.db

Thank you very much for your help,


Please, reply to the LIST, and don't TOP-POST.
2 very simple rules to make everybody's life easier.


-motty

*From:* Jeroen Geilman [mailto:jer...@adaptr.nl]
*Sent:* Monday, March 28, 2011 1:19 PM
*To:* motty.cruz
*Subject:* Re: postfix can't open local recipient file .db extension

On 03/28/2011 10:03 PM, motty.cruz wrote:

Thanks for your prompt reply.

Yes I did run

Postmap /usr/local/etc/postfix/userdb & uservirt


That is hardly a valid command.

Again, you need to be sure which setting you actually changed - is it local_recipient_database or local_recipient_maps ?

Assigning a value to an unknown parameter will not throw an error, but it won't work, either.


I'm not sure what could be the issue

# postconf -m

btree

cdb

cidr

environ

hash

internal

nis

pcre

proxy

regexp

static

tcp

texthash

unix

it support hash,

any suggestions?

Thanks,

-motty

*From:* owner-postfix-us...@postfix.org <mailto:owner-postfix-us...@postfix.org> [mailto:owner-postfix-us...@postfix.org] *On Behalf Of *Jeroen Geilman
*Sent:* Monday, March 28, 2011 12:40 PM
*To:* postfix-users@postfix.org <mailto:postfix-users@postfix.org>
*Subject:* Re: postfix can't open local recipient file .db extension

On 03/28/2011 09:01 PM, motty.cruz wrote:

Hello,

I'm running Postfix on FreeBSD 8.2. Postfix complaints about this line in my configuration

local_recipient_database = hash:/usr/local/etc/postfix/userdb, hash:/usr/local/etc/postfix/uservirt


ITYM local_recipient_MAPS.



The error:

postfix/smtpd[1476]: fatal: open database /usr/local/etc/postfix/userdb.db: Invalid argument


Did you run postmap(8) on it ?



local_recipient_maps = hash:/usr/local/etc/postfix/userdb, hash:/usr/local/etc/postfix/uservirt


This one is correct; all you're missing is

$ postmap /usr/local/etc/postfix/userdb

(and also uservirt, if you forgot that)



--
J.
------------------------------------------------------------------------

No virus found in this message.
Checked by AVG - www.avg.com <http://www.avg.com>
Version: 10.0.1204 / Virus Database: 1498/3535 - Release Date: 03/28/11




--
J.
------------------------------------------------------------------------

No virus found in this message.
Checked by AVG - www.avg.com <http://www.avg.com>
Version: 10.0.1204 / Virus Database: 1498/3535 - Release Date: 03/28/11



--
J.

Reply via email to