Hi all,
i started anew with a fresh installation. For learning reasons, i set up
a multi-instance postfix installation, starting with
https://www.postfix.org/MULTI_INSTANCE_README.html
As there is no inner network, i should have renamed postfix-out to
postfix-local. It listens to 10025 and gets mails from amavis and the
null client. It delivers local mail via dovecot-lmtp to their respective
mailboxes.
postfix-in gets mails from the outer world, checks it with postscreen,
relays the virtual_alias_domains, and delivers local domains to amavis
and further to postfix-out.
Most time, this works fine. But there is a loop between the null client
instance and postfix-out. The null client bywater.qno.de takes local
mail from p.e. www-data, adds qno.de via $myorigin and sends mail to
mail.qno.de:25 (also tried to amavis:10024 and postfix-out:10025) where
it should be delivered by lmtp. But it bounces back and shows in the log
of the null client:
2025-06-20T21:30:02.124789+02:00 bywater postfix/smtp[668080]:
121921E4995: to=<www-d...@qno.de>, relay=none, delay=0.03,
delays=0.03/0/0/0, dsn=5.4.6, status=bounced (mail for qno.de loops back
to myself)
postconf -c /etc/postfix -n:
alias_database =
alias_maps =
compatibility_level = 3.9
config_directory = /etc/postfix
cyrus_sasl_config_path = /etc/postfix/sasl
default_database_type = cdb
indexed = ${default_database_type}:${config_directory}/${tabledir}
local_recipient_maps =
local_transport = relay:[mail.qno.de]
master_service_disable = inet
multi_instance_directories = /etc/postfix-out /etc/postfix-in
/etc/postfix-sub /etc/postfix-sec
multi_instance_enable = yes
multi_instance_wrapper = ${command_directory}/postmulti -p --
mydestination =
mydomain = qno.de
myhostname = bywater.qno.de
myorigin = $mydomain
smtp_generic_maps = ${indexed}generic
tabledir = tables.d/
virtual_alias_maps = ${indexed}virtual
postconf -c /etc/postfix-out -n:
alias_database =
alias_maps =
authorized_submit_users = root
compatibility_level = 3.6
config_directory = /etc/postfix-out
data_directory = /var/lib/postfix-out
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd
$daemon_directory/$process_name $process_id & sleep 5
default_database_type = cdb
inet_interfaces = 127.0.0.1,::1
local_header_rewrite_clients =
local_recipient_maps =
local_transport = error:5.1.1 Mailbox unavailable
master_service_disable =
multi_instance_enable = yes
multi_instance_group = mta
multi_instance_name = postfix-out
mydestination =
mydomain = qno.de
myhostname = mail.qno.de
mynetworks_style = host
mysql_scripts = mysql:${tabledir}
parent_domain_matches_subdomains =
queue_directory = /var/spool/postfix-out
recipient_delimiter = -
smtp_bind_address = 0.0.0.0
smtpd_authorized_xforward_hosts = $mynetworks
smtpd_banner = $myhostname ESMTP $mail_name
smtpd_client_connection_count_limit = 0
smtpd_client_event_limit_exceptions = $mynetworks
smtpd_client_port_logging = no
smtpd_recipient_restrictions = permit_mynetworks, reject
smtpd_relay_restrictions =
smtpd_timeout = 1200s
tabledir = ${config_directory}/tables.d/
unknown_local_recipient_reject_code = 550
virtual_alias_maps = ${mysql_scripts}virtual_alias_maps.cf,
${mysql_scripts}virtual_email2email.cf
virtual_gid_maps = static:5000
virtual_mailbox_base = /var/mail/vhosts
virtual_mailbox_domains = ${mysql_scripts}virtual_mailbox_domains.cf
virtual_mailbox_maps = ${mysql_scripts}virtual_mailbox_maps.cf
virtual_minimum_uid = 10000
virtual_transport = lmtp:unix:private/dovecot-lmtp
virtual_uid_maps = static:5000
www-d...@qno.de has a table entry as alias for q...@qno.de, and
q...@qno.de is a virtual user whu can login to dovecot and read its imap
mailbox.
Where did i go wrong?
Kind regards,
QNo
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org