Fresh install - Debian 9 - Amavis Problem

Discussion in 'ISPConfig 3 Priority Support' started by macguru, Mar 29, 2018.

  1. macguru

    macguru Member HowtoForge Supporter

    Hi,

    I have just installed and migrated data to the new Debian 9.
    Following this tutorial without any problem.
    https://www.howtoforge.com/tutorial...-9-stretch-apache-bind-dovecot-ispconfig-3-1/

    However, mail doesn't work. Googling brought this tip, it didn't help.
    /etc/amavis/conf.d/05-node_id
    #chomp($myhostname = `hostname --fqdn`);
    $myhostname = "mail.mydomain.lv";

    tail -n 1000 /var/log/mail.log | grep gmail
    Mar 29 17:39:47 mail postfix/smtp[7620]: 1821D3C25B2: to=<[email protected]>, relay=none, delay=4542, delays=4542/0.06/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10026: Connection refused)

    [email protected]:/etc/postfix# service amavis status
    ‚óŹ amavis.service - LSB: Starts amavisd-new mailfilter
    Loaded: loaded (/etc/init.d/amavis; generated; vendor preset: enabled)
    Active: active (exited) since Thu 2018-03-29 18:15:22 EEST; 10min ago
    Docs: man:systemd-sysv-generator(8)
    Process: 10675 ExecStop=/etc/init.d/amavis stop (code=exited, status=0/SUCCESS)
    Process: 10683 ExecStart=/etc/init.d/amavis start (code=exited, status=0/SUCCESS)

    Mar 29 18:15:21 mail systemd[1]: Stopped LSB: Starts amavisd-new mailfilter.
    Mar 29 18:15:21 mail systemd[1]: Starting LSB: Starts amavisd-new mailfilter...
    Mar 29 18:15:22 mail amavis[10692]: starting. /usr/sbin/amavisd-new at mail.starlett.lv amavisd-new-2.10.1 (20141025), Unicode aware,
    Mar 29 18:15:22 mail amavis[10697]: (!)Net::Server: 2018/03/29-18:15:22 Can't connect to TCP port 10024 on ::1 [Cannot assign request
    Mar 29 18:15:22 mail amavis[10683]: Starting amavisd: amavisd-new.
    Mar 29 18:15:22 mail systemd[1]: Started LSB: Starts amavisd-new mailfilter.
    **************************
    pop doesn't work either.

    What is the problem ?
    Thanks.
     
  2. macguru

    macguru Member HowtoForge Supporter

    More logs
    [email protected]:~# tail -n 1000 /var/log/mail.log | grep gmail
    Mar 29 17:39:47 mail postfix/smtp[7620]: 1821D3C25B2: to=<[email protected]>, relay=none, delay=4542, delays=4542/0.06/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10026: Connection refused)
    Mar 29 17:49:47 mail postfix/qmgr[6195]: 85EE53C2A92: from=<[email protected]>, size=2631, nrcpt=1 (queue active)
    Mar 29 18:36:06 mail postfix/smtpd[1907]: NOQUEUE: filter: RCPT from unknown[192.168.0.55]: <[email protected]>: Sender address triggers FILTER amavis:[127.0.0.1]:10026; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<[192.168.0.55]>
    Mar 29 18:36:06 mail postfix/smtp[1616]: 46E803C2BE7: to=<[email protected]>, relay=none, delay=0.06, delays=0.06/0/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10026: Connection refused)
    Mar 29 18:38:33 mail postfix/smtpd[1907]: NOQUEUE: filter: RCPT from mail-lf0-f49.google.com[209.85.215.49]: <[email protected]>: Sender address triggers FILTER amavis:[127.0.0.1]:10026; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<mail-lf0-f49.google.com>
    Mar 29 18:38:33 mail postfix/smtpd[1907]: NOQUEUE: filter: RCPT from mail-lf0-f49.google.com[209.85.215.49]: <[email protected]>: Sender address triggers FILTER amavis:[127.0.0.1]:10024; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<mail-lf0-f49.google.com>
    Mar 29 18:38:33 mail postfix/cleanup[2029]: C268D3C2C34: message-id=<[email protected]om>
    Mar 29 18:38:33 mail postfix/qmgr[1613]: C268D3C2C34: from=<[email protected]>, size=2537, nrcpt=1 (queue active)
     
    Last edited: Mar 29, 2018
  3. macguru

    macguru Member HowtoForge Supporter

    [email protected]:~# lsof -i :10024
    [email protected]:~# lsof -i :10025
    COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
    master 1610 root 121u IPv4 21461 0t0 TCP localhost:10025 (LISTEN)
    [email protected]:~# lsof -i :10027
    COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
    master 1610 root 124u IPv4 21465 0t0 TCP localhost:10027 (LISTEN)

    Amavis and Postfix running on different ports?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Maybe you overwrote some config with your attempt to migrate data. Do an ISPConfig update with reconfigure services = yes and then restart the server.
     
  5. macguru

    macguru Member HowtoForge Supporter

    I have turned off ipv6 support in sysctl.conf, and that was a problem. Port # have been rearranged automatically for whatever reason.
    Never expected it could affect in a such way.
     
    till likes this.
  6. macguru

    macguru Member HowtoForge Supporter

    For the future, is it possible to invoke ISPConfig update with reconfigure services from bash shell ?
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    This is always done on bash shell, you can't do that from the ISPConfig UI.
     

Share This Page