Upgrade to ISPConfig 3 Patch4 postfix/amavis issues

Discussion in 'Installation/Configuration' started by zapyahoo, Oct 18, 2014.

  1. zapyahoo

    zapyahoo New Member

    I upgraded my ISPconfig3 to yesterday patch 4, and email delivery stop working, mail.log shows:
    connect to transport private/amavis connection refused
    and
    (mail transport unavailable)

    Postfix main.cf
    Code:
    # See /usr/share/postfix/main.cf.dist for a commented, more complete version
    
    
    # Debian specific:  Specifying a file name will cause the first
    # line of that file to be used as the name.  The Debian default
    # is /etc/mailname.
    #myorigin = /etc/mailname
    
    smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
    biff = no
    
    # appending .domain is the MUA's job.
    append_dot_mydomain = no
    
    # Uncomment the next line to generate "delayed mail" warnings
    #delay_warning_time = 4h
    
    readme_directory = /usr/share/doc/postfix
    
    # TLS parameters
    smtpd_tls_cert_file = /etc/postfix/smtpd.cert
    smtpd_tls_key_file = /etc/postfix/smtpd.key
    smtpd_use_tls = yes
    smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
    smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
    
    # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
    # information on enabling SSL in the smtp client.
    
    myhostname = my.hostname.com
    alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases
    alias_database = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases
    myorigin = /etc/mailname
    mydestination = my.hostname.com, localhost.techgasp.com, localhost
    #relayhost = 
    mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
    mailbox_size_limit = 0
    recipient_delimiter = +
    inet_interfaces = all
    html_directory = /usr/share/doc/postfix/html
    home_mailbox = Maildir/
    smtpd_sasl_auth_enable = yes
    smtpd_sasl_type = dovecot
    smtpd_sasl_path = private/auth
    smtpd_sasl_authenticated_header = yes
    smtpd_sasl_security_options = noanonymous
    smtpd_sasl_local_domain = $myhostname
    broken_sasl_auth_clients = yes
    smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, check_recipient_access mysql:/etc/postfix/mysql-virtual_recipient.cf
    smtpd_sender_restrictions = check_sender_access mysql:/etc/postfix/mysql-virtual_sender.cf
    mailbox_command = /usr/lib/dovecot/deliver -c /etc/dovecot/dovecot.conf -m "${EXTENSION}"
    smtp_use_tls = yes
    smtpd_tls_received_header = yes
    smtpd_tls_mandatory_protocols = !SSLv2, !SSLv3
    smtpd_tls_mandatory_ciphers = medium
    smtpd_tls_auth_only = yes
    tls_random_source = dev:/dev/urandom
    smtpd_tls_CAfile = /etc/ssl/roundcube/sub.class1.server.ca.crt
    virtual_alias_domains = 
    virtual_alias_maps = hash:/var/lib/mailman/data/virtual-mailman, proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, proxy:mysql:/etc/postfix/mysql-virtual_email2email.cf
    virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
    virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
    virtual_mailbox_base = /var/vmail
    virtual_uid_maps = static:5000
    virtual_gid_maps = static:5000
    smtpd_tls_security_level = may
    transport_maps = hash:/var/lib/mailman/data/transport-mailman, proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
    relay_domains = mysql:/etc/postfix/mysql-virtual_relaydomains.cf
    relay_recipient_maps = mysql:/etc/postfix/mysql-virtual_relayrecipientmaps.cf
    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_client_restrictions = check_client_access mysql:/etc/postfix/mysql-virtual_client.cf
    smtpd_client_message_rate_limit = 100
    maildrop_destination_concurrency_limit = 1
    maildrop_destination_recipient_limit = 1
    virtual_transport = dovecot
    header_checks = regexp:/etc/postfix/header_checks
    mime_header_checks = regexp:/etc/postfix/mime_header_checks
    nested_header_checks = regexp:/etc/postfix/nested_header_checks
    body_checks = regexp:/etc/postfix/body_checks
    owner_request_special = no
    dovecot_destination_recipient_limit = 1
    content_filter = amavis:[127.0.0.1]:10024
    receive_override_options = no_address_mappings
    relayhost = 
    message_size_limit = 0
    inet_protocols = all
    smtp_tls_security_level = may
    smtpd_relay_restrictions = check_recipient_access mysql:/etc/postfix/mysql-virtual_recipient.cf, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
    smtpd_tls_protocols = !SSLv2,!SSLv3
    smtp_tls_protocols = !SSLv2,!SSLv3
    
    Postfix Master.cf
    Code:
    #
    # Postfix master process configuration file.  For details on the format
    # of the file, see the master(5) manual page (command: "man 5 master").
    #
    # Do not forget to execute "postfix reload" after editing this file.
    #
    # ==========================================================================
    # service type  private unpriv  chroot  wakeup  maxproc command + args
    #               (yes)   (yes)   (yes)   (never) (100)
    # ==========================================================================
    smtp      inet  n       -       -       -       -       smtpd
    #smtp      inet  n       -       -       -       1       postscreen
    #smtpd     pass  -       -       -       -       -       smtpd
    #dnsblog   unix  -       -       -       -       0       dnsblog
    #tlsproxy  unix  -       -       -       -       0       tlsproxy
    submission inet n       -       -       -       -       smtpd
      -o syslog_name=postfix/submission
      -o smtpd_tls_security_level=encrypt
      -o smtpd_sasl_auth_enable=yes
      -o smtpd_client_restrictions=permit_sasl_authenticated,reject
    smtps     inet  n       -       -       -       -       smtpd
      -o syslog_name=postfix/smtps
      -o smtpd_tls_wrappermode=yes
      -o smtpd_sasl_auth_enable=yes
      -o smtpd_client_restrictions=permit_sasl_authenticated,reject
    pickup    fifo  n       -       -       60      1       pickup
    	-o content_filter=
    	-o receive_override_options=no_header_body_checks
    cleanup   unix  n       -       -       -       0       cleanup
    qmgr      fifo  n       -       n       300     1       qmgr
    #qmgr     fifo  n       -       n       300     1       oqmgr
    tlsmgr    unix  -       -       -       1000?   1       tlsmgr
    rewrite   unix  -       -       -       -       -       trivial-rewrite
    bounce    unix  -       -       -       -       0       bounce
    defer     unix  -       -       -       -       0       bounce
    trace     unix  -       -       -       -       0       bounce
    verify    unix  -       -       -       -       1       verify
    flush     unix  n       -       -       1000?   0       flush
    proxymap  unix  -       -       n       -       -       proxymap
    proxywrite unix -       -       n       -       1       proxymap
    smtp      unix  -       -       -       -       -       smtp
    relay     unix  -       -       -       -       -       smtp
    showq     unix  n       -       -       -       -       showq
    error     unix  -       -       -       -       -       error
    retry     unix  -       -       -       -       -       error
    discard   unix  -       -       -       -       -       discard
    local     unix  -       n       n       -       -       local
    virtual   unix  -       n       n       -       -       virtual
    lmtp      unix  -       -       -       -       -       lmtp
    anvil     unix  -       -       -       -       1       anvil
    scache    unix  -       -       -       -       1       scache
    #
    # ====================================================================
    # Interfaces to non-Postfix software. Be sure to examine the manual
    # pages of the non-Postfix software to find out what options it wants.
    #
    # Many of the following services use the Postfix pipe(8) delivery
    # agent.  See the pipe(8) man page for information about ${recipient}
    # and other message envelope options.
    # ====================================================================
    #
    # maildrop. See the Postfix MAILDROP_README file for details.
    # Also specify in main.cf: maildrop_destination_recipient_limit=1
    #
    maildrop  unix  -       n       n       -       -       pipe
      flags=DRhu user=vmail argv=/usr/bin/maildrop -d vmail ${extension} ${recipient} ${user} ${nexthop} ${sender}
    #
    # ====================================================================
    #
    # Recent Cyrus versions can use the existing "lmtp" master.cf entry.
    #
    # Specify in cyrus.conf:
    #   lmtp    cmd="lmtpd -a" listen="localhost:lmtp" proto=tcp4
    #
    # Specify in main.cf one or more of the following:
    #  mailbox_transport = lmtp:inet:localhost
    #  virtual_transport = lmtp:inet:localhost
    #
    # ====================================================================
    #
    # Cyrus 2.1.5 (Amos Gouaux)
    # Also specify in main.cf: cyrus_destination_recipient_limit=1
    #
    #cyrus     unix  -       n       n       -       -       pipe
    #  user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
    #
    # ====================================================================
    # Old example of delivery via Cyrus.
    #
    #old-cyrus unix  -       n       n       -       -       pipe
    #  flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
    #
    # ====================================================================
    #
    # See the Postfix UUCP_README file for configuration details.
    #
    uucp      unix  -       n       n       -       -       pipe
      flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
    #
    # Other external delivery methods.
    #
    ifmail    unix  -       n       n       -       -       pipe
      flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
    bsmtp     unix  -       n       n       -       -       pipe
      flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
    scalemail-backend unix	-	n	n	-	2	pipe
      flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
    mailman   unix  -       n       n       -       -       pipe
      flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
      ${nexthop} ${user}
    
    dovecot   unix  -       n       n       -       -       pipe
      flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${user}@${nexthop}
    smtp-amavis     unix    -       -       -       -       4       smtp
            -o smtp_data_done_timeout=1200
            -o smtp_send_xforward_command=yes
            -o disable_dns_lookups=yes
            -o max_use=20
    
    127.0.0.1:10025 inet    n       -       -       -       -       smtpd
            -o content_filter=
            -o local_recipient_maps=
            -o relay_recipient_maps=
            -o smtpd_restriction_classes=
            -o smtpd_delay_reject=no
            -o smtpd_client_restrictions=permit_mynetworks,reject
            -o smtpd_helo_restrictions=
            -o smtpd_sender_restrictions=
            -o smtpd_recipient_restrictions=permit_mynetworks,reject
            -o smtpd_data_restrictions=reject_unauth_pipelining
            -o smtpd_end_of_data_restrictions=
            -o mynetworks=127.0.0.0/8
            -o smtpd_error_sleep_time=0
            -o smtpd_soft_error_limit=1001
            -o smtpd_hard_error_limit=1000
            -o smtpd_client_connection_count_limit=0
            -o smtpd_client_connection_rate_limit=0
            -o receive_override_options=no_header_body_checks,no_unknown_recipient_checks
    
    Restarting amavis:
    Code:
    Oct 18 11:54:41 mail amavis[3309]: Net::Server: Group Not Defined.  Defaulting to EGID '120 120'
    Oct 18 11:54:41 mail amavis[3309]: Net::Server: User Not Defined.  Defaulting to EUID '112'
    Oct 18 11:54:41 mail amavis[3309]: Module Amavis::Conf        2.303
    Oct 18 11:54:41 mail amavis[3309]: Module Archive::Zip        1.30
    Oct 18 11:54:41 mail amavis[3309]: Module BerkeleyDB          0.54
    Oct 18 11:54:41 mail amavis[3309]: Module Compress::Zlib      2.06
    Oct 18 11:54:41 mail amavis[3309]: Module Convert::TNEF       0.18
    Oct 18 11:54:41 mail amavis[3309]: Module Convert::UUlib      1.4
    Oct 18 11:54:41 mail amavis[3309]: Module Crypt::OpenSSL::RSA 0.28
    Oct 18 11:54:41 mail amavis[3309]: Module DBD::mysql          4.025
    Oct 18 11:54:41 mail amavis[3309]: Module DBI                 1.63
    Oct 18 11:54:41 mail amavis[3309]: Module DB_File             1.827
    Oct 18 11:54:41 mail amavis[3309]: Module Digest::MD5         2.52
    Oct 18 11:54:41 mail amavis[3309]: Module Digest::SHA         5.84_01
    Oct 18 11:54:41 mail amavis[3309]: Module File::Temp          0.23
    Oct 18 11:54:41 mail amavis[3309]: Module IO::Socket::INET6   2.71
    Oct 18 11:54:41 mail amavis[3309]: Module MIME::Entity        5.505
    Oct 18 11:54:41 mail amavis[3309]: Module MIME::Parser        5.505
    Oct 18 11:54:41 mail amavis[3309]: Module MIME::Tools         5.505
    Oct 18 11:54:41 mail amavis[3309]: Module Mail::DKIM::Signer  0.4
    Oct 18 11:54:41 mail amavis[3309]: Module Mail::DKIM::Verifier 0.4
    Oct 18 11:54:41 mail amavis[3309]: Module Mail::Header        2.12
    Oct 18 11:54:41 mail amavis[3309]: Module Mail::Internet      2.12
    Oct 18 11:54:41 mail amavis[3309]: Module Mail::SPF           v2.009
    Oct 18 11:54:41 mail amavis[3309]: Module Mail::SpamAssassin  3.004000
    Oct 18 11:54:41 mail amavis[3309]: Module Net::DNS            0.68
    Oct 18 11:54:41 mail amavis[3309]: Module Net::Server         2.007
    Oct 18 11:54:41 mail amavis[3309]: Module NetAddr::IP         4.071
    Oct 18 11:54:41 mail amavis[3309]: Module Socket6             0.25
    Oct 18 11:54:41 mail amavis[3309]: Module Time::HiRes         1.9725
    Oct 18 11:54:41 mail amavis[3309]: Module URI                 1.60
    Oct 18 11:54:41 mail amavis[3309]: Module Unix::Syslog        1.1
    Oct 18 11:54:41 mail amavis[3309]: Amavis::DB code      loaded
    Oct 18 11:54:41 mail amavis[3309]: SQL base code        loaded
    Oct 18 11:54:41 mail amavis[3309]: SQL::Log code        NOT loaded
    Oct 18 11:54:41 mail amavis[3309]: SQL::Quarantine      NOT loaded
    Oct 18 11:54:41 mail amavis[3309]: Lookup::SQL code     loaded
    Oct 18 11:54:41 mail amavis[3309]: Lookup::LDAP code    NOT loaded
    Oct 18 11:54:41 mail amavis[3309]: AM.PDP-in proto code loaded
    Oct 18 11:54:41 mail amavis[3309]: SMTP-in proto code   loaded
    Oct 18 11:54:41 mail amavis[3309]: Courier proto code   NOT loaded
    Oct 18 11:54:41 mail amavis[3309]: SMTP-out proto code  loaded
    Oct 18 11:54:41 mail amavis[3309]: Pipe-out proto code  NOT loaded
    Oct 18 11:54:41 mail amavis[3309]: BSMTP-out proto code NOT loaded
    Oct 18 11:54:41 mail amavis[3309]: Local-out proto code loaded
    Oct 18 11:54:41 mail amavis[3309]: OS_Fingerprint code  NOT loaded
    Oct 18 11:54:41 mail amavis[3309]: ANTI-VIRUS code      loaded
    Oct 18 11:54:41 mail amavis[3309]: ANTI-SPAM code       loaded
    Oct 18 11:54:41 mail amavis[3309]: ANTI-SPAM-EXT code   NOT loaded
    Oct 18 11:54:41 mail amavis[3309]: ANTI-SPAM-C code     NOT loaded
    Oct 18 11:54:41 mail amavis[3309]: ANTI-SPAM-SA code    loaded
    Oct 18 11:54:41 mail amavis[3309]: Unpackers code       loaded
    Oct 18 11:54:41 mail amavis[3309]: DKIM code            loaded
    Oct 18 11:54:41 mail amavis[3309]: Tools code           NOT loaded
    Oct 18 11:54:41 mail amavis[3309]: Found $file            at /usr/bin/file
    Oct 18 11:54:41 mail amavis[3309]: No $altermime,         not using it
    Oct 18 11:54:41 mail amavis[3309]: Internal decoder for .mail
    Oct 18 11:54:41 mail amavis[3309]: No decoder for       .F
    Oct 18 11:54:41 mail amavis[3309]: Found decoder for    .Z    at /bin/uncompress
    Oct 18 11:54:41 mail amavis[3309]: Internal decoder for .gz
    Oct 18 11:54:41 mail amavis[3309]: Found decoder for    .bz2  at /bin/bzip2 -d
    Oct 18 11:54:41 mail amavis[3309]: Found decoder for    .xz   at /usr/bin/xz -dc
    Oct 18 11:54:41 mail amavis[3309]: Found decoder for    .lzma at /usr/bin/xz -dc --format=lzma
    Oct 18 11:54:41 mail amavis[3309]: Found decoder for    .lzo  at /usr/bin/lzop -d
    Oct 18 11:54:41 mail amavis[3309]: No decoder for       .rpm  tried: rpm2cpio.pl, rpm2cpio
    Oct 18 11:54:41 mail amavis[3309]: Found decoder for    .cpio at /bin/pax
    Oct 18 11:54:41 mail amavis[3309]: Found decoder for    .tar  at /bin/pax
    Oct 18 11:54:41 mail amavis[3309]: Found decoder for    .deb  at /usr/bin/ar
    Oct 18 11:54:41 mail amavis[3309]: Internal decoder for .zip
    Oct 18 11:54:41 mail amavis[3309]: Internal decoder for .kmz
    Oct 18 11:54:41 mail amavis[3309]: No decoder for       .7z   tried: 7zr, 7za, 7z
    Oct 18 11:54:41 mail amavis[3309]: No decoder for       .rar  tried: unrar-free
    Oct 18 11:54:41 mail amavis[3309]: Found decoder for    .arj  at /usr/bin/arj
    Oct 18 11:54:41 mail amavis[3309]: Found decoder for    .arc  at /usr/bin/nomarch
    Oct 18 11:54:41 mail amavis[3309]: Found decoder for    .zoo  at /usr/bin/zoo
    Oct 18 11:54:41 mail amavis[3309]: No decoder for       .doc  tried: ripole
    Oct 18 11:54:41 mail amavis[3309]: Found decoder for    .cab  at /usr/bin/cabextract
    Oct 18 11:54:41 mail amavis[3309]: No decoder for       .tnef
    Oct 18 11:54:41 mail amavis[3309]: Internal decoder for .tnef
    Oct 18 11:54:41 mail amavis[3309]: Found decoder for    .exe  at /usr/bin/arj
    Oct 18 11:54:41 mail amavis[3309]: Using primary internal av scanner code for ClamAV-clamd
    Oct 18 11:54:41 mail amavis[3309]: Found secondary av scanner ClamAV-clamscan at /usr/bin/clamscan
    Oct 18 11:54:41 mail amavis[3309]: Deleting db files snmp.db,__db.003,__db.002,__db.001,nanny.db in /var/lib/amavis/db
    Oct 18 11:54:41 mail amavis[3309]: Creating db in /var/lib/amavis/db/; BerkeleyDB 0.54, libdb 5.3
    
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Amavis is trting fine according to the log.

    Which linux distribution do you use?
    Post the exact error messages tht sou get in the log.
    Use the ispconfig tedt script (see sticky post in this forum) to test your server.
     
  3. zapyahoo

    zapyahoo New Member

    Hello Till... thanks for the help.
    here's the result:
    Code:
    ##### SERVER #####
    IP-address (as per hostname): ***.***.***.***
    IP-address(es) (as per ifconfig): ***.***.***.***
    [INFO] ISPConfig is installed.
    
    ##### ISPCONFIG #####
    ISPConfig version is 3.0.5.4p4
    
    
    ##### VERSION CHECK #####
    
    [INFO] php (cli) version is 5.5.9-1ubuntu4.4
    
    ##### PORT CHECK #####
    
    
    ##### MAIL SERVER CHECK #####
    
    
    ##### RUNNING SERVER PROCESSES #####
    
    [INFO] I found the following web server(s):
    	Apache 2 (PID 2165)
    [INFO] I found the following mail server(s):
    	Postfix (PID 7282)
    [INFO] I found the following pop3 server(s):
    	Dovecot (PID 1601)
    [INFO] I found the following imap server(s):
    	Dovecot (PID 1601)
    [INFO] I found the following ftp server(s):
    	PureFTP (PID 2054)
    
    ##### LISTENING PORTS #####
    (only		()
    Local		(Address)
    [anywhere]:587		(7282/master)
    [anywhere]:110		(1601/dovecot)
    [anywhere]:143		(1601/dovecot)
    [localhost]:783		(26303/spamd.pid)
    [anywhere]:465		(7282/master)
    [anywhere]:21		(2054/pure-ftpd)
    [anywhere]:22		(1037/sshd)
    [anywhere]:25		(7282/master)
    [anywhere]:993		(1601/dovecot)
    [anywhere]:995		(1601/dovecot)
    [localhost]:10024		(7308/amavisd-new)
    [localhost]:10025		(7282/master)
    [anywhere]:3306		(32673/mysqld)
    *:*:*:*::*:587		(7282/master)
    [localhost]10		(1601/dovecot)
    [localhost]43		(1601/dovecot)
    *:*:*:*::*:783		(26303/spamd.pid)
    *:*:*:*::*:80		(2165/apache2)
    *:*:*:*::*:8080		(2165/apache2)
    *:*:*:*::*:465		(7282/master)
    *:*:*:*::*:8081		(2165/apache2)
    *:*:*:*::*:21		(2054/pure-ftpd)
    *:*:*:*::*:22		(1037/sshd)
    *:*:*:*::*:25		(7282/master)
    *:*:*:*::*:443		(2165/apache2)
    *:*:*:*::*:993		(1601/dovecot)
    *:*:*:*::*:995		(1601/dovecot)
    
    
    
    
    ##### IPTABLES #####
    Chain INPUT (policy ACCEPT)
    target     prot opt source               destination         
    fail2ban-webmin-auth  tcp  --  [anywhere]/0            [anywhere]/0            multiport dports 10000
    fail2ban-roundcube  tcp  --  [anywhere]/0            [anywhere]/0            multiport dports 80,443
    fail2ban-dovecot-pop3imap  tcp  --  [anywhere]/0            [anywhere]/0            multiport dports 110,995,143,993
    fail2ban-ssh  tcp  --  [anywhere]/0            [anywhere]/0            multiport dports 22
    
    Chain FORWARD (policy ACCEPT)
    target     prot opt source               destination         
    
    Chain OUTPUT (policy ACCEPT)
    target     prot opt source               destination         
    
    Chain fail2ban-dovecot-pop3imap (1 references)
    target     prot opt source               destination         
    RETURN     all  --  [anywhere]/0            [anywhere]/0           
    
    Chain fail2ban-roundcube (1 references)
    target     prot opt source               destination         
    RETURN     all  --  [anywhere]/0            [anywhere]/0           
    
    Chain fail2ban-ssh (1 references)
    target     prot opt source               destination         
    RETURN     all  --  [anywhere]/0            [anywhere]/0           
    
    Chain fail2ban-webmin-auth (1 references)
    target     prot opt source               destination         
    RETURN     all  --  [anywhere]/0            [anywhere]/0           
    
    
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Thats ok so far. And what about the other 2 things that i asked for?
     
  5. zapyahoo

    zapyahoo New Member

    the mail.log shows:
    Oct 18 13:17:14 mail postfix/qmgr[7286]: warning: connect to transport private/amavis: Connection refused

    Oct 18 13:17:14 mail postfix/error[7546]: 0BA7416C3C92: to=<info@*.com>, relay=none, delay=3019, delays=3019/0.01/0/0.06, dsn=4.3.0, status=deferred (mail transport unavailable)
     
  6. zapyahoo

    zapyahoo New Member

    and the last one:
    Distributor ID: Ubuntu
    Description: Ubuntu 14.04.1 LTS
    Release: 14.04
    Codename: trusty

    Server version 64b
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    Did you try to restart postfix as well? It might be tht this error occurred during amavis restart. Did you try to send a new mail?
     
  8. zapyahoo

    zapyahoo New Member

    Yes, already restarted postfix and amavis a couple of times.
    Just finished a server reboot.

    Also tried sending and receiving email. That's when the mail.log errors show up.


    **********
    hold on.
    after the reboot, it seems to be processing and delivering new emails.

    But the old emails, since the update yesterday that are queued are giving mail transport unavailable:
    Oct 18 13:34:15 mail postfix/error[2675]: 0C13416C3C64: to=<info@*.com>, relay=none, delay=4492, delays=4492/0.02/0/0.07, dsn=4.3.0, status=deferred (mail transport unavailable)
     
  9. zapyahoo

    zapyahoo New Member

    Till, comparing the delivered emails with the undelivered queue:
    relay=none dns=4.3.0
    relay=dovecot dns=2.0.0
     
  10. zapyahoo

    zapyahoo New Member

    forcing the re-queue seems to have fixed the problem.
    But not too confident, since I can't pinpoint the problem to start with
     
  11. Numerizen

    Numerizen Member

    Same problem here : Mail stops to go out from server. Fix is to restart (or start, depending) amavis and then Postfix, and finally postqueue -f.

    Wheezy 64 / ISPC 3.0.5.4p3

    The problem seems to happen more and more frequently : fine for a several weeks, two times since yesterday.
     
  12. till

    till Super Moderator Staff Member ISPConfig Developer

    You should check your logs why amavis fails, the most likely reason it that it runs out of memory. Hardware failures are also a possible resaon for segfaults in applications.
     
  13. Numerizen

    Numerizen Member

    Thanks. Turned out my problem was clam not started, because it wasn't in the starting services at boot. This explains the second failure.

    As for the first one, thd provider who hosts the VPS has had problem past week, so a reasonable guess is some that some of these problems impacted my server in a way or another.

    More generally speaking, I already installed munin which does a great job restarting failing services. I'm wondering if there is a way to be warned when postfix is still live but stops sending mails, for the present reason or another.
     
  14. zapyahoo

    zapyahoo New Member

    Patch 5

    Upgraded to patch5
    Same problems after a restart.
     
  15. Numerizen

    Numerizen Member

    Didn't upgrade yet, but amavis went down silently again last night.
     
  16. zapyahoo

    zapyahoo New Member

    ok..
    ubuntu postfix main.cf is:
    content_filter = smtp-amavis:[127.0.0.1]:10024
    Server receives and send all new emails.


    But the queue emails are still stuck:
    error.... relay=none, status=deferred (mail transport unavailable)
    even after postqueue -f they show relay=none when it should be relay=dovecot
     
  17. zapyahoo

    zapyahoo New Member

    Ok conclusion so far.

    changing the main.cf to:
    content_filter = smtp-amavis:[127.0.0.1]:10024
    instead of:
    content_filter = amavis:[127.0.0.1]:10024

    Seems to have fixed the issue. I have done several reboots and so far all pids are up and running with server receiving and sending emails.


    The messed up queue could not be fixed with:
    postqueue -f
    It need a full requeue with:
    postsuper -r ALL

    Let's wait for patch 6 :D
     
  18. till

    till Super Moderator Staff Member ISPConfig Developer

    The amavis transport that ispconfig creates during initial install is:

    Code:
    amavis unix - - - - 2 smtp
            -o smtp_data_done_timeout=1200
            -o smtp_send_xforward_command=yes
    but your transport seems to have the name "smtp-amavis" instead of just "amavis".
     
  19. zapyahoo

    zapyahoo New Member

    Mr. Till

    With all this affair I noticed some weird entries on my mail log.

    Literally every minute I have:
    connect from g158.green.fastwebserver.de[85.114.128.158]
    lost connection after EHLO from g158.green.fastwebserver.de[85.114.128.158]
    disconnect from g158.green.fastwebserver.de[85.114.128.158]

    Could this be some sort of hack trying?
     
  20. zapyahoo

    zapyahoo New Member

    I see, never suspected until I took a look at the official page:
    https://help.ubuntu.com/community/PostfixAmavisNew
     

Share This Page