Wow, I've made a mess.. without trying.

Discussion in 'General' started by RobPatton, Oct 4, 2024.

  1. RobPatton

    RobPatton Member

    Install been running for 7 years, mostly trouble free.
    Centos 7

    Decided to delete some user accounts and make them into aliases

    Looks like it worked, except server started to refuse incoming email
    webhost postfix/error[11235]: E21C043F64FA: to=<[email protected]>, relay=none, delay=4, delays=4/0/0/0.02, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)

    Ran around in circles. couldnt understand the problem

    Restored a backup
    All good again

    Woke up today, did the same account delete - guess what?!?! AGAIN, same thing. All I'm deleting is some not really used accounts that should have been made as aliases, and turning them into aliases.

    but instead I get

    webhost postfix/error[11235]: E21C043F64FA: to=<[email protected]>, relay=none, delay=4, delays=4/0/0/0.02, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)

    I'm so frustrated that I dont understand whats happening.
     
  2. RobPatton

    RobPatton Member

    I guess I assumed its amavis thats angry, but I cant beging to find a log/error/etc that makes any sense (to me)


    Oct 04 12:31:10 webhost.domain.com systemd[1]: Failed to start Amavis mail content checker.
    Oct 04 12:31:10 webhost.domain.com systemd[1]: Unit amavisd.service entered failed state.
    Oct 04 12:31:10 webhost.domain.com systemd[1]: amavisd.service failed.
    Oct 04 12:31:10 webhost.domain.com systemd[1]: amavisd.service holdoff time over, scheduling restart.
    Oct 04 12:31:10 webhost.domain.com systemd[1]: Stopped Amavis mail content checker.
    Oct 04 12:31:10 webhost.domain.com systemd[1]: start request repeated too quickly for amavisd.service
    Oct 04 12:31:10 webhost.domain.com systemd[1]: Failed to start Amavis mail content checker.
    Oct 04 12:31:10 webhost.domain.com systemd[1]: Unit amavisd.service entered failed state.
    Oct 04 12:31:10 webhost.domain.com systemd[1]: amavisd.service failed.
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    The error message means that amavis service was down. Check the /bar/log/maillog to find out why.
     
  4. RobPatton

    RobPatton Member

    Thats where I started , and I just dont see anything that tells me anything

    To confirm, I left that file tailing, and restarted amavisd from another session, and I get pretty much zero.

    I dont understand how (TWICE) deleting some users and creating aliases broke it.
     
  5. RobPatton

    RobPatton Member

    should systemctl restart amavisd dump longs into /var/log/maillog? I see postfix scrolling along (doing nothing) and dovecot working, but nothing from amavis
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    I don't think that this is the direct reason why it broke.

    here a few things that you can try from ChatGPT:

     
  7. RobPatton

    RobPatton Member

    Ok, I made progress. I did not think of watching messages, and that had the hint that helped me fix it.

    So, I think there is a bug, but heres what happened.

    I was clearing out emails not used, and 1 domain. The messages logs make mention of some missing files in the config of amavis

    It was referring to files in /var/lib/amavis/dkim (public/private keys) and sure enuf killing that domain removed those files, but not removing them from the config. So as a quick fix I copied the files in question back over, and amavis was able to restart.
    I guess the script that removes the domain doesnt remove the config entries. *OR* I did that YEARS ago by hand??!?!?

    Trying to make sure its all working, but I just got 3 emails to pass..
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    That's quite unlikely.

    The script removes everything correctly, just verified that on three different systems (Ubuntu, Debain and centOS). You likely added config manually by hand on your system and such config will not get removed by ISPConfig.
     
  9. RobPatton

    RobPatton Member

    I guess thats the downside of having an install running since 2016. I keep upgrading the virt hardware, and just moving the old centos 7 vm over...
    Thanks for the help. I really need to spend some time to learn more


     

Share This Page