Re: Confirm: home_mailbox not needed/used in this setup?

2009-01-23 Thread Charles Marcus
On 1/21/2009, Victor Duchovni (victor.ducho...@morganstanley.com) wrote:
 Your question cannot be answered based just on the data you have
 provided.

Many thanks for the response Victor... I've been trying to digest it
fully... I thought I had a good, basic understanding of the different
address classes, but looks like I need to ... go back to class... ;)

-- 

Best regards,

Charles


Confirm: home_mailbox not needed/used in this setup?

2009-01-21 Thread Charles Marcus
Hello,

I am cleaning up a friends postfix install, and just want to confirm
something...

His system uses only virtual users, and according to the man page,
home_mailbox is only for local users, so, considering the following
complete postconf -n output, I think I can safely remove this setting?

myhost ~ # postconf -n
alias_maps = hash:/etc/mail/aliases, hash:/var/lib/mailman/data/aliases
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
home_mailbox = .maildir/
message_size_limit = 512
mydomain = example.com
myhostname = smtp.example.com
mynetworks = 127.0.0.0/8
parent_domain_matches_subdomains =
recipient_delimiter = +
relay_domains =
relayhost = [smtp.myisp.com]
smtpd_recipient_restrictions = permit_mynetworks,
permit_sasl_authenticated, reject_unauth_destination
reject_unlisted_sender, reject_unlisted_recipient,
reject_invalid_helo_hostname, reject_non_fqdn_helo_hostname,
reject_unknown_sender_domain, reject_unknown_reverse_client_hostname,
reject_rbl_client cbl.abuseat.org, reject_rbl_client list.dsbl.org,
reject_rbl_client ix.dnsbl.manitu.net, reject_rbl_client
korea.services.net, reject_rbl_client zen.spamhaus.org
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/ssl/wildcard.crt
smtpd_tls_key_file = /etc/ssl/wildcard.key
smtpd_use_tls = yes
transport_maps = hash:/etc/postfix/transport
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf,
hash:/var/lib/mailman/data/virtual-mailman
virtual_gid_maps = static:207
virtual_mailbox_base = /var/virtual/mail
virtual_mailbox_domains =
mysql:/etc/postfix/mysql_virtual_mailbox_domains.cf
virtual_mailbox_limit = 512
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_minimum_uid = 207
virtual_uid_maps = static:207
myhost ~ #

-- 

Best regards,

Charles


Re: Confirm: home_mailbox not needed/used in this setup?

2009-01-21 Thread Victor Duchovni
On Wed, Jan 21, 2009 at 10:41:04AM -0500, Charles Marcus wrote:

 His system uses only virtual users, and according to the man page,
 home_mailbox is only for local users, so, considering the following
 complete postconf -n output, I think I can safely remove this setting?
 
 myhost ~ # postconf -n
 alias_maps = hash:/etc/mail/aliases, hash:/var/lib/mailman/data/aliases
 home_mailbox = .maildir/
 mydomain = example.com
 myhostname = smtp.example.com
 relay_domains =
 transport_maps = hash:/etc/postfix/transport
 virtual_alias_maps =
   mysql:/etc/postfix/mysql_virtual_alias_maps.cf,
   hash:/var/lib/mailman/data/virtual-mailman
 virtual_mailbox_domains =
   mysql:/etc/postfix/mysql_virtual_mailbox_domains.cf
 virtual_mailbox_maps =
   mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf

Address classes:

LOCAL: 
# Default value, not mentioned in main.cf:
mydestination = $myhostname, localhost.$mydomain, localhost

So u...@smtp.example.com and u...@localhost are local addresses,
likely subject to local delivery via alias_maps and home_mailbox.

Also $myorigin has its default value of $myhostname, so mail to just
user is also delivered via local(8).

VIRTUAL MAILBOX:
Domains that are keys in the mysql_virtual_mailbox_domains.cf table.
Are any of the above local domains listed?

This mail is handled via virtual(8) and does not use alias_maps or
home_mailbox.

VIRTUAL ALIAS:
Are any domains listed as keys in virtual_alias_maps table? You have
explicitly configured virtual_alias_domains, so this defaults to
$virtual_alias_maps.

Also are any/all users in either of the above classes subject to
virtual alias rewriting.

It sure looks like mailman is used so at least some addresses are
delivered to the local(8) transport, it is not clear whether these
are always rewritten to non-local addresses via aliases, or not.

OTHER:
The transport table could also change the delivery logic for one
or more domains.

Your question cannot be answered based just on the data you have
provided.

The home_mailbox parameter is used when mail would otherwise be delivered
to $mail_spool_directory for a system user via the local(8) delivery agent.
Whether this is in fact used depends on the details of the various tables.

-- 
Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the Reply-To header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
mailto:majord...@postfix.org?body=unsubscribe%20postfix-users

If my response solves your problem, the best way to thank me is to not
send an it worked, thanks follow-up. If you must respond, please put
It worked, thanks in the Subject so I can delete these quickly.