On 2/16/2012 2:15 PM, Toomas Vendelin wrote:
> Hello list,
>
> I have set up a home e-mail server with Postfix and Cyrus, and
> everything seems to work. There is one matter I'd like to clarify,
> though.
> Is it so, that if I use "non-Postfix" virtual mail delivery (in my
> case, to Cyrus accounts via unix socket using LMTP), I'm supposed to
> use virtual_alias_maps, and to perform delivery to a Maildir or mbox
> file directly (referred to as "virtual MAILBOX: separate domains,
> non-UNIX accounts"), I should use virtual_mailbox_maps and
> virtual_mailbox_base instead?
>
> Based on the documentation, my initial impression was that a
> virtual_mailbox_maps like
> some.em...@example.com          imapuser
>
> should do the job, but it didn't deliver some.em...@example.com to
> imapuser. virtual_alias_maps did the job, though (see my configs
> below). So, is it how it should be, or am I missing something
> important here?

Referring to the official manual:
http://www.postfix.org/VIRTUAL_README.html#in_virtual_other

The purpose of virtual_mailbox_domains is to route domains through the
virtual_transport
The purpose of virtual_mailbox_maps in a delivery agent other than
virtual(8) is for VERIFICATION that a user exists.  If it is left empty,
no verification is done. The result just has to be non-empty for
verification to occur.  This is a possible BACKSCATTER source when left
empty.
The purpose of virtual_alias_maps is to reroute email REGARDLESS of its
address class.

Brian

>
> Thanks in advance.
>
> pfx:~# postconf -n
> broken_sasl_auth_clients = yes
> config_directory = /etc/postfix
> content_filter = amavisfeed:[127.0.0.1]:10024
> local_destination_concurrency_limit = 5
> local_destination_recipient_limit = 300
> local_recipient_maps =
> mime_header_checks = pcre:/etc/postfix/mime_header_checks
> mydestination = localhost.$mydomain, localhost
> mydomain = pfx.tere.com
> myhostname = pfx.tere.com
> mynetworks = 127.0.0.0/8 192.168.50.0/24
> mynetworks_style = subnet
> myorigin = tere.com
> proxy_interfaces = 80.235.55.179, 192.168.50.1, 192.168.1.254
> receive_override_options = no_address_mappings
> recipient_delimiter = +
> smtpd_helo_restrictions = warn_if_reject      reject_invalid_helo_hostname
> smtpd_recipient_restrictions =
> reject_non_fqdn_sender        reject_non_fqdn_recipient       
> permit_sasl_authenticated
>       permit_mynetworks, reject_unauth_destination    check_helo_access
> pcre:/etc/postfix/helo_checks check_policy_service
> inet:127.0.0.1:10023  permit
> smtpd_sasl_auth_enable = yes
> smtpd_sasl_security_options = noanonymous
> virtual_alias_maps = hash:/etc/postfix/valias_map
> virtual_mailbox_domains = tere.com
> virtual_transport = lmtp:unix:public/lmtp
>
> pfx:~# cat /etc/postfix/valias_map
> j...@example.com                              jack
> ja...@example.com                     jack
> jack.robin...@example.com             jack

  • virtual_ Toomas Vendelin
    • Re: virtual_ Brian Evans - Postfix List

Reply via email to