Hi all, I am trying to add a 2nd domain to postfix on my existing debian server. I have followed the tutorial here: https://www.howtoforge.com/linux_postfix_virtual_hosting . Incoming emails should save a file in the virtual folder structure, but nothing happens. When I revert to the old user based setup the emails get saved as a file which I would also expect after following the tutorial. postconf -n: Code: allow_percent_hack = no append_at_myorigin = no append_dot_mydomain = no biff = no broken_sasl_auth_clients = yes config_directory = /etc/postfix default_destination_concurrency_limit = 2 home_mailbox = Maildir/ inet_interfaces = all mailbox_size_limit = 0 message_size_limit = 104857600 mime_header_checks = regexp:/etc/postfix/mime_header_checks mydestination = server.startdedicated.de, localhost.localdomain, servername, localhost myhostname = localhost mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 myorigin = /etc/mailname readme_directory = no recipient_delimiter = + relayhost = smtp_sasl_security_options = noanonymous smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache smtpd_delay_reject = yes smtpd_helo_restrictions = reject_invalid_hostname smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, check_relay_domains smtpd_sasl_auth_enable = yes smtpd_sasl_authenticated_header = yes smtpd_sasl_local_domain = $myhostname smtpd_sasl_path = private/auth smtpd_sasl_type = dovecot smtpd_sender_restrictions = reject_unknown_address smtpd_tls_cert_file = /etc/ssl/certs/postfix.pem smtpd_tls_key_file = /etc/ssl/private/postfix.key smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtpd_use_tls = yes swap_bangpath = no unknown_local_recipient_reject_code = 550 virtual_gid_maps = static:1000 virtual_mailbox_base = /home/vmail/vmail virtual_mailbox_domains = /etc/postfix/vhosts.txt virtual_mailbox_maps = hash:/etc/postfix/vmaps.txt virtual_uid_maps = static:1005 I am not getting any error messages. Any ideas why incoming emails are not saved? Thanks
Can you show the lines that appear in your postfix logfile[1] while you try to send an email which is not saved? [1] depends on your system, probably /var/log/mail.log Doublecheck the contents of /etc/postfix/vhosts.txt /etc/postfix/vmaps.txt If you are just starting, I would recommend you to have a look at mailcow. (https://mailcow.email/)
Thanks Steini The issue is solved, I should have paid more attention to the logs. The virtual_mailbox_limit was sooo small that even a simple test email got rejected.