Re: virtual_maps AND virtual_mailbox

From: Stephan van Beerschoten (no email)
Date: Sat Nov 01 2003 - 16:11:17 EST


On Sat, Nov 01, 2003 at 02:22:32PM -0500, wrote:
>On Sat, 1 Nov 2003, Stephan van Beerschoten wrote:
>> I have setup virtual_mailbox's and I have it working fine with a pop3
>> tool. However I wonder now if a domain can have entries that:
>> 1) Are stored in the virtual_mailbox when they are local OR
>> 2) are forwarded to another address off-site ?
>>
>
>Forwarding addresses are defined in virtual_maps (virtual_alias_maps for
>Postfix 2.0). Virtual mailboxes are defined in virtual_{mailbox,uid,gid}_maps.

I have a weird thing with this setup. Let me explain:

I have two domains defined in $virtual_mailbox_domains.
I have entries in $virtual_mailbox_maps for those domains, and
I have entries in $virtual_alias_maps (sendmail style) for those domains too.

This works fine. The entries in $virtual_alias_maps forward adresses and
also deliver to \username entries, and the entries in
$virtual_mailbox_maps neatly deliver where I want it too.

I now also want to do this for $mydomain. For $mydomain, I also have
entries in $virtual_mailbox_maps (sendmail style). I tried the following:

Alter $mydestination, and remove the $mydomain entry from it.
Adding $mydomain to $virtual_mailbox_domains.
Basically I tried to copy the settings I had for the
$virtual_mailbox_domains I mentioned above for $mydomain, and I failed.

No matter if I try to send to an address listed in $virtual_mailbox_maps
or $virtual_alias_maps for $mydomain, I always get the 'mail loops back
to me error', which makes sense somehow, but is not what I want.

Somehow this does not make sense. What am I missing ?

Here is my postconf -n output:

 alias_database = hash:/usr/local/etc/postfix/aliases
 alias_maps = hash:/usr/local/etc/postfix/aliases
 canonical_maps =
 command_directory = /usr/local/sbin
 config_directory = /usr/local/etc/postfix
 daemon_directory = /usr/local/libexec/postfix
 debug_peer_level = 2
 disable_vrfy_command = yes
 header_checks = pcre:/usr/local/etc/postfix/spam_control
 local_recipient_maps = $alias_maps unix:passwd.byname
 mail_owner = postfix
 mailbox_command = /usr/local/bin/procmail
 mailbox_size_limit = 200000000
 mailq_path = /usr/local/bin/mailq
 manpage_directory = /usr/local/man
 masquerade_classes = envelope_sender, header_sender, header_recipient
 masquerade_domains = $mydomain
 masquerade_exceptions =
 mydestination = $myhostname, localhost.$mydomain
 mynetworks = /usr/local/etc/postfix/relay-networks
 mynetworks_style = host
 myorigin = $mydomain
 newaliases_path = /usr/local/bin/newaliases
 queue_directory = /var/spool/postfix
 readme_directory = no
 recipient_canonical_maps =
 recipient_delimiter = +
 sample_directory = /usr/local/etc/postfix
 sender_canonical_maps = hash:/usr/local/etc/postfix/sender_canonical
 sendmail_path = /usr/local/sbin/sendmail
 setgid_group = maildrop
 smtpd_client_restrictions = hash:/usr/local/etc/postfix/access reject_rbl_client relays.ordb.org reject_rbl_client bl.spamcop.net reject_rbl_client list.dsbl.org
 smtpd_recipient_restrictions = permit_mynetworks permit_mx_backup reject_rbl_client relays.ordb.org reject_rbl_client bl.spamcop.net reject_rbl_client list.dsbl.org check_relay_domains
 smtpd_sender_restrictions = reject_non_fqdn_sender reject_unknown_sender_domain reject_unknown_recipient_domain
 virtual_alias_maps = hash:/usr/local/etc/postfix/virtual, mysql:/usr/local/etc/postfix/mysql-virtual.cf
 virtual_gid_maps = static:3000
 virtual_mailbox_base = /var/spool/virtual
 virtual_mailbox_domains = /usr/local/etc/postfix/v-domains
 virtual_mailbox_maps = hash:/usr/local/etc/postfix/v-mbox
 virtual_uid_maps = static:3000

/Stephan
 

-- 
Stephan van Beerschoten [SVB21-RIPE]       
  PGP fingerprint:  4557 9761 B212 FB4C  778D 3529 C42A 2D27
     "To err is human, to forgive is Not Company Policy"







Hosted Email Solutions

Invaluement Anti-Spam DNSBLs



Powered By FreeBSD   Powered By FreeBSD