1 (edited by thelex 2015-10-05 22:26:51)

Topic: After installing sendmail - SMTP Error (504): Authentication failed.

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.2
- Linux/BSD distribution name and version: Ubuntu Server 14.04 x64
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? - No
- Related log if you're reporting an issue:
====

I am using Ubuntu 14.04.

I have installed iRedMail with roundcube and everything worked fine until today i installed:

apt-get install sendmail

After i installed sendmail now i receive the following error when i am trying to send an email:

SMTP Error (504): Authentication failed.

I can not receive emails either. Problems that i did not have until i installed sendmail.

Here is my mail.log file:

Oct  5 17:02:50 mail roundcube: <e5kpjes2> SMTP Error: Authentication failure: Invalid response code received from server (Code: 504) in /opt/www/roundcubemail-1.1.1/program/lib/Roundcube/rcube.php on line 1714 (POST /mail/?_task=mail&_unlock=loadin$
Oct  5 17:03:23 mail sm-mta[27066]: t95E3Nca027066: localhost [127.0.0.1] did not issue MAIL/EXPN/VRFY/ETRN during connection to MSP-v4
Oct  5 17:03:23 mail roundcube: <e5kpjes2> SMTP Error: Authentication failure: Invalid response code received from server (Code: 504) in /opt/www/roundcubemail-1.1.1/program/lib/Roundcube/rcube.php on line 1714 (POST /mail/?_task=mail&_unlock=loadin$
Oct  5 17:04:17 mail sm-mta[27108]: t95E4HPJ027108: localhost [127.0.0.1] did not issue MAIL/EXPN/VRFY/ETRN during connection to MSP-v4
Oct  5 17:04:17 mail roundcube: <v1pa10s5> SMTP Error: Authentication failure: Invalid response code received from server (Code: 504) in /opt/www/roundcubemail-1.1.1/program/lib/Roundcube/rcube.php on line 1714 (POST /mail/?_task=mail&_unlock=loadin$
Oct  5 17:05:22 mail sm-mta[27128]: t95E5MbT027128: localhost [127.0.0.1] did not issue MAIL/EXPN/VRFY/ETRN during connection to MSP-v4
Oct  5 17:05:22 mail roundcube: <v1pa10s5> SMTP Error: Authentication failure: Invalid response code received from server (Code: 504) in /opt/www/roundcubemail-1.1.1/program/lib/Roundcube/rcube.php on line 1714 (POST /mail/?_task=mail&_unlock=loadin$
Oct  5 17:09:08 mail sendmail[27190]: t95E98KG027190: from=root, size=527, class=0, nrcpts=1, msgid=<201510051409.t95E98KG027190@mail.vivashost.com>, relay=root@localhost
Oct  5 17:09:08 mail sm-mta[27191]: t95E98VU027191: from=<root@mail.vivashost.com>, size=801, class=0, nrcpts=1, msgid=<201510051409.t95E98KG027190@mail.vivashost.com>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Oct  5 17:09:08 mail sendmail[27190]: t95E98KG027190: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30527, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (t95E98VU027191 Message accepted for delivery)
Oct  5 17:09:08 mail sm-mta[27192]: t95E98VU027191: to=<root@mail.vivashost.com>, ctladdr=<root@mail.vivashost.com> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31029, dsn=2.0.0, stat=Sent
Oct  5 17:15:22 mail sm-mta[27246]: t95EFMlq027246: localhost [127.0.0.1] did not issue MAIL/EXPN/VRFY/ETRN during connection to MSP-v4
Oct  5 17:15:22 mail roundcube: <8cql50r9> SMTP Error: Authentication failure: Invalid response code received from server (Code: 504) in /opt/www/roundcubemail-1.1.1/program/lib/Roundcube/rcube.php on line 1714 (POST /mail/?_task=mail&_unlock=loadin$
Oct  5 17:15:37 mail sm-mta[27251]: t95EFbnx027251: localhost [127.0.0.1] did not issue MAIL/EXPN/VRFY/ETRN during connection to MSP-v4
Oct  5 17:15:37 mail roundcube: <8cql50r9> SMTP Error: Authentication failure: Invalid response code received from server (Code: 504) in /opt/www/roundcubemail-1.1.1/program/lib/Roundcube/rcube.php on line 1714 (POST /mail/?_task=mail&_unlock=loadin$

Can you help me out resolve this problem ?

Thanks in advance!

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: After installing sendmail - SMTP Error (504): Authentication failed.

iRedMail uses Postfix as MTA, why do you want sendmail?

The solve this: remove sendmail and restart Postfix service.

3 (edited by bouskdav 2020-01-16 16:46:11)

Re: After installing sendmail - SMTP Error (504): Authentication failed.

One more point for this (with iRedMail 1.0) - if you "accidentally" install sendmail:

sudo apt purge sendmail
sudo apt install postfix postfix-mysql postfix-pcre

in the second step - when it asks you for configuration - choose the first option: "no configuration"

now:

sudo reboot

and you are good to go

Cheers!
(And Zhang thanks for point in the right direction)

4

Re: After installing sendmail - SMTP Error (504): Authentication failed.

OK, however - after fixing this, it seems, that users cannot attach files. In RoundCube it throws: "maximum message size exceeded 15 B" which is weird. Tried to do:

postconf -e mailbox_size_limit=104857600
postconf -e message_size_limit=104857600

so users are allowed to send some files from MS Outlook, but RoundCube acts the same (max message 15 B)

Please, Zhang, do you have any clue?

Thanks,
David

5

Re: After installing sendmail - SMTP Error (504): Authentication failed.

bouskdav wrote:

OK, however - after fixing this, it seems, that users cannot attach files. In RoundCube it throws: "maximum message size exceeded 15 B" which is weird.

there are other configs related to message size, some specific to RoundCube.
https://docs.iredmail.org/change.mail.a … be-webmail

6

Re: After installing sendmail - SMTP Error (504): Authentication failed.

MuPp3t33r wrote:
bouskdav wrote:

OK, however - after fixing this, it seems, that users cannot attach files. In RoundCube it throws: "maximum message size exceeded 15 B" which is weird.

there are other configs related to message size, some specific to RoundCube.
https://docs.iredmail.org/change.mail.a … be-webmail

thanks :) also tried Roundcube and Nginx/PHP related settings. It seems, that when one uploads a file through Roundcube, there are few checks - first is somehow related to Roundcube (nginx/php and roundcube affects that) - this check passed (file was for a little while shown as attached) but then Roundcube saves this message to Templates - and now it did not pass.

However thanks to this awesome package I found faster to spin out a new fresh server and make a fresh install, then migrate the old one (with copying 100GB of emails via scp it took less than 4 hours to full functionality).

Nevertheless I will try to reproduce the issue again on some test env. and try to fix it just for evidence.

Thanks again guys! :)

7

Re: After installing sendmail - SMTP Error (504): Authentication failed.

It's a bug in Roundcube config file, you can fix it by following the tutorial to update Roundcube setting:
https://docs.iredmail.org/change.mail.a … be-webmail