Postfix - LMTP Transport funktioniert nicht
Hallo zusammen,
ich baue mir aktuell einen neuen Mailserver zusammen.
Ziel dabei ist, dass Postfix und Dovecot getrennt auf zwei verschiedenen Maschinen läuft.
Was funktioniert: Mailversand
Was funktioniert nicht: Mailempfang
Der Mail log zeigt:
Was mich dabei wundert ist das hier:
Das Setup ist für virtuellen Transport konfiguriert. Die Domain ist in der Datenbank hinterlegt, der Transport lmtp:[dovecot.local]:24 wird auch korrekt von dort geladen.
Was läuft hier schief? Ein telnet dovecot.local 24 von der Postfix-Maschine funktioniert wunderbar. Mail wird auch zugestellt.
Anbei meine Konfig für Postfix.
Vielen Dank, freue mich auf Hilfe
Gruß
Marco
postconf
Hallo zusammen,
ich baue mir aktuell einen neuen Mailserver zusammen.
Ziel dabei ist, dass Postfix und Dovecot getrennt auf zwei verschiedenen Maschinen läuft.
Was funktioniert: Mailversand
Was funktioniert nicht: Mailempfang
Der Mail log zeigt:
Code:
...
2017-06-30T12:06:50.494246+02:00 mx postfix/qmgr[100]: qmgr_active_feed: deferred/B/BC14C4A6
2017-06-30T12:06:50.494250+02:00 mx postfix/qmgr[100]: qmgr_active_feed: skip BC14C4A6 (130 seconds)
2017-06-30T12:06:50.494263+02:00 mx postfix/qmgr[100]: done deferred queue scan
2017-06-30T12:06:51.451131+02:00 mx postfix[101]: Postfix is running with backwards-compatible default settings
2017-06-30T12:06:51.451204+02:00 mx postfix[101]: See http://www.postfix.org/COMPATIBILITY_README.html for details
2017-06-30T12:06:51.451241+02:00 mx postfix[101]: To disable backwards compatibility use "postconf compatibility_level=2" and "postfix reload"
2017-06-30T12:06:51.463564+02:00 mx postfix/postfix-script[107]: fatal: the Postfix mail system is already running
2017-06-30T12:11:50.512270+02:00 mx postfix/qmgr[100]: qmgr_scan_start: start deferred queue scan
2017-06-30T12:11:50.512473+02:00 mx postfix/qmgr[100]: qmgr_active_feed: queue deferred
2017-06-30T12:11:50.512512+02:00 mx postfix/qmgr[100]: qmgr_active_feed: deferred/2/25D174A5
2017-06-30T12:11:50.512573+02:00 mx postfix/qmgr[100]: qmgr_message_alloc: active 25D174A5
2017-06-30T12:11:50.512624+02:00 mx postfix/qmgr[100]: 25D174A5: recipient limit 5000
2017-06-30T12:11:50.530544+02:00 mx postfix/qmgr[100]: 25D174A5: from=<someone@gmail.com>, size=1937, nrcpt=1 (queue active)
2017-06-30T12:11:50.530630+02:00 mx postfix/qmgr[100]: start sorted recipient list
2017-06-30T12:11:50.530639+02:00 mx postfix/qmgr[100]: qmgr_message_sort: postmaster@exampledomain.local
2017-06-30T12:11:50.530643+02:00 mx postfix/qmgr[100]: end sorted recipient list
2017-06-30T12:11:50.530688+02:00 mx postfix/qmgr[100]: connect to subsystem private/rewrite
2017-06-30T12:11:50.530714+02:00 mx postfix/qmgr[100]: send attr request = resolve
2017-06-30T12:11:50.530718+02:00 mx postfix/qmgr[100]: send attr sender = someone@gmail.com
2017-06-30T12:11:50.530722+02:00 mx postfix/qmgr[100]: send attr address = postmaster@exampledomain.local
2017-06-30T12:11:50.683113+02:00 mx postfix/qmgr[100]: private/rewrite socket: wanted attribute: flags
2017-06-30T12:11:50.683131+02:00 mx postfix/qmgr[100]: input attribute name: flags
2017-06-30T12:11:50.683137+02:00 mx postfix/qmgr[100]: input attribute value: 0
2017-06-30T12:11:50.683146+02:00 mx postfix/qmgr[100]: private/rewrite socket: wanted attribute: transport
2017-06-30T12:11:50.683150+02:00 mx postfix/qmgr[100]: input attribute name: transport
2017-06-30T12:11:50.683153+02:00 mx postfix/qmgr[100]: input attribute value: lmtp
2017-06-30T12:11:50.683157+02:00 mx postfix/qmgr[100]: private/rewrite socket: wanted attribute: nexthop
2017-06-30T12:11:50.683160+02:00 mx postfix/qmgr[100]: input attribute name: nexthop
2017-06-30T12:11:50.683164+02:00 mx postfix/qmgr[100]: input attribute value: [dovecot.local]:24
2017-06-30T12:11:50.683167+02:00 mx postfix/qmgr[100]: private/rewrite socket: wanted attribute: recipient
2017-06-30T12:11:50.683171+02:00 mx postfix/qmgr[100]: input attribute name: recipient
2017-06-30T12:11:50.683174+02:00 mx postfix/qmgr[100]: input attribute value: postmaster@exampledomain.local
2017-06-30T12:11:50.683179+02:00 mx postfix/qmgr[100]: private/rewrite socket: wanted attribute: flags
2017-06-30T12:11:50.683183+02:00 mx postfix/qmgr[100]: input attribute name: flags
2017-06-30T12:11:50.683186+02:00 mx postfix/qmgr[100]: input attribute value: 1024
2017-06-30T12:11:50.683191+02:00 mx postfix/qmgr[100]: private/rewrite socket: wanted attribute: (list terminator)
2017-06-30T12:11:50.683195+02:00 mx postfix/qmgr[100]: input attribute name: (end)
2017-06-30T12:11:50.683201+02:00 mx postfix/qmgr[100]: resolve_clnt: `someone@gmail.com' -> `postmaster@exampledomain.local' -> transp=`lmtp' host=`[dovecot.local]:24' rcpt=`postmaster@exampledomain.local' flags= class=virtual
2017-06-30T12:11:50.683270+02:00 mx postfix/qmgr[100]: qmgr_transport_create: lmtp concurrency 20 recipients 50
2017-06-30T12:11:50.683288+02:00 mx postfix/qmgr[100]: start sorted recipient list
2017-06-30T12:11:50.683292+02:00 mx postfix/qmgr[100]: qmgr_message_sort: postmaster@exampledomain.local
2017-06-30T12:11:50.683295+02:00 mx postfix/qmgr[100]: end sorted recipient list
2017-06-30T12:11:50.683317+02:00 mx postfix/qmgr[100]: trigger_server_accept_fifo: trigger arrived
2017-06-30T12:11:50.683335+02:00 mx postfix/qmgr[100]: master_notify: status 0
2017-06-30T12:11:50.683341+02:00 mx postfix/qmgr[100]: request: 87 (W)
2017-06-30T12:11:50.683346+02:00 mx postfix/qmgr[100]: qmgr_scan_start: start incoming queue scan
2017-06-30T12:11:50.683378+02:00 mx postfix/qmgr[100]: master_notify: status 1
2017-06-30T12:11:50.683387+02:00 mx postfix/qmgr[100]: qmgr_transport_select: lmtp
2017-06-30T12:11:50.683391+02:00 mx postfix/qmgr[100]: qmgr_active_drain: allocate lmtp
2017-06-30T12:11:50.683430+02:00 mx postfix/qmgr[100]: connect to subsystem private/lmtp: No such file or directory
2017-06-30T12:11:50.683443+02:00 mx postfix/qmgr[100]: warning: connect to transport private/lmtp: No such file or directory
2017-06-30T12:11:50.683471+02:00 mx postfix/qmgr[100]: done incoming queue scan
2017-06-30T12:11:50.683504+02:00 mx postfix/qmgr[100]: qmgr_active_feed: queue deferred
2017-06-30T12:11:50.683522+02:00 mx postfix/qmgr[100]: qmgr_active_feed: deferred/B/BC14C4A6
2017-06-30T12:11:50.683568+02:00 mx postfix/qmgr[100]: qmgr_message_alloc: active BC14C4A6
2017-06-30T12:11:50.683593+02:00 mx postfix/qmgr[100]: BC14C4A6: recipient limit 5000
2017-06-30T12:11:50.690899+02:00 mx postfix/qmgr[100]: BC14C4A6: from=<someone@gmail.com>, size=1937, nrcpt=1 (queue active)
2017-06-30T12:11:50.702251+02:00 mx postfix/qmgr[100]: start sorted recipient list
2017-06-30T12:11:50.702266+02:00 mx postfix/qmgr[100]: qmgr_message_sort: postmaster@exampledomain.local
2017-06-30T12:11:50.702280+02:00 mx postfix/qmgr[100]: end sorted recipient list
2017-06-30T12:11:50.702288+02:00 mx postfix/qmgr[100]: resolve_clnt: cached: `someone@gmail.com' -> `postmaster@exampledomain.local' -> transp=`lmtp' host=`[dovecot.local]:24' rcpt=`postmaster@exampledomain.local' flags= class=virtual
2017-06-30T12:11:50.702295+02:00 mx postfix/qmgr[100]: start sorted recipient list
...
Was mich dabei wundert ist das hier:
Code:
connect to subsystem private/lmtp: No such file or directory
Das Setup ist für virtuellen Transport konfiguriert. Die Domain ist in der Datenbank hinterlegt, der Transport lmtp:[dovecot.local]:24 wird auch korrekt von dort geladen.
Was läuft hier schief? Ein telnet dovecot.local 24 von der Postfix-Maschine funktioniert wunderbar. Mail wird auch zugestellt.
Anbei meine Konfig für Postfix.
Vielen Dank, freue mich auf Hilfe
Gruß
Marco
postconf
Code:
$ postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
bounce_queue_lifetime = 1d
broken_sasl_auth_clients = yes
disable_vrfy_command = yes
html_directory = /usr/share/doc/postfix/html
inet_interfaces = all
inet_protocols = all
mailbox_size_limit = 0
maximal_backoff_time = 1800s
maximal_queue_lifetime = 1d
message_size_limit = 104857600
minimal_backoff_time = 300s
mydestination = mx.exampledomain.local, localhost
myhostname = mx.exampledomain.local
mynetworks = 127.0.0.0/8 172.17.0.0/16 172.19.0.0/16 [::ffff:127.0.0.0]/104 [::1]/128
myorigin = mx.exampledomain.local
notify_classes = bounce, 2bounce, delay, policy, resource, software
postscreen_access_list = permit_mynetworks
postscreen_bare_newline_enable = no
postscreen_blacklist_action = drop
postscreen_cache_cleanup_interval = 24h
postscreen_cache_map = proxy:btree:$data_directory/postscreen_cache
postscreen_dnsbl_action = enforce
postscreen_dnsbl_sites = b.barracudacentral.org=127.0.0.2*7 dnsbl.inps.de=127.0.0.2*7 bl.mailspike.net=127.0.0.2*5 bl.mailspike.net=127.0.0.[10;11;12]*4 dnsbl.sorbs.net=127.0.0.10*8 dnsbl.sorbs.net=127.0.0.5*6 dnsbl.sorbs.net=127.0.0.7*3 dnsbl.sorbs.net=127.0.0.8*2 dnsbl.sorbs.net=127.0.0.6*2 dnsbl.sorbs.net=127.0.0.9*2 zen.spamhaus.org=127.0.0.[10;11]*8 zen.spamhaus.org=127.0.0.[4..7]*6 zen.spamhaus.org=127.0.0.3*4 zen.spamhaus.org=127.0.0.2*3 hostkarma.junkemailfilter.com=127.0.0.2*3 hostkarma.junkemailfilter.com=127.0.0.4*1 hostkarma.junkemailfilter.com=127.0.1.2*1 wl.mailspike.net=127.0.0.[18;19;20]*-2 hostkarma.junkemailfilter.com=127.0.0.1*-2
postscreen_dnsbl_threshold = 8
postscreen_dnsbl_ttl = 5m
postscreen_greet_action = enforce
postscreen_greet_banner = $smtpd_banner
postscreen_greet_ttl = 2d
postscreen_greet_wait = 3s
postscreen_non_smtp_command_enable = no
postscreen_pipelining_enable = no
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $smtpd_sender_login_maps
queue_run_delay = 300s
readme_directory = /usr/share/doc/postfix
recipient_delimiter = +
relayhost =
smtp_connect_timeout = 120s
smtp_destination_concurrency_limit = 2
smtp_destination_rate_delay = 12s
smtp_extra_recipient_limit = 1
smtp_tls_cert_file = /opt/postfix/cert/mx.exampledomain.local.cer
smtp_tls_key_file = /opt/postfix/cert/mx.exampledomain.local.key
smtp_tls_loglevel = 1
smtp_tls_security_level = may
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname
smtpd_client_restrictions = reject_unknown_client
smtpd_data_restrictions = reject_unauth_pipelining, permit
smtpd_delay_reject = yes
smtpd_error_sleep_time = 10s
smtpd_hard_error_limit = ${stress?1}${stress:5}
smtpd_helo_required = yes
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, check_policy_service inet:dovecot:12340 check_client_access hash:/etc/postfix/check_client_access reject_unknown_reverse_client_hostname, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_local_domain = $mydomain
smtpd_sasl_path = inet:dovecot:12345
smtpd_sasl_type = dovecot
smtpd_sender_login_maps = proxy:mysql:/etc/postfix/mysql/postfix-mysql-virtual_alias_maps.cf
smtpd_sender_restrictions = reject_authenticated_sender_login_mismatch, permit_mynetworks, permit_sasl_authenticated, reject_unlisted_sender, reject_unknown_sender_domain
smtpd_soft_error_limit = 3
smtpd_tls_cert_file = /opt/postfix/cert/mx.exampledomain.local.cer
smtpd_tls_eecdh_grade = strong
smtpd_tls_key_file = /opt/postfix/cert/mx.exampledomain.local.key
smtpd_tls_loglevel = 1
smtpd_tls_mandatory_ciphers = high
smtpd_tls_mandatory_protocols = !SSLv2, !SSLv3
smtpd_tls_security_level = may
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
tls_high_cipherlist = EDH+CAMELLIA:EDH+aRSA:EECDH+aRSA+AESGCM:EECDH+aRSA+SHA384:EECDH+aRSA+SHA256:EECDH:+CAMELLIA256:+AES256:+CAMELLIA128:+AES128:+SSLv3:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!DSS:!RC4:!SEED:!ECDSA:CAMELLIA256-SHA:AES256-SHA:CAMELLIA128-SHA:AES128-SHA
transport_maps = mysql:/etc/postfix/mysql/postfix-mysql-virtual_transport_maps.cf
unknown_address_reject_code = 554
unknown_client_reject_code = 554
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql/postfix-mysql-virtual_alias_maps.cf
virtual_gid_maps = static:5000
virtual_mailbox_base = /
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql/postfix-mysql-virtual_domains_maps.cf
virtual_mailbox_limit = 0
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql/postfix-mysql-virtual_mailbox_maps.cf
virtual_minimum_uid = 5000
virtual_transport = lmtp:[dovecot.localnet]:24
virtual_uid_maps = static:5000
Code:
master.cf
# =============================================================
# service type private unpriv chroot wakeup maxproc command
# (yes) (yes) (yes) (never) (100)
# =============================================================
smtp inet n - n - - smtpd -v
smtps inet n - n - - smtpd -v
-o smtpd_tls_wrappermode=yes
-o smtpd_sasl_auth_enable=yes
smtp inet n - n - 1 postscreen
smtpd pass - - n - - smtpd
-o smtpd_helo_restrictions=permit_mynetworks,reject_non_fqdn_helo_hostname
#-o smtpd_proxy_filter=mail-filter:10024
-o smtpd_client_connection_count_limit=10
-o smtpd_proxy_options=speed_adjust
submission inet n - n - - smtpd
-o smtpd_sasl_type=dovecot
-o smtpd_sasl_path=inet:dovecot:12345
-o smtpd_client_restrictions=permit_sasl_authenticated,reject
# -o smtpd_proxy_filter=mail-filter:10025
-o smtpd_client_connection_count_limit=10
-o smtpd_proxy_options=speed_adjust
tlsproxy unix - - n - 0 tlsproxy
dnsblog unix - - n - 0 dnsblog
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr -v
tlsmgr unix - - n 1000? 1 tlsmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
trace unix - - n - 0 bounce
verify unix - - n - 1 verify
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
proxywrite unix - - n - 1 proxymap
smtp unix - - n - - smtp
relay unix - - n - - smtp
showq unix n - n - - showq
error unix - - n - - error
retry unix - - n - - error
discard unix - - n - - discard
local unix - n n - - local -v
virtual unix - n n - - virtual
lmtp inet n n n - - lmtp -v
anvil unix - - n - 1 anvil
scache unix - - n - 1 scache
Last edited by a moderator: