No SASL authentication mechanisms using Ubuntu 20.04 + ISPConfig 3 + Dovecot

Discussion in 'Installation/Configuration' started by estebanmora, Feb 15, 2013.

  1. estebanmora

    estebanmora New Member

    Hi,

    I followed step by step the guide "The Perfect Server - Ubuntu 12.04 LTS (Apache2, BIND, Dovecot, ISPConfig 3)" to setup a new server. I works fine but I have problems with email.

    The Monitor says:

    Web-Server: Online
    FTP-Server: Online
    SMTP-Server: Online
    POP3-Server: Offline
    IMAP-Server: Offline
    DNS-Server: Online
    mySQL-Server: Online

    The Mail log says a lot of times:

    Feb 15 08:20:11 ubuntu postfix/smtpd[4576]: fatal: no SASL authentication mechanisms

    Searched for other posts in the forum and I have no solution yet. Anyone can help me?

    Thanks
     
  2. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    Please start dovecot.
     
  3. estebanmora

    estebanmora New Member

    Read that somewhere in another post. Did it and the same mistake. There has to be a mistake in the guide.
     
  4. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    There is no mistake in the guide, I've installed a VM for a client today by using this guide and did a strict copy & paste of all commands and my setup works.

    Which error do you get in /var/log/mail.log when yu restart dovecot.
     
  5. estebanmora

    estebanmora New Member

    root@ubuntu:/var/log# service dovecot start
    dovecot start/running, process 2586

    The last entries of mail.log:

    Feb 15 10:33:08 ubuntu postfix/qmgr[1816]: EAB301C009B: from=<root@ubuntu.laboratoriosacme.com>, size=653, nrcpt=1 (queue active)
    Feb 15 10:33:11 ubuntu postfix/smtpd[2440]: connect from localhost.localdomain[127.0.0.1]
    Feb 15 10:33:11 ubuntu postfix/smtpd[2440]: warning: SASL: Connect to private/auth failed: No such file or directory
    Feb 15 10:33:11 ubuntu postfix/smtpd[2440]: fatal: no SASL authentication mechanisms
    Feb 15 10:33:12 ubuntu amavis[1363]: (01363-02) (!)FWD via SMTP: <root@ubuntu.laboratoriosacme.com> -> <actividad@ebmechanics.co.cr>, 451 4.5.0 From MTA([127.0.0.1]:10025) during fwd-connect (Negative greeting:$
    Feb 15 10:33:12 ubuntu postfix/master[1809]: warning: process /usr/lib/postfix/smtpd pid 2440 exit status 1
    Feb 15 10:33:12 ubuntu postfix/master[1809]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
    Feb 15 10:33:12 ubuntu amavis[1363]: (01363-02) Blocked MTA-BLOCKED, <root@ubuntu.laboratoriosacme.com> -> <actividad@ebmechanics.co.cr>, Message-ID: <20130215114252.EAB301C009B@ubuntu.laboratoriosacme.com>, ma$
    Feb 15 10:33:12 ubuntu postfix/smtp[2437]: EAB301C009B: to=<actividad@ebmechanics.co.cr>, relay=127.0.0.1[127.0.0.1]:10024, delay=17419, delays=17416/0.02/0/3.4, dsn=4.5.0, status=deferred (host 127.0.0.1[127.0$
    Feb 15 10:35:02 ubuntu postfix/smtpd[2498]: connect from localhost.localdomain[127.0.0.1]
    Feb 15 10:35:02 ubuntu postfix/smtpd[2498]: warning: SASL: Connect to private/auth failed: No such file or directory
    Feb 15 10:35:02 ubuntu postfix/smtpd[2498]: fatal: no SASL authentication mechanisms
    Feb 15 10:35:03 ubuntu postfix/master[1809]: warning: process /usr/lib/postfix/smtpd pid 2498 exit status 1
    Feb 15 10:35:03 ubuntu postfix/master[1809]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
    Feb 15 10:38:08 ubuntu postfix/qmgr[1816]: 9F09B1C0F42: from=<web2@ubuntu.laboratoriosacme.com>, size=471, nrcpt=1 (queue active)
    Feb 15 10:38:08 ubuntu postfix/qmgr[1816]: 558531C00A1: from=<web2@ubuntu.laboratoriosacme.com>, size=658, nrcpt=1 (queue active)
    Feb 15 10:38:08 ubuntu postfix/qmgr[1816]: 468141C0F8E: from=<web2@ubuntu.laboratoriosacme.com>, size=471, nrcpt=1 (queue active)
    Feb 15 10:38:10 ubuntu postfix/smtpd[2575]: connect from localhost.localdomain[127.0.0.1]
    Feb 15 10:38:10 ubuntu postfix/smtpd[2575]: warning: SASL: Connect to private/auth failed: No such file or directory
    Feb 15 10:38:10 ubuntu postfix/smtpd[2575]: fatal: no SASL authentication mechanisms
    Feb 15 10:38:11 ubuntu amavis[1363]: (01363-03) (!)FWD via SMTP: <web2@ubuntu.laboratoriosacme.com> -> <actividad@ebmechanics.co.cr>, 451 4.5.0 From MTA([127.0.0.1]:10025) during fwd-connect (Negative greeting:$
    Feb 15 10:38:11 ubuntu postfix/master[1809]: warning: process /usr/lib/postfix/smtpd pid 2575 exit status 1
    Feb 15 10:38:11 ubuntu postfix/master[1809]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
    Feb 15 10:38:11 ubuntu amavis[1363]: (01363-03) Blocked MTA-BLOCKED, <web2@ubuntu.laboratoriosacme.com> -> <actividad@ebmechanics.co.cr>, Message-ID: <20130215140855.558531C00A1@ubuntu.laboratoriosacme.com>, ma$
    Feb 15 10:38:11 ubuntu postfix/smtp[2571]: 558531C00A1: to=<actividad@ebmechanics.co.cr>, relay=127.0.0.1[127.0.0.1]:10024, delay=8957, delays=8953/0.03/0/3.3, dsn=4.5.0, status=deferred (host 127.0.0.1[127.0.0$
    Feb 15 10:38:48 ubuntu amavis[1363]: (01363-04) (!)rw_loop: leaving rw loop, no progress, last event (select) 35.035 s ago
    Feb 15 10:38:48 ubuntu amavis[1363]: (01363-04) (!)FWD via SMTP: <web2@ubuntu.laboratoriosacme.com> -> <actividad@webmechanics.co.cr>, 451 4.5.0 From MTA([127.0.0.1]:10025) during fwd-connect (Negative greeting$
    Feb 15 10:38:48 ubuntu amavis[1363]: (01363-04) Blocked MTA-BLOCKED, <web2@ubuntu.laboratoriosacme.com> -> <actividad@webmechanics.co.cr>, Message-ID: <20130215115009.468141C0F8E@ubuntu.laboratoriosacme.com>, m$
    Feb 15 10:38:48 ubuntu postfix/smtp[2571]: 468141C0F8E: to=<actividad@webmechanics.co.cr>, relay=127.0.0.1[127.0.0.1]:10024, delay=17320, delays=17279/3.4/0.02/37, dsn=4.5.0, status=deferred (host 127.0.0.1[127$
    Feb 15 10:38:55 ubuntu amavis[1364]: (01364-02) (!)rw_loop: leaving rw loop, no progress, last event (select) 35.035 s ago
    Feb 15 10:38:55 ubuntu amavis[1364]: (01364-02) (!)FWD via SMTP: <web2@ubuntu.laboratoriosacme.com> -> <actividad@webmechanics.co.cr>, 451 4.5.0 From MTA([127.0.0.1]:10025) during fwd-connect (Negative greeting$
    Feb 15 10:38:55 ubuntu amavis[1364]: (01364-02) Blocked MTA-BLOCKED, <web2@ubuntu.laboratoriosacme.com> -> <actividad@webmechanics.co.cr>, Message-ID: <20130215161918.9F09B1C0F42@ubuntu.laboratoriosacme.com>, m$
    Feb 15 10:38:55 ubuntu postfix/smtp[2570]: 9F09B1C0F42: to=<actividad@webmechanics.co.cr>, relay=127.0.0.1[127.0.0.1]:10024, delay=1177, delays=1130/0.01/0.01/47, dsn=4.5.0, status=deferred (host 127.0.0.1[127.$
    Feb 15 10:38:55 ubuntu amavis[1363]: (01363-04) (!)rw_loop: leaving rw loop, no progress, last event (select) 5.005 s ago
     
  6. estebanmora

    estebanmora New Member

    Deleted the mail.log file and rebooted the system. Here you have the new mail.log file. The system tries to send a mail message when the cron jobs finish:

    Feb 15 10:50:01 ubuntu amavis[1016]: starting. /usr/sbin/amavisd-new at ubuntu.laboratoriosacme.com amavisd-new-2.6.5 (20110407), Unicode aware
    Feb 15 10:50:01 ubuntu amavis[1016]: Perl version 5.014002
    Feb 15 10:50:02 ubuntu amavis[1092]: Net::Server: Group Not Defined. Defaulting to EGID '120 120'
    Feb 15 10:50:02 ubuntu amavis[1092]: Net::Server: User Not Defined. Defaulting to EUID '112'
    Feb 15 10:50:02 ubuntu amavis[1092]: Module Amavis::Conf 2.208
    Feb 15 10:50:02 ubuntu amavis[1092]: Module Archive::Zip 1.30
    Feb 15 10:50:02 ubuntu amavis[1092]: Module BerkeleyDB 0.49
    Feb 15 10:50:02 ubuntu amavis[1092]: Module Compress::Zlib 2.033
    Feb 15 10:50:02 ubuntu amavis[1092]: Module Convert::TNEF 0.17
    Feb 15 10:50:02 ubuntu amavis[1092]: Module Convert::UUlib 1.4
    Feb 15 10:50:02 ubuntu amavis[1092]: Module Crypt::OpenSSL::RSA 0.27
    Feb 15 10:50:02 ubuntu amavis[1092]: Module DBD::mysql 4.020
    Feb 15 10:50:02 ubuntu amavis[1092]: Module DBI 1.616
    Feb 15 10:50:02 ubuntu amavis[1092]: Module DB_File 1.821
    Feb 15 10:50:02 ubuntu amavis[1092]: Module Digest::MD5 2.51
    Feb 15 10:50:02 ubuntu amavis[1092]: Module Digest::SHA 5.61
    Feb 15 10:50:02 ubuntu amavis[1092]: Module IO::Socket::INET6 2.69
    Feb 15 10:50:02 ubuntu amavis[1092]: Module MIME::Entity 5.502
    Feb 15 10:50:02 ubuntu amavis[1092]: Module MIME::parser 5.502
    Feb 15 10:50:02 ubuntu amavis[1092]: Module MIME::Tools 5.502
    Feb 15 10:50:02 ubuntu amavis[1092]: Module Mail::DKIM::Signer 0.39
    Feb 15 10:50:02 ubuntu amavis[1092]: Module Mail::DKIM::Verifier 0.39
    Feb 15 10:50:02 ubuntu amavis[1092]: Module Mail::Header 2.08
    Feb 15 10:50:02 ubuntu amavis[1092]: Module Mail::Internet 2.08
    Feb 15 10:50:02 ubuntu amavis[1092]: Module Mail::SPF v2.008
    Feb 15 10:50:02 ubuntu amavis[1092]: Module Mail::SpamAssassin 3.003002
    Feb 15 10:50:02 ubuntu amavis[1092]: Module Net::DNS 0.66
    Feb 15 10:50:02 ubuntu amavis[1092]: Module Net::Server 0.99
    Feb 15 10:50:02 ubuntu amavis[1092]: Module NetAddr::IP 4.058
    Feb 15 10:50:02 ubuntu amavis[1092]: Module Socket6 0.23
    Feb 15 10:50:02 ubuntu amavis[1092]: Module Time::HiRes 1.972101
    Feb 15 10:50:02 ubuntu amavis[1092]: Module URI 1.59
    Feb 15 10:50:02 ubuntu amavis[1092]: Module Unix::Syslog 1.1
    Feb 15 10:50:02 ubuntu amavis[1092]: Amavis::DB code loaded
    Feb 15 10:50:02 ubuntu amavis[1092]: Amavis::Cache code loaded
    Feb 15 10:50:02 ubuntu amavis[1092]: SQL base code loaded
    Feb 15 10:50:02 ubuntu amavis[1092]: SQL::Log code NOT loaded
    Feb 15 10:50:02 ubuntu amavis[1092]: SQL::Quarantine NOT loaded
    Feb 15 10:50:02 ubuntu amavis[1092]: Lookup::SQL code loaded
    Feb 15 10:50:02 ubuntu amavis[1092]: Lookup::LDAP code NOT loaded
    Feb 15 10:50:02 ubuntu amavis[1092]: AM.PDP-in proto code loaded
    Feb 15 10:50:02 ubuntu amavis[1092]: SMTP-in proto code loaded
    Feb 15 10:50:02 ubuntu amavis[1092]: Courier proto code NOT loaded
    Feb 15 10:50:02 ubuntu amavis[1092]: SMTP-out proto code loaded
    Feb 15 10:50:02 ubuntu amavis[1092]: Pipe-out proto code NOT loaded
    Feb 15 10:50:02 ubuntu amavis[1092]: BSMTP-out proto code NOT loaded
    Feb 15 10:50:02 ubuntu amavis[1092]: Local-out proto code loaded
    Feb 15 10:50:02 ubuntu amavis[1092]: OS_Fingerprint code NOT loaded
    Feb 15 10:50:02 ubuntu amavis[1092]: ANTI-VIRUS code loaded
    Feb 15 10:50:02 ubuntu amavis[1092]: ANTI-SPAM code loaded
    Feb 15 10:50:02 ubuntu amavis[1092]: ANTI-SPAM-EXT code NOT loaded
    Feb 15 10:50:02 ubuntu amavis[1092]: ANTI-SPAM-C code NOT loaded
    Feb 15 10:50:02 ubuntu amavis[1092]: ANTI-SPAM-SA code loaded
    Feb 15 10:50:02 ubuntu amavis[1092]: Unpackers code loaded
    Feb 15 10:50:02 ubuntu amavis[1092]: DKIM code loaded
    Feb 15 10:50:02 ubuntu amavis[1092]: Tools code NOT loaded
    Feb 15 10:50:02 ubuntu amavis[1092]: Found $file at /usr/bin/file
    Feb 15 10:50:02 ubuntu amavis[1092]: No $altermime, not using it
    Feb 15 10:50:02 ubuntu amavis[1092]: Internal decoder for .mail
    Feb 15 10:50:02 ubuntu amavis[1092]: No decoder for .F
    Feb 15 10:50:02 ubuntu amavis[1092]: Found decoder for .Z at /bin/uncompress
    Feb 15 10:50:02 ubuntu amavis[1092]: Internal decoder for .gz
    Feb 15 10:50:02 ubuntu amavis[1092]: Found decoder for .bz2 at /bin/bzip2 -d
    Feb 15 10:50:02 ubuntu amavis[1092]: Found decoder for .lzo at /usr/bin/lzop -d
    Feb 15 10:50:02 ubuntu amavis[1092]: No decoder for .rpm tried: rpm2cpio.pl, rpm2cpio
    Feb 15 10:50:02 ubuntu amavis[1092]: Found decoder for .cpio at /bin/pax
    Feb 15 10:50:02 ubuntu amavis[1092]: Found decoder for .tar at /bin/pax
    Feb 15 10:50:02 ubuntu amavis[1092]: Found decoder for .deb at /usr/bin/ar
    Feb 15 10:50:02 ubuntu amavis[1092]: Internal decoder for .zip
    Feb 15 10:50:02 ubuntu amavis[1092]: No decoder for .7z tried: 7zr, 7za, 7z
    Feb 15 10:50:02 ubuntu amavis[1092]: No decoder for .rar tried: unrar-free
    Feb 15 10:50:02 ubuntu amavis[1092]: Found decoder for .arj at /usr/bin/arj
    Feb 15 10:50:02 ubuntu amavis[1092]: Found decoder for .arc at /usr/bin/nomarch
    Feb 15 10:50:02 ubuntu amavis[1092]: Found decoder for .zoo at /usr/bin/zoo
    Feb 15 10:50:02 ubuntu amavis[1092]: No decoder for .lha
    Feb 15 10:50:02 ubuntu amavis[1092]: No decoder for .doc tried: ripole
    Feb 15 10:50:02 ubuntu amavis[1092]: Found decoder for .cab at /usr/bin/cabextract
    Feb 15 10:50:02 ubuntu amavis[1092]: No decoder for .tnef
    Feb 15 10:50:02 ubuntu amavis[1092]: Internal decoder for .tnef
    Feb 15 10:50:02 ubuntu amavis[1092]: Found decoder for .exe at /usr/bin/arj
    Feb 15 10:50:02 ubuntu amavis[1092]: Using primary internal av scanner code for ClamAV-clamd
    Feb 15 10:50:02 ubuntu amavis[1092]: Found secondary av scanner ClamAV-clamscan at /usr/bin/clamscan
    Feb 15 10:50:02 ubuntu amavis[1092]: Creating db in /var/lib/amavis/db/; BerkeleyDB 0.49, libdb 5.1
    Feb 15 10:50:05 ubuntu postfix/postqueue[1373]: warning: Mail system is down -- accessing queue directly
    Feb 15 10:50:22 ubuntu postfix/master[1819]: daemon started -- version 2.9.3, configuration /etc/postfix
    Feb 15 10:52:22 ubuntu postfix[2201]: fatal: usage: postfix [-c config_dir] [-Dv] command

    I'm repeating the setup on another computer just to verify if the steps described in the guide have a mistake.
     
  7. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

Share This Page