here it is the main.cf
2bounce_notice_recipient = postmaster
address_verify_negative_cache = yes
address_verify_negative_expire_time = 3d
address_verify_negative_refresh_time = 3h
address_verify_poll_count = 3
address_verify_poll_delay = 3s
address_verify_positive_expire_time = 31d
address_verify_positive_refresh_time = 7d
address_verify_sender = double-bounce
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
append_dot_mydomain = no
biff = no
bounce_notice_recipient = postmaster
bounce_queue_lifetime = 5d
bounce_service_name = bounce
bounce_size_limit = 50000
bounce_template_file = /etc/postfix/bounce.template.cf
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
connection_cache_status_update_time = 600s
connection_cache_ttl_limit = 2s
content_filter =
default_destination_concurrency_limit = 20
default_destination_recipient_limit = 50
default_process_limit = 100
delay_notice_recipient = postmaster
disable_dns_lookups = no
double_bounce_sender = double-bounce
empty_address_recipient = MAILER-DAEMON
enable_original_recipient = yes
error_notice_recipient = postmaster
header_address_token_limit = 10240
header_checks =
ignore_mx_lookup_error = no
in_flow_delay = 1s
inet_interfaces = all
initial_destination_concurrency = 5
local_destination_concurrency_limit = 2
local_recipient_maps =
mailbox_size_limit = 102400000
mailbox_transport = lmtp:unix:/var/spool/postfix/var/run/cyrus/socket/lmtp
maximal_backoff_time = 4000s
maximal_queue_lifetime = 5d
message_size_limit = 102400000
mime_header_checks =
mime_nesting_limit = 100
minimal_backoff_time = 300s
mydestination =
myhostname = server-mail.touzeau.biz.touzeau.biz.local.local
mynetworks = 172.16.40.0/24
myorigin = /etc/mailname
qmgr_message_recipient_limit = 20000
qmgr_message_recipient_minimum = 10
queue_run_delay = 300s
readme_directory = no
receive_override_options =
recipient_canonical_maps =
recipient_delimiter = +
relay_recipient_maps =
relayhost =
smtp_connect_timeout = 30s
smtp_connection_cache_on_demand = yes
smtp_connection_cache_time_limit = 2s
smtp_connection_reuse_time_limit = 300s
smtp_destination_concurrency_limit = $default_destination_concurrency_limit
smtp_helo_timeout = 300s
smtp_sasl_password_maps = hash:/etc/postfix/smtp_sasl_password
smtp_send_xforward_command = yes
smtp_sender_dependent_authentication = no
smtp_tls_mandatory_protocols = SSLv3,TLSv1
smtp_tls_session_cache_database =
btree:/var/lib/postfix/smtpd_tls_session_cache
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_client_connection_count_limit = 50
smtpd_client_connection_rate_limit = 0
smtpd_client_message_rate_limit = 0
smtpd_client_new_tls_session_rate_limit = 0
smtpd_client_recipient_rate_limit = 0
smtpd_client_restrictions = check_client_access
ldap:smtpd_client_restrictions_check_client_access
smtpd_error_sleep_time = 1s
smtpd_hard_error_limit = 20
smtpd_recipient_limit = 1000
smtpd_recipient_restrictions =
permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination
smtpd_reject_unlisted_recipient = yes
smtpd_restriction_classes =
smtpd_sasl_authenticated_header = yes
smtpd_sasl_exceptions_networks =
smtpd_sasl_local_domain =
smtpd_sasl_path = smtpd
smtpd_sasl_security_options = noanonymous
smtpd_soft_error_limit = 10
smtpd_timeout = 300
smtpd_tls_CAfile = /etc/ssl/certs/postfix/ca.csr
smtpd_tls_ask_ccert = no
smtpd_tls_auth_only = no
smtpd_tls_cert_file = /etc/ssl/certs/postfix/ca.crt
smtpd_tls_key_file = /etc/ssl/certs/postfix/ca.key
smtpd_tls_received_header = yes
smtpd_tls_req_ccert = no
smtpd_tls_security_level = may
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
undisclosed_recipients_header = To: undisclosed-recipients:;
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_gid_maps = static:5000
virtual_mailbox_limit = 102400000
virtual_transport = $mailbox_transport
virtual_uid_maps = static:5000
content of /etc/postfix/virtual
------------------------------------
@company.tld all-us...@company.tld
content of /etc/postfix/aliases
------------------------------------
user1 us...@company.tld
user2 us...@company.tld
all-users all-us...@company.tld
piece of log when sending from external to user1
Jul 1 14:38:37 server-mail postfix/cleanup[8627]: 67B7F2BCC:
message-id=<20100701123823.67b7f2...@server-mail.touzeau.biz.touzeau.biz.local.local>
Jul 1 14:38:37 server-mail postfix/qmgr[4773]: 67B7F2BCC:
from=<t...@domain.tld>, size=415, nrcpt=1 (queue active)
Jul 1 14:38:37 server-mail postfix/smtp[8737]: 67B7F2BCC:
to=<all-us...@company.tld>, orig_to=<us...@company.tld>, ....
so user1 exists but postfix whant to send to all-us...@company.tld has
the catch all
On 01/07/2010 11:49, Markus Schönhaber wrote:
01.07.2010 10:49, David Touzeau:
I would like to know if for this kind of virtual maps
use...@domain.tld use...@domain.tld
use...@domain.tld use...@domain.tld
use...@domain.tld use...@domain.tld
@domain.tld noexist...@domain.tld
when i send an email to use...@domain.tld postfix send to
noexist...@domain.tld
when i send an email to use...@domain.tld postfix send to
noexist...@domain.tld
when i send an email to use...@domain.tld postfix send to
noexist...@domain.tl
when i send an email to anonym...@domain.tld postfix send to
noexist...@domain.tld
is it a normal behavior that postfix send all mails to catch-all even
the email address is existent in the hash table ?
No. Look at
man 5 virtual
Did you postmap the table?
If you did, provide the output of
postconf -n
Otherwise it's hard to tell what is wrong.
Nevertheless, I'd strongly recommend that you get rid of the catch-all.