Results 1 to 6 of 6

Thread: Need halp with a new mailserver

  1. #1
    Join Date
    Feb 2020
    Beans
    8

    Need halp with a new mailserver

    Hi,

    I'm trying to set up a new mailserver using a VM with a new Ubuntu 24.04LTS Server.

    I have been following to the letter the instructions found here https://www.rosehosting.com/blog/ema...n-ubuntu-24-04 to install Postfix, Dovecot, Postfixadmin and Roundcube Webmail on this standard LAMP Server. Later I want to install Rspamd and configure DKIM.

    My problem is that at this stage there is somewhere a config error relating to those instructions since I am unable to login to any mail account neither with Thunderbird nor Roundcube. have triple checked the passwords but the system doesn't accept any.

    Here are the relevant logs:


    roundcube errors.log
    Code:
    [15-Jun-2024 10:47:08 +0000]: <klkhomsq> IMAP Error: Login failed for me@mydomain against localhost from 192.xxx.xxx.yyy. AUTHENTICATE PLAIN: Temporary authentication failure. [mailserver:2024-06-15 10:47:08] in /usr/share/roundcube/program/lib/Roundcube/rcube_imap.php on line 211 (POST /roundcube/?_task=login&_action=login)
    [15-Jun-2024 10:47:22 +0000]: <klkhomsq> IMAP Error: Login failed for me@mydomain against localhost from 192.xxx.xxx.yyy. AUTHENTICATE PLAIN: Temporary authentication failure. [mailserver:2024-06-15 10:47:22] in /usr/share/roundcube/program/lib/Roundcube/rcube_imap.php on line 211 (POST /roundcube/?_task=login&_action=login)

    mail.err
    Code:
    2024-06-15T12:47:06.853198+02:00 mailserver dovecot: auth-worker(57917): Error: conn unix:auth-worker (pid=57915,uid=113): auth-worker<1>: sql(me@mydomain,127.0.0.1,<OOoLdOsaHIJ/AAAB>): Invalid password in passdb: Password is not blowfish password
    2024-06-15T12:47:20.953516+02:00 mailserver dovecot: auth-worker(57917): Error: conn unix:auth-worker (pid=57915,uid=113): auth-worker<2>: sql(me@mydomain,127.0.0.1,<QSumdOsaUp9/AAAB>): Invalid password in passdb: Password is not blowfish password
    mail.log
    Code:
    2024-06-15T12:47:06.853198+02:00 mailserver dovecot: auth-worker(57917): Error: conn unix:auth-worker (pid=57915,uid=113): auth-worker<1>: sql(me@mydomain,127.0.0.1,<OOoLdOsaHIJ/AAAB>): Invalid password in passdb: Password is not blowfish password
    2024-06-15T12:47:08.355864+02:00 mailserver dovecot: imap-login: Disconnected: Connection closed (auth service reported temporary failure): user=<me@mydomain>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured, session=<OOoLdOsaHIJ/AAAB>
    2024-06-15T12:47:20.953516+02:00 mailserver dovecot: auth-worker(57917): Error: conn unix:auth-worker (pid=57915,uid=113): auth-worker<2>: sql(me@mydomain,127.0.0.1,<QSumdOsaUp9/AAAB>): Invalid password in passdb: Password is not blowfish password
    2024-06-15T12:47:22.456849+02:00 mailserver dovecot: imap-login: Disconnected: Connection closed (auth service reported temporary failure): user=<me@mydomain>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured, session=<QSumdOsaUp9/AAAB>

    syslog
    Code:
    2024-06-15T12:47:06.853198+02:00 mailserver dovecot: auth-worker(57917): Error: conn unix:auth-worker (pid=57915,uid=113): auth-worker<1>: sql(me@mydomain,127.0.0.1,<OOoLdOsaHIJ/AAAB>): Invalid password in passdb: Password is not blowfish password
    2024-06-15T12:47:08.355864+02:00 mailserver dovecot: imap-login: Disconnected: Connection closed (auth service reported temporary failure): user=<me@mydomain>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured, session=<OOoLdOsaHIJ/AAAB>
    2024-06-15T12:47:20.953516+02:00 mailserver dovecot: auth-worker(57917): Error: conn unix:auth-worker (pid=57915,uid=113): auth-worker<2>: sql(me@mydomain,127.0.0.1,<QSumdOsaUp9/AAAB>): Invalid password in passdb: Password is not blowfish password
    2024-06-15T12:47:22.456849+02:00 mailserver dovecot: imap-login: Disconnected: Connection closed (auth service reported temporary failure): user=<me@mydomain>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured, session=<QSumdOsaUp9/AAAB>

    So I changed in the dovecot-sql.conf.ext "default_pass_scheme = BLF-CRYPT" to "default_pass_scheme = MD5-CRYPT" and now I get these errors.
    I suspect there might be somewhere a permission problem which I can't find...


    roundcube errors.log
    Code:
    [15-Jun-2024 14:46:40 +0000]: <i924elb9> IMAP Error: Login failed for me@mydomain against localhost from 192.xxx.xxx.yyy. AUTHENTICATE PLAIN: Authentication failed. in /usr/share/roundcube/program/lib/Roundcube/rcube_imap.php on line 211 (POST /roundcube/?_task=login&_action=login)
    mail.err
    nothing

    mail.log
    Code:
    2024-06-15T16:46:40.281956+02:00 mailserver dovecot: imap-login: Disconnected: Connection closed (auth failed, 1 attempts in 2 secs): user=<me@mydomain>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured, 9

    syslog
    Code:
    2024-06-15T16:46:40.281956+02:00 mailserver dovecot: imap-login: Disconnected: Connection closed (auth failed, 1 attempts in 2 secs): user=<me@mydomain>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured, session=<SnemzO4a8pt/AAAB>
    rcube_imap.php lines 209 to 212
    Code:
                    rcube::raise_error([
                            'code' => 403, 'type' => 'imap',
     'file' => __FILE__, 'line' => __LINE__,
                            'message' => $message
    Any help would be highly appreciated.
    Last edited by ajgreeny; 2 Days Ago at 10:52 PM. Reason: Quote tags changes to code tags

  2. #2
    Join Date
    May 2024
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Need halp with a new mailserver

    Do you have a weird character in one of the passphrases, like a single quote or tilde?

  3. #3
    Join Date
    Aug 2022
    Beans
    1

    Re: Need halp with a new mailserver

    doing the same thing but still stock with this error -

    Oops... something went wrong!

    An internal error has occurred. Your request cannot be processed at this time.
    For administrators: Please check the application and/or server error logs for more information.

    can anyone help?

  4. #4
    Join Date
    May 2024
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Need halp with a new mailserver

    Check the logs as OP has done for a clue.

  5. #5
    Join Date
    Feb 2020
    Beans
    8

    Re: Need halp with a new mailserver

    Since I have tried several things:
    - Password: I have tried with this test Password: Qwertz,123 => same thing
    - Added to /etc/dovecot/conf.d/10-auth.conf one line: disable_plaintext_auth = no => same thing
    - Changed /etc/dovecot/dovecot-sql.conf.ext comment out the 2 last lines and inserted the new instructions found on linuxize.com
    Code:
    #password_query = SELECT username as user, password, '/var/vmail/%d/%n' as userdb_home, 'maildir:/var/vmail/%d/%n' as userdb_mail, 150 as
    #user_query = SELECT '/var/vmail/%d/%u' as home, 'maildir:/var/vmail/%d/%u' as mail, 150 AS uid, 8 AS gid, concat('dirsize:storage=', quota) userdb_uid, 8 as userdb_gid FROM mailbox WHERE username = '%u' AND active = '1' AS quota FROM mailbox WHERE username = '%u' AND active = '1'
    
    iterate_query = SELECT username AS user FROM mailbox
    user_query = SELECT CONCAT('/var/mail/vmail/',maildir) AS home, \
    CONCAT('maildir:/var/mail/vmail/',maildir) AS mail, \
    5000 AS uid, 5000 AS gid, CONCAT('*:bytes=',quota) AS quota_rule \
    FROM mailbox WHERE username = '%u' AND active = 1
    password_query = SELECT username AS user,password FROM mailbox \
    WHERE username = '%u' AND active='1
    '
    => still same thing

    I'll be searching more in the next few days...
    Last edited by ajgreeny; 2 Days Ago at 10:54 PM.

  6. #6
    Join Date
    Jul 2024
    Beans
    3

    Re: Need halp with a new mailserver

    Hello,

    Looking at the "Invalid password in passdb: Password is not blowfish password", probably that the password isn't hashed correctly,

    Are your usernames and passwords set through Postfixadmin? If so, double-check how Postfixadmin hashes the passwords.

    Check this page for more info

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •