Re: Catchall questions

From: bronto (no email)
Date: Mon Jun 03 2002 - 15:34:24 EDT


I've removed the "sub.domain.com anything" entry, but all mail still
ends up in the catchall account.

Here's how I have some settings in postfix configured:

$mydestination includes $transport_maps, I have each domain that I
receive mail for listed in a transport maps table, mapping to
'local'. Prior to this exercise, I hadn't had need of the virtual
domain table at all.

So up until now, when I wanted to add a new domain and some users for
it, I would simply add the users to the mysql table, add the domain
to the transport maps, and make sure there was a directory with the
right permissions for the domain to create maildirs in.

So the question remains how to get the catch all working, only for
mails for the domain that have no existing user or alias.

Rob

> >
>> Name Maps to:
>> sub.domain.com anything
>> @sub.domain.com
>
>Lose the first key (domain anything). Your domain is not Postfix-style
>virtual (all addresses are valid due to the catchall, and you are not
>rewriting out of the domain). Whether your domain is Sendmail-style or not
>depends on how the mailboxes for the domain are set up. What delivery
>agent (transport) delivers mail to "catchall"?
>
>Postfix-style virtual domains have addresses that must rewrite to a real
>domain for delivery to succeed, the name-space is "virtual" in the sense
>that no real mailboxes exist in the domain.
>
>Sendmail-style virtual domains default to "local" delivery, are subject to
>"local_recipient_maps" and are presumed to include the namespace of local
>shell users.
>
>Domains that appear as "domain anything" keys in "virtual_mailbox_maps"
>are designed to support the "virtual" delivery agent (but can support any
>delivery agent of your choice via the transport map). These domains don't
>overlap with shell users, but do include real mailboxes (don't need to
>rewrite out of them). If you are using the "virtual" delivery agent, Add
>the "domain anything" key and data for all valid users to the appropriate
>tables in "virtual_mailbox_maps". Note that "virtual_mailbox_maps" does
>no rewriting, so the catchall rewrite still happens in the "virtual_maps"
>tables and you still need to work around the recursion, see below.
>
>Or you can simply arrange to receive all mail for the domain (by adding it
>to relay_domains) and then route it as necessary via the transport table.
>
>Bottom line is that mail for a domain is accepted if:
>
>1. The domain is in $mydestination (Sendmail-Style).
>
>OR
>
>2. The domain is a key in $virtual_maps (Postfix-style)
>
>OR
>
>3. The domain is a key in $virtual_mailbox_maps (virtual delivery)
>
>OR
>
>4. The domain matches $relay_domains (default match style subdomain).
>
>OR
>
>5. (Not recommended) The domain is allowed via explicit entries in an
> access map (check_recipient_access maptype:/mapfile in
> $smtpd_recipient_restrictions). This is tricky to implement
> correctly especially if you want to filter SPAM while not
> accidentally becoming an open relay.
>
>>
>> But when I do this, ALL mail sent to sub.domain.com ends up in
>> , even user1 & user2.
>>
>
>The Postfix address rewriting (canonical and virtual) tables are
>recursive. So addresses you do not want to fall into the catchall need
>their own specific keys.
>
>The "problem" goes away if the RHS is in a different domain (this does not
>meet your apparent requirement to rewrite into the same domain).
>
>user1 at domain1 user2 at domain2
>@domain1 catchall at domain2
>
>--
> Viktor.
>
>-
>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