[TriLUG] Postfix config question vmaps.txt

Jason Tower jason at cerient.net
Tue Dec 20 15:44:50 EST 2005


typically virtual users are defined in the /etc/postfix/virtual file,
referenced by the following line in main.cf:

virtual_alias_maps = hash:/etc/postfix/virtual

most distros have this file heavily commented, read it to be sure you're
using the correct syntax.  you'll need to run 'postmap
/etc/postfix/virtual' after editing it.

> I just tried a test of sending an email to two virtual users from
> gmail to my postfix server.
>
> The two users were admin at denhaven2.com and admin at mercuryspacecraft.com
>  I own both domains and dns is set up to find my server.  I sent one
> email addressed to both users.  It got through to
> admin at mercuryspacecraft.com, but bounced to admin at denhaven2.com
>
> The bounce message says:
> Delivery to the following recipient failed permanently:
>
>      admin at denhaven2.com
>
> Technical details of permanent failure:
> PERM_FAILURE: SMTP Error (state 9): 550 <admin at denhaven2.com>: User
> unknown in virtual alias table
>
>
>
> My /etc/postfix/vmaps.txt file has the following lines:
>
> denatale at ctc.net denhaven2.com/rick/
> rick at localhost denhaven2.com/rick/
> ddenatale at ctc.net denhaven2.com/deborah/
> deborah at localhost denhaven2.com/rick/
> rick at denhaven2.homeip.net denhaven2.com/rick/
> deborah at denhaven2.homeip.net denhaven2.com/deborah/
> @denhaven2.homeip.net denhaven2.com/rick/
> rick at denhaven2.com denhaven2.com/rick/
> deborah at denhaven2.com denhaven2.com/deborah/
> @denhaven2.com denhaven2.com/rick/
> @mercuryspacecraft.com denhaven2.com/rick/
>
> I thought that the last two lines would direct any otherwise users in
> these domains to me. It looks like it works for mercuryspacecraft.com
> but not denhaven2.com, and vhosts.txt has all of these domains listed.
>
> vmaps.txt.db has a later timestamp so it's been hashed from this file.
>
> Any ideas?
>
> --
> Rick DeNatale
>
> Visit the Project Mercury Wiki Site
> http://www.mercuryspacecraft.com/
> --
> TriLUG mailing list        : http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ  : http://trilug.org/faq/
> TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
>
>





More information about the TriLUG mailing list