Hello everybody, as previously mentioned I have another issue I like to solve. I would like my users to use dovecot to retrieve their emails and postfix is my local hero.
The users are "virtual" users, meaning they do not have a real account on the mail machine, they don't exist in /etc/passwd and /etc/groups. Dovecot manages logins with its own passwd/users files. pop3 access and smtp/587 delivery both work. Only mail reception is not working, that is postfix' delivery into the users mailboxes. I have setup dovecot accordingly, and it uses the Maildir/ style for storage, as e.g. proposed by the ubuntu howto at https://help.ubuntu.com/community/PostfixVirtualMailBoxClamSmtpHowto Only issue is, postfix won't work as described on that. The above howto puts i...@domain1.com domain1.com/info/ al...@domain1.com domain1.com/info/ sa...@domain1.com domain1.com/sales/ i...@domain2.com domain2.com/info/ sa...@domain2.com domain2.com/sales/ into the "virtual" map file, but pf still somehow doesn't know how to locally deliver for these users. It accepts the mail for user i...@domain1.com Nov 5 14:04:50 blueberry postfix/lmtp[21493]: 8390D237C0FF0: to=<domain1.com/info/@yadda.dadd-do.de>, orig_to=<i...@domain1.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.14, delays=0/0/0/0.13, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as A0CCA237C0F0A) Nov 5 14:04:50 blueberry postfix/local[21484]: A0CCA237C0F0A: to=<domain1.com/info/@yadda.dadd-do.de>, relay=local, delay=0.02, delays=0.01/0/0/0.01, dsn=5.1.1, status=bounced (unknown user: "domain1.com/info/") the postfix main.cf has home_mailbox = Maildir/ virtual_mailbox_base = /var/spool/mail/vmail virtual_mailbox_domains = $virtual_mailbox_maps virtual_mailbox_maps = btree:/etc/postfix/virtual virtual_uid_maps = static:500 virtual_gid_maps = static:1001 virtual_transport = dovecot recipient_delimiter = + append_dot_mydomain = no No matter if recipient_delimiter = + append_dot_mydomain = no are in, or virtual_transport = dovecot is set. I can't get it to work. What am I missing? Cheers, Florian =========================================================================== Note: this message was send by me *only* if the eMail message contains a correct pgp signature corresponding to my address at flo...@floppy.org. Do you need my PGP public key? Check out http://www.floppy.org or send me an email with the subject "send pgp public key" to this address of mine. Thx!
2bounce_notice_recipient = postmaster-bounce address_verify_map = btree:/var/lib/postfix/verify address_verify_negative_cache = yes address_verify_negative_expire_time = 3d address_verify_negative_refresh_time = 300s address_verify_positive_expire_time = 31d address_verify_positive_refresh_time = 7d alias_database = btree:/etc/aliases alias_maps = btree:/etc/aliases allow_percent_hack = no always_bcc = append_dot_mydomain = no biff = no body_checks = regexp:/etc/postfix/body_checks.regexp bounce_notice_recipient = postmaster-bounce bounce_queue_lifetime = 1d bounce_size_limit = 10240 broken_sasl_auth_clients = yes canonical_maps = btree:/etc/postfix/canonical command_directory = /usr/sbin compatibility_level = 2 content_filter = smtp-amavis:[127.0.0.1]:10024 daemon_directory = /usr/lib/postfix data_directory = /var/lib/postfix debug_peer_level = 2 debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin xxgdb $daemon_directory/$process_name $process_id & sleep 5 default_database_type = btree default_destination_concurrency_limit = 10 default_privs = nobody default_process_limit = 12 defer_transports = hold delay_notice_recipient = postmaster-delay delay_warning_time = 2d disable_dns_lookups = no disable_vrfy_command = yes error_notice_recipient = postmaster-error header_checks = regexp:/etc/postfix/block255, regexp:/etc/postfix/header_checks.regexp home_mailbox = Maildir/ html_directory = /srv/www/yadda.dadd-do.de/html/postfix inet_interfaces = all inet_protocols = all lmtp_tls_ciphers = export lmtp_tls_mandatory_protocols = !SSLv2 !SSLv3 lmtp_tls_protocols = !SSLv2 !SSLv3 local_destination_concurrency_limit = 4 mail_owner = postfix mail_spool_directory = /var/mail mailbox_size_limit = 0 mailq_path = /usr/bin/mailq manpage_directory = /usr/share/man masquerade_classes = envelope_sender, header_sender, header_recipient masquerade_domains = masquerade_exceptions = root maximal_queue_lifetime = 3d message_size_limit = 125000000 meta_directory = /etc/postfix mydestination = localhost.$mydomain, localhost, localhost.localdomain, $myhostname myhostname = yadda.dadd-do.de mynetworks = 127.0.0.0/8 [::1]/128 ... newaliases_path = /usr/bin/newaliases notify_classes = bounce, resource, software, delay, policy postscreen_access_list = permit_mynetworks cidr:/etc/postfix/postscreen_access.cidr postscreen_bare_newline_action = drop postscreen_blacklist_action = drop postscreen_dnsbl_action = enforce postscreen_dnsbl_sites = postscreen_dnsbl_threshold = 2 postscreen_greet_action = enforce queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/packages/postfix/README_FILES recipient_delimiter = + relay_domains = btree:/etc/postfix/relay_domains relay_recipient_maps = btree:/etc/postfix/recipient_maps.outpost relayhost = outpost.post-peine.de relocated_maps = btree:/etc/postfix/relocated resolve_dequoted_address = yes sample_directory = /usr/share/doc/packages/postfix/samples sendmail_path = /usr/sbin/sendmail setgid_group = postdrop shlib_directory = /usr/lib/postfix smtp_sasl_auth_enable = yes smtp_sasl_password_maps = btree:/etc/postfix/sasl_passwd smtp_sasl_security_options = noanonymous smtp_send_xforward_command = yes smtp_tls_CApath = /etc/ssl/certs smtp_tls_cert_file = /etc/ssl/certs/blueberry.pem smtp_tls_ciphers = export smtp_tls_key_file = /etc/ssl/private/blueberry.key smtp_tls_loglevel = 2 smtp_tls_mandatory_protocols = !SSLv2 !SSLv3 smtp_tls_note_starttls_offer = yes smtp_tls_policy_maps = btree:/etc/postfix/tls_nach_ziel smtp_tls_protocols = !SSLv2 !SSLv3 smtp_tls_security_level = may smtp_tls_session_cache_database = btree:/var/lib/postfix/smtp_session_cache smtp_tls_session_cache_timeout = 3600s smtp_use_tls = no smtpd_authorized_xforward_hosts = 127.0.0.0/8 [::1]/128 smtpd_banner = $myhostname ESMTP $mail_name smtpd_client_restrictions = permit_mynetworks smtpd_error_sleep_time = 1 smtpd_hard_error_limit = 3 smtpd_proxy_timeout = 3600s smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, check_policy_service inet:localhost:10023 smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination smtpd_sasl_auth_enable = yes smtpd_sasl_path = private/auth smtpd_sasl_type = dovecot smtpd_soft_error_limit = 7 smtpd_timeout = 3600s smtpd_tls_CApath = /etc/ssl/certs smtpd_tls_ask_ccert = yes smtpd_tls_cert_file = /etc/ssl/certs/blueberry.pem smtpd_tls_ciphers = export smtpd_tls_key_file = /etc/ssl/private/blueberry.key smtpd_tls_loglevel = 2 smtpd_tls_mandatory_protocols = !SSLv2 !SSLv3 smtpd_tls_protocols = !SSLv2 !SSLv3 smtpd_tls_received_header = yes smtpd_tls_security_level = may smtpd_tls_session_cache_database = btree:/var/lib/postfix/smtpd_session_cache smtpd_tls_session_cache_timeout = 7200s smtpd_use_tls = yes smtputf8_enable = no strict_rfc821_envelopes = yes swap_bangpath = no tls_random_source = dev:/dev/urandom transport_maps = btree:/etc/postfix/transport unknown_local_recipient_reject_code = 550 unverified_sender_reject_code = 554 virtual_alias_maps = $virtual_maps virtual_gid_maps = static:1001 virtual_mailbox_base = /var/spool/mail/vmail virtual_mailbox_domains = $virtual_mailbox_maps virtual_mailbox_maps = btree:/etc/postfix/virtual virtual_maps = btree:/etc/postfix/virtual virtual_transport = dovecot virtual_uid_maps = static:500
signature.asc
Description: OpenPGP digital signature