Re:

From: Cybertime Hostmaster (no email)
Date: Fri Nov 01 2002 - 22:19:34 EST


> I noticed that I have an aliases.db. I was wondering if I should have a
> virtual.db as well?
>
> I have the command
> virtual_maps = hash:/etc/postfix/virtual in main.cf to specify my
> virtual maps.
>
> Should this produce a virtual.db ? or do I manually have to do a postmap
> /etc/postfix/virtual ??

Any database map file needs to be postmapped. The command for the default
type, which is usually hash, is the simple form of:

postmap /somepath/somefile

It does not matter if it is the virtual map, or some map for your
smtpd_*_restriction lists.

If you are using postmap to do some other map type you will beed to be more
explicit.

For example:

If you have the file /etc/postfix/good_recipients
postmaster@ OK
abuse@ OK

And the file
/etc/postfix/spamlist-extended.txt

You must
postmap /etc/postfix/good_recipients
postmap btree:/etc/postfix/spamlist-extended.txt

For the following to work
smtpd_recipient_restrictions =
  reject_unauth_destination,
  check_recipient_access hash:/etc/postfix/good_recipients
  check_sender_access btree:/etc/postfix/spamlist-extended.txt

See man postmap for more.

> How is this aliases.db created?

newaliases
man newaliases

> It it done periodically by postfix ?

No.

--Eric

-
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