Sorry, this is a beginners question, but it seems I'm blind on
the error. I'm sure someone finds it quickly.

This is a postfix, and should deliver mails to "mydom.ain" locally. That
works, but postfix always delivers all e-mail to anything @mydom.ain,
even if that user doesn't exist.

The virtual table is referenced, but anything to @mydom.ain gets
delivered:
virtual_mailbox_maps = hash:/etc/postfix/virtual
virtual_transport = dbmail-lmtp:localhost:24
The "virtual" table contains only 3 test entries. Where is my problem?

# postconf -n
alias_maps = hash:/etc/aliases
anvil_status_update_time = 1d
biff = no
canonical_maps = hash:/etc/postfix/canonical
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
defer_transports delay_warning_time = 1h
disable_dns_lookups = no
disable_mime_output_conversion = no
html_directory = /usr/share/doc/packages/postfix-doc/html
inet_interfaces = all
inet_protocols = all
local_header_rewrite_clients mail_owner = postfix
mail_spool_directory = /var/mail
mailbox_command mailbox_size_limit = 0
mailbox_transport mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
masquerade_classes = envelope_sender, header_sender, header_recipient
masquerade_domains masquerade_exceptions = root
message_size_limit = 102400000
message_strip_characters = \0
mydestination = $myhostname, localhost.$mydomain, localhost
myhostname = mail2.mydom.ain
mynetworks_style = subnet
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/packages/postfix-doc/README_FILES
recipient_delimiter = +
relay_clientcerts = hash:/etc/postfix/relay_ccerts
relayhost = mailsrv1.zmi.at
relocated_maps = hash:/etc/postfix/relocated
sample_directory = /usr/share/doc/packages/postfix-doc/samples
sender_canonical_maps = hash:/etc/postfix/sender_canonical
sendmail_path = /usr/sbin/sendmail
setgid_group = maildrop
smtp_enforce_tls = no
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtp_tls_cert_file = /etc/postfix/ssl/certs/postfixcert.pem
smtp_tls_key_file = /etc/postfix/ssl/certs/postfixkey.pem
smtp_tls_session_cache_database btree:/var/lib/postfix/smtpd_tls_session_cache
smtp_tls_session_cache_timeout = 3600s
smtp_use_tls = yes
smtpd_client_connection_count_limit = 10
smtpd_client_connection_rate_limit = 100
smtpd_client_event_limit_exceptions = $mynetworks
smtpd_client_message_rate_limit = 100
smtpd_client_recipient_rate_limit = 300
smtpd_client_restrictions = permit_sasl_authenticated,
permit_mynetworks, cidr:/etc/postfix/client_ip_checks.cidr,
reject_unknown_client, reject
smtpd_error_sleep_time = 0
smtpd_hard_error_limit = 5
smtpd_helo_required = yes
smtpd_helo_restrictions smtpd_recipient_limit = 50
smtpd_recipient_restrictions = reject_unlisted_recipient,
reject_non_fqdn_recipient, permit_tls_clientcerts,
permit_sasl_authenticated, permit_mynetworks,
cidr:/etc/postfix/client_ip_checks.cidr, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sender_restrictions = hash:/etc/postfix/access,
reject_unknown_sender_domain
smtpd_soft_error_limit = 5
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_ask_ccert = yes
smtpd_tls_cert_file = /etc/postfix/ssl/certs/postfixcert.pem
smtpd_tls_key_file = /etc/postfix/ssl/certs/postfixkey.pem
smtpd_tls_received_header = yes
smtpd_use_tls = yes
strict_8bitmime = no
strict_rfc821_envelopes = yes
tls_random_source = dev:/dev/urandom
transport_maps = hash:/etc/postfix/transport
unknown_client_reject_code = 550
unknown_local_recipient_reject_code = 550
unverified_recipient_reject_code = 550
virtual_alias_domains virtual_alias_maps = hash:/etc/postfix/virtual
virtual_gid_maps = static:500
virtual_mailbox_domains = mydom.ain
virtual_mailbox_maps = hash:/etc/postfix/virtual
virtual_minimum_uid = 500
virtual_transport = dbmail-lmtp:localhost:24
virtual_uid_maps = static:500


--
mit freundlichen Grüssen,
Michael Monnerie, Ing. BSc

it-management Internet Services: Protéger
http://proteger.at [gesprochen: Prot-e-schee]
Tel: +43 660 / 415 6531

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to