Conncetion refused on every mail -urgent

Discussion in 'ISPConfig 3 Priority Support' started by muekno, Mar 29, 2021.

  1. muekno

    muekno Active Member HowtoForge Supporter

    since I added the DKIM record yesterday to my relayed domains and to the domain held on post fix the domains held on post refuses connection to every mail. I deactivatet the DKIM TXT record and rebooted the dns and the mail server but still ever conncetion for incomming mals is refused.
    need help
    rainer

    I added the SKIM Record as in the mail tab by clicking the dkim button under mail domain
    Even mails from one domain to ano thre in the server is refused
    by the way I updates from ISPConfig 3.2.2 to 3.2.3 yesterday too
    even sending mail to myself get a connection refused
     
    Last edited: Mar 29, 2021
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You can not add a domain an email domain in ISPConfig that you relay for. Email domains are local domains.
     
  3. muekno

    muekno Active Member HowtoForge Supporter

    the relay domain works fine only the domain on the server itself have the problem
    sorry thats not correct, they worked this morning after then I did a normal server updates as ISPConfig said updates available. so I did an apt update, got some updates and a new kernel und rebooted the server. Now it seams every mail is refused
     
    Last edited: Mar 29, 2021
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post the exact error messages from mail.log file.
     
  5. muekno

    muekno Active Member HowtoForge Supporter

    OK to clarify
    Yesterday aft adding DKIM records everything seams OK
    This morning I had a mail (relayed mail) correspondence wit some multiple mails to and from
    The I updated and rebooted the server DEBIAN 10 64bit
    The a customer (mail on the mailserver) called me he gets no mail
    First I thougth It is the DKIM and deactivated it, no change
    The I realized that the postfix log refuse every mail
    The only mail was one from on domain residing on der server to another on the server connetion with IMAP
    Login to the mailserver via IMAP and to the Webmailer works
    following postfix log is a mail from my googl account [email protected] (mail on the server) and to [email protected] (mail relayed) both refused
    Mar 29 12:27:18 smtp1 postfix/smtpd[3086]: 399961401F7: filter: RCPT from mail-ot1-f41.google.com[209.85.210.41]: <[email protected]>: Sender address triggers FILTER lmtp:[127.0.0.1]:10024; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<mail-ot1-f41.google.com>
    Mar 29 12:27:18 smtp1 postfix/cleanup[5033]: 399961401F7: message-id=<CAJT8gRuMqN55PwKMXqiGt8T14eEcHYKQr5KC5ZT_it_vq3EK-A@mail.gmail.com>
    Mar 29 12:27:18 smtp1 postfix/qmgr[870]: 399961401F7: from=<[email protected]>, size=2790, nrcpt=2 (queue active)
    Mar 29 12:27:18 smtp1 postfix/smtpd[3384]: 49BED1401F8: client=mail-ot1-f45.google.com[209.85.210.45]
    Mar 29 12:27:18 smtp1 postfix/cleanup[5033]: 49BED1401F8: message-id=<CAJT8gRuMqN55PwKMXqiGt8T14eEcHYKQr5KC5ZT_it_vq3EK-A@mail.gmail.com>
    Mar 29 12:27:18 smtp1 postfix/qmgr[870]: 49BED1401F8: from=<[email protected]>, size=2834, nrcpt=1 (queue active)
    Mar 29 12:27:18 smtp1 postfix/error[4996]: 399961401F7: to=<[email protected]>, relay=none, delay=0.25, delays=0.21/0/0/0.04, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
    Mar 29 12:27:18 smtp1 postfix/error[4994]: 49BED1401F8: to=<[email protected]>, relay=none, delay=0.31, delays=0.26/0/0/0.04, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
    Mar 29 12:27:18 smtp1 postfix/error[4996]: 399961401F7: to=<[email protected]>, relay=none, delay=0.3, delays=0.21/0/0/0.08, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
    Mar 29 12:27:18 smtp1 postfix/smtpd[3086]: disconnect from mail-ot1-f41.google.com[209.85.210.41] ehlo=2 starttls=1 mail=1 rcpt=2 bdat=1 quit=1 commands=8
    Mar 29 12:27:18 smtp1 postfix/smtpd[3384]: disconnect from mail-ot1-f45.google.com[209.85.210.45] ehlo=2 starttls=1 mail=1 rcpt=1 bdat=1 quit=1 commands=7
     
  6. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Looks like e-mails are keeping in mailq.
    Are all services running?
    Code:
    systemctl --state=failed
     
  7. muekno

    muekno Active Member HowtoForge Supporter

    In the meantime I found that amavis is not startet
    Mar 29 11:21:34 smtp1 systemd[1]: Starting LSB: Starts amavisd-new mailfilter...
    Mar 29 11:21:36 smtp1 amavis[412]: Starting amavisd: changed ownership of '/var/run/amavis' from root:root to amavis:amavis
    Mar 29 11:21:48 smtp1 amavis[412]: Error in config file "/etc/amavis/conf.d/60-dkim": Not enough arguments for Amavis::Conf::dkim_key at /etc/a
    Mar 29 11:21:48 smtp1 amavis[412]: (failed).
    Mar 29 11:21:48 smtp1 systemd[1]: amavis.service: Control process exited, code=exited, status=1/FAILURE
    Mar 29 11:21:48 smtp1 systemd[1]: amavis.service: Failed with result 'exit-code'.
    Mar 29 11:21:48 smtp1 systemd[1]: Failed to start LSB: Starts amavisd-new mailfilter.
     
  8. muekno

    muekno Active Member HowtoForge Supporter

    systemctl --state=failed
    UNIT LOAD ACTIVE SUB DESCRIPTION
    ● amavis.service loaded failed failed LSB: Starts amavisd-new mailfilter
    ● fail2ban.service loaded failed failed Fail2Ban Service

    LOAD = Reflects whether the unit definition was properly loaded.
    ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
    SUB = The low-level unit activation state, values depend on unit type.

    2 loaded units listed. Pass --all to see loaded but inactive units, too.
    To show all installed unit files use 'systemctl list-unit-files'.

    could not start amavis, but why does it fail
     
  9. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Read the log file to see why it does not start. Or try starting from command line, that may show error message.
    Code:
    systemctl start amavis
    And you have this:
    Code:
     Error in config file "/etc/amavis/conf.d/60-dkim": 
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    That's explained in the errors that you posted, see:

    So you must have an error in that file.
     
  11. muekno

    muekno Active Member HowtoForge Supporter

    deactivated all dkim records and commened all entries in/etc/amavis/conf.d/60-dkim
    seams to work now. Have to look whats going wrong
    Thanks for help
     
  12. muekno

    muekno Active Member HowtoForge Supporter

    just to inform you. Problem found, a dot instead a comma in /etc/amavis/conf.d/60-dkim
    Thanks for help again
     

Share This Page