From: "Mike A. Leonetti" on
I'm trying to have messages delivered via the $virtual_transport but it
keeps being delivered by the mailbox_command. The $virtual_alias_maps
should have all of the e-mail addresses for the system, but when the
actual e-mail addresses get resolved they look like this:
barbara-userdomain.com(a)domain.com where userdomain.com is the tenant
domain on the server and userdomain.com is accepted by $mydesination below.

I'm usually really not good at explaining things so if there is anything
I can make more clear please let me know. Below is my main.cf.

Thanks.

smtpd_banner = $myhostname ESMTP $mail_name
biff = no

append_dot_mydomain = no
readme_directory = no

smtpd_tls_cert_file=/etc/certs/server.crt
smtpd_tls_key_file=/etc/certs/server.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

myhostname = ender.domain.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = domain.com
relayhost = 10.10.12.247
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
mail_owner = postfix
inet_protocols = all
header_checks = regexp:/etc/postfix/header_checks

virtual_transport = lmtp:localhost:2003

virtual_mailbox_base = /home/vmail
virtual_uid_maps = static:1005
virtual_gid_maps = static:1005
virtual_minimum_uid = 100
mailbox_command = /usr/bin/procmail -a "$USER"

virtual_alias_maps = ldap:/etc/postfix/ldap-aliases.cf

content_filter = mppscan:[127.0.0.1]:10025

smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_path = smtpd
broken_sasl_auth_clients = yes

smtpd_recipient_restrictions =
permit_sasl_authenticated,
permit_mynetworks,
check_client_access hash:/etc/postfix/rbl_override,
reject_unauth_destination,
reject_rbl_client sbl-xbl.spamhaus.org,
reject_rbl_client b.barracudacentral.org,
reject_rbl_client bl.spamcop.net,
reject_rbl_client dnsbl.sorbs.net
message_size_limit = 52428800

--
Mike A. Leonetti
As warm as green tea

From: Noel Jones on
On 5/19/2010 10:27 PM, Mike A. Leonetti wrote:
> I'm trying to have messages delivered via the $virtual_transport but it
> keeps being delivered by the mailbox_command. The $virtual_alias_maps
> should have all of the e-mail addresses for the system, but when the
> actual e-mail addresses get resolved they look like this:
> barbara-userdomain.com(a)domain.com where userdomain.com is the tenant
> domain on the server and userdomain.com is accepted by $mydesination below.

Domains to be delivered by the virtual transport should be
listed as virtual_mailbox_domains and not listed in mydestination.
http://www.postfix.org/BASIC_CONFIGURATION_README.html
http://www.postfix.org/VIRTUAL_README.html

Alternately, you can use a transport_maps entry to direct a
specific user to a specific transport.
http://www.postfix.org/transport.5.html


>
> I'm usually really not good at explaining things so if there is anything
> I can make more clear please let me know. Below is my main.cf.
>

If you need more help, please see:
http://www.postfix.org/DEBUG_README.html#mail


-- Noel Jones

From: "Mike A. Leonetti" on
So if I put "virtual_mailbox_domains = domain.com" mail will be
delivered using the virtual_transport I guess. But when it's doing the
alias it always adds "domain.com" at the end. How does it know to do that?

Mike A. Leonetti
As warm as green tea

On 05/19/10 23:51, Noel Jones wrote:
> On 5/19/2010 10:27 PM, Mike A. Leonetti wrote:
>
>> I'm trying to have messages delivered via the $virtual_transport but it
>> keeps being delivered by the mailbox_command. The $virtual_alias_maps
>> should have all of the e-mail addresses for the system, but when the
>> actual e-mail addresses get resolved they look like this:
>> barbara-userdomain.com(a)domain.com where userdomain.com is the tenant
>> domain on the server and userdomain.com is accepted by $mydesination below.
>>
> Domains to be delivered by the virtual transport should be
> listed as virtual_mailbox_domains and not listed in mydestination.
> http://www.postfix.org/BASIC_CONFIGURATION_README.html
> http://www.postfix.org/VIRTUAL_README.html
>
> Alternately, you can use a transport_maps entry to direct a
> specific user to a specific transport.
> http://www.postfix.org/transport.5.html
>
>
>
>> I'm usually really not good at explaining things so if there is anything
>> I can make more clear please let me know. Below is my main.cf.
>>
>>
> If you need more help, please see:
> http://www.postfix.org/DEBUG_README.html#mail
>
>
> -- Noel Jones
>

From: Noel Jones on
On 5/20/2010 8:32 AM, Mike A. Leonetti wrote:
> So if I put "virtual_mailbox_domains = domain.com" mail will be
> delivered using the virtual_transport I guess. But when it's doing the
> alias it always adds "domain.com" at the end. How does it know to do that?

Please don't top-post.

Bare user names will have "@$myorigin" appended to them.
Better to always use fully-qualified results in your table to
prevent surprises.

-- Noel Jones

From: "Mike A. Leonetti" on
On 05/20/10 12:40, Noel Jones wrote:
> On 5/20/2010 8:32 AM, Mike A. Leonetti wrote:
>
>> So if I put "virtual_mailbox_domains = domain.com" mail will be
>> delivered using the virtual_transport I guess. But when it's doing the
>> alias it always adds "domain.com" at the end. How does it know to do that?
>>
> Please don't top-post.
>
> Bare user names will have "@$myorigin" appended to them.
> Better to always use fully-qualified results in your table to
> prevent surprises.
>
> -- Noel Jones
>
Thank you.