postfix problem after update to 1.3.15: "too many hops"

  • For hours I've been sitting around this problem and I can not find a reason for it.
    Since the update to 1.3.15 the sending of e-mails no longer works (I test this over roundcube to Gmail receiver). The mail reception works, but when sending always the same problem (mail.log excerpt):


    Code
    1. Jun 26 21:25:24 v23538155999 spamd[11349]: spamd: clean message (1.3/5.0) for [email protected]:113 in 0.8 seconds, 13309 bytes.Jun 26 21:25:24 v23538155999 spamd[11349]: spamd: result: . 1 - AWL,RDNS_NONE scantime=0.8,size=13309,[email protected],uid=113,required_score=5.0,rhost=v23538155999.yourvserver.net.local,raddr=127.0.0.1,rport=44861,mid=<[email protected]>,autolearn=noJun 26 21:25:24 v23538155999 postfix/qmgr[4870]: CCF071011E1: from=<[email protected]>, size=13626, nrcpt=1 (queue active)Jun 26 21:25:24 v23538155999 postfix/smtp[12690]: 04AE11011EC: to=<[email protected]>, relay=46.38.241.65[46.38.241.65]:587, conn_use=12, delay=1.7, delays=0.82/0/0/0.84, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as CCF071011E1)Jun 26 21:25:24 v23538155999 postfix/qmgr[4870]: 04AE11011EC: removedJun 26 21:25:24 v23538155999 postfix/smtpd[5221]: A56EF1011EC: client=v23538155999.yourvserver.net[46.38.241.65], sasl_method=PLAIN, sasl_username=sasl_userJun 26 21:25:24 v23538155999 postfix/cleanup[12685]: A56EF1011EC: message-id=<[email protected]>Jun 26 21:25:24 v23538155999 spamd[11358]: spamd: connection from v23538155999.yourvserver.net.local [127.0.0.1] at port 44864Jun 26 21:25:24 v23538155999 spamd[11358]: config: failed to parse line, skipping, in "(no file)": use_dcc 1Jun 26 21:25:24 v23538155999 spamd[11358]: spamd: processing message <[email protected]> for [email protected]:113Jun 26 21:25:24 v23538155999 spamd[4540]: prefork: child states: IBJun 26 21:25:25 v23538155999 spamd[11358]: spamd: clean message (1.3/5.0) for [email protected]:113 in 0.8 seconds, 13573 bytes.Jun 26 21:25:25 v23538155999 spamd[11358]: spamd: result: . 1 - AWL,RDNS_NONE scantime=0.8,size=13573,[email protected],uid=113,required_score=5.0,rhost=v23538155999.yourvserver.net.local,raddr=127.0.0.1,rport=44864,mid=<[email protected]>,autolearn=noJun 26 21:25:25 v23538155999 postfix/qmgr[4870]: A56EF1011EC: from=<[email protected]>, size=13893, nrcpt=1 (queue active)Jun 26 21:25:25 v23538155999 postfix/smtp[12694]: CCF071011E1: to=<[email protected]>, relay=46.38.241.65[46.38.241.65]:587, conn_use=34, delay=1.7, delays=0.84/0/0/0.85, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as A56EF1011EC)Jun 26 21:25:25 v23538155999 postfix/qmgr[4870]: CCF071011E1: removedJun 26 21:25:25 v23538155999 postfix/smtpd[12223]: 806AF1011E1: client=v23538155999.yourvserver.net[46.38.241.65], sasl_method=PLAIN, sasl_username=sasl_userJun 26 21:25:25 v23538155999 postfix/cleanup[12791]: 806AF1011E1: message-id=<[email protected]>Jun 26 21:25:25 v23538155999 spamd[11349]: spamd: connection from v23538155999.yourvserver.net.local [127.0.0.1] at port 44867Jun 26 21:25:25 v23538155999 spamd[11349]: config: failed to parse line, skipping, in "(no file)": use_dcc 1Jun 26 21:25:25 v23538155999 spamd[11349]: spamd: processing message <[email protected]> for [email protected]:113Jun 26 21:25:25 v23538155999 spamd[4540]: prefork: child states: BIJun 26 21:25:26 v23538155999 spamd[11349]: spamd: clean message (1.3/5.0) for [email protected]:113 in 1.3 seconds, 13837 bytes.Jun 26 21:25:26 v23538155999 spamd[11349]: spamd: result: . 1 - AWL,RDNS_NONE scantime=1.3,size=13837,[email protected],uid=113,required_score=5.0,rhost=v23538155999.yourvserver.net.local,raddr=127.0.0.1,rport=44867,mid=<[email protected]>,autolearn=noJun 26 21:25:26 v23538155999 postfix/qmgr[4870]: 806AF1011E1: from=<[email protected]>, size=14160, nrcpt=1 (queue active)Jun 26 21:25:26 v23538155999 postfix/smtp[12690]: A56EF1011EC: to=<[email protected]>, relay=46.38.241.65[46.38.241.65]:587, conn_use=13, delay=2.2, delays=0.85/0/0/1.4, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 806AF1011E1)Jun 26 21:25:26 v23538155999 postfix/qmgr[4870]: A56EF1011EC: removedJun 26 21:25:26 v23538155999 postfix/smtpd[5221]: DC4131011EC: client=v23538155999.yourvserver.net[46.38.241.65], sasl_method=PLAIN, sasl_username=sasl_userJun 26 21:25:26 v23538155999 postfix/smtp[12694]: 806AF1011E1: to=<[email protected]>, relay=46.38.241.65[46.38.241.65]:587, conn_use=35, delay=1.4, delays=1.4/0/0/0, dsn=5.4.0, status=bounced (host 46.38.241.65[46.38.241.65] said: 554 5.4.0 Error: too many hops (in reply to end of DATA command))Jun 26 21:25:26 v23538155999 postfix/qmgr[4870]: 806AF1011E1: removedJun 26 21:25:26 v23538155999 postfix/discard[12833]: warning: unexpected attribute nrequest from bounce socket (expecting: flags)Jun 26 21:25:26 v23538155999 postfix/discard[12833]: warning: deliver_request_get: error receiving common attributesJun 26 21:25:27 v23538155999 spamd[4540]: prefork: child states: IIJun 26 21:25:28 v23538155999 postfix/smtpd[12223]: disconnect from v23538155999.yourvserver.net[46.38.241.65]Jun 26 21:25:28 v23538155999 postfix/smtpd[5221]: disconnect from v23538155999.yourvserver.net[46.38.241.65]


    Here the main.cf:

    Shell-Script
    1. # General parametersinet_protocols = ipv4inet_interfaces = allmynetworks_style = hostsmtp_bind_address = 46.38.241.65smtp_bind_address6 = myhostname = v23538155999.yourvserver.netmydomain = v23538155999.yourvserver.net.localmyorigin = $myhostnamesmtpd_banner = $myhostname ESMTP i-MSCP 1.3.15 Managedappend_dot_mydomain = noappend_at_myorigin = yesbiff = norecipient_delimiter = +message_size_limit = 0maximal_queue_lifetime = 1dbounce_queue_lifetime = 1d# Local delivery parametersmydestination = $myhostname localhost.$mydomain localhost $mydomainalias_database = hash:/etc/aliasesalias_maps = hash:/etc/aliaseslocal_transport = locallocal_destination_concurrency_limit = 2local_destination_recipient_limit = 1local_recipient_maps = unix:passwd.byname $alias_databasemail_spool_directory = /var/mailmailbox_size_limit = 0# Virtual delivery parametersvirtual_mailbox_base = /var/mail/virtualvirtual_mailbox_limit = 0virtual_mailbox_domains = hash:/etc/postfix/imscp/domainsvirtual_mailbox_maps = hash:/etc/postfix/imscp/mailboxesvirtual_alias_domains =virtual_alias_maps = hash:/etc/postfix/imscp/aliasesvirtual_transport = maildropvirtual_destination_concurrency_limit = 2virtual_destination_recipient_limit = 1virtual_minimum_uid = 999virtual_uid_maps = static:999virtual_gid_maps = static:8# Relay parametersrelay_domains = hash:/etc/postfix/imscp/relay_domainsrelay_recipient_maps =relay_transport = relay# Transport parameterstransport_maps = hash:/etc/postfix/imscp/transport# SMTP restrictionssmtpd_helo_required = yesstrict_rfc821_envelopes = yesdisable_vrfy_command = yessmtpd_delay_reject = yessmtpd_helo_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_helo_hostname,reject_invalid_helo_hostname, permitsmtpd_sender_restrictions = permit_mynetworks, permit_sasl_authenticated,reject_non_fqdn_sender,reject_unknown_sender_domain, permitsmtpd_relay_restrictions =smtpd_recipient_restrictions = reject_unlisted_senderreject_non_fqdn_recipientreject_unknown_recipient_domainreject_unknown_reverse_client_hostnamepermit_mynetworkspermit_sasl_authenticatedreject_unauth_destination#policyd-weight#check_policy_service inet:127.0.0.1:60001#postgray#check_policy_service inet:127.0.0.1:60000reject_unlisted_recipientreject_invalid_hostnamereject_unauth_pipelining reject_non_fqdn_sender reject_unknown_sender_domain #hosts auf blacklist sperren: #reject_rhsbl_client blackhole.securitysage.com #reject_rhsbl_sender blackhole.securitysage.com #reject_rbl_client relays.ordb.org #reject_rbl_client blackholes.easynet.nl #reject_rbl_client cbl.abuseat.org #reject_rbl_client proxies.blackholes.wirehub.net #reject_rbl_client bl.spamcop.net #reject_rbl_client sbl.spamhaus.org #reject_rbl_client opm.blitzed.org #reject_rbl_client dnsbl.njabl.org #reject_rbl_client list.dsbl.org #reject_rbl_client multihop.dsbl.org permitsmtpd_data_restrictions = reject_multi_recipient_bounce, reject_unauth_pipelining#smtpd_error_sleep_time = 5s#smtpd_soft_error_limit = 7#smtpd_hard_error_limit = 20#smtpd_client_connection_count_limit = 10#smtpd_client_connection_rate_limit = 60#smtpd_recipient_limit = 50#smtpd_recipient_overshoot_limit = 51#smtpd_client_recipient_rate_limit = 50#smtpd_client_message_rate_limit = 25#default_extra_recipient_limit = 50# i-MSCP responder parametersimscp-arpl_destination_concurrency_limit = 2imscp-arpl_destination_recipient_limit = 1# Parameters added at run-time by i-MSCP or 3rd-party components# Added by Hooks::Postfix::Smarthostrelayhost=46.38.241.65:587smtp_sasl_auth_enable=yessmtp_sasl_password_maps=hash:/etc/postfix/relay_passwdsmtp_sasl_security_options=noanonymoussmtpd_sasl_type = cyrussmtpd_sasl_authenticated_header = yesbroken_sasl_auth_clients = yesmaildrop_destination_recipient_limit = 1smtpd_sasl_path = smtpdsmtpd_sasl_security_options = noanonymoussmtpd_sasl_auth_enable = yesmaildrop_destination_concurrency_limit = 2milter_connect_macros = i j {daemon_name} v {if_name} _milter_default_action = acceptnon_smtpd_milters = unix:/spamass/spamass.sock, unix:/clamav/clamav-milter.ctlsmtpd_milters = unix:/spamass/spamass.sock, unix:/clamav/clamav-milter.ctl

    master.cf:


    I have ufw, clamav and spamassassin (on standard config) installed.


    I hope you can help me - I am despairing: O

  • I hope you can help me - I am despairing: O

    Good evening,


    A dig -x 46.38.241.65 leads to the following answer: 65.241.38.46.in-addr.arpa. 604800 IN PTR v23538155999.yourvserver.net.
    A dig a v23538155999.yourvserver.net leads to the following answer v23538155999.yourvserver.net. 86400 IN A 46.38.241.65
    However, v23538155999.yourvserver.net is your i-MSCP server running Postfix:

    • smtp_bind_address = 46.38.241.65
    • myhostname = v23538155999.yourvserver.net

    The problem is that you have setup the i-MSCP smarthost listener with 46.38.241.65 as IP while that IP is assigned to your i-MSCP server:

    • relayhost=46.38.241.65:587

    To resume, you relay the mail to yourself... You must disable the smarthost listener file or setup it correctly.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206