[Beta] Hestia 1.6.0 Help wanted!

Exim running on port 587

Im reinstall server, HestiaCP, create new domain, mail. But still have error
SMTP error (-1): Failed to connect to the server.
You can check it on your server? I think its bug.

Check log files and so on. Mostlikely issues with Exim4.

On my server SMTP not worked too.
You find solution?

HestiaCP is opensource I am not able to debug your server unless I have access. Unless you want to pay for it you have to do it your self.

Also we haven’t made any changes to the software since the first beta release and I have tested it very well to make sure everything was working.

Please provide us with more debugging information. So far I haven’t seen anything releated to Exim4 it self.

If i disable SSL in mail - mail.domain.com back me this page:
Success! - Opera_220609152240

If ssl enabled - roundcube login page… Why roundcube going away if ssl in mail disabled?

Exim log:

2022-06-09 15:26:03 Warning: No server certificate defined; will use a selfsigned one.
 Suggested action: either install a certificate or change tls_advertise_hosts option
2022-06-09 15:26:03 exim 4.95 daemon started: pid=18946, -q30m, listening for SMTP on [127.0.0.1]:25 [::1]:25
2022-06-09 15:26:04 Start queue run: pid=19063
2022-06-09 15:26:04 End queue run: pid=19063

If you disable ssl from a mail domain it will remove the ssl config for the domain and there is then no config available and it will resolve back to the ip config and this one will redirect to /var/www/html so it all correct

Make sure to enable ssl for the hostname aswell

Exim listening 127.0.0.1 local interface. Maybe need it to change to 0.0.0.0 ?
If yes - how i can change it?

Our config should limit it to 127.0.0.1 only is you config file still the Hestia original that can be found:
hestiacp/exim4.conf.4.94.template at main · hestiacp/hestiacp · GitHub (Deb 11 or Ubuntun 22.04)

or

hestiacp/exim4.conf.template at main · hestiacp/hestiacp · GitHub Everything else

Im reinstall server to Ubuntu 20.04, install HestiaCP 1.15 and all works fine.
So its bug in Ubuntu 22.04/HestiaCP 1.16…
If you need i can do what you want for fix it but tell me what i need to do. I have backup with 22.04/1.16 and can restore it…

I can’t debug a server where I don’t have access to.

So unless you are going to provide with more information or willing to test I can’t do anything. So far I know 1.6.0 is going to be released next week unless we find certain issues but unless we can reproduce it we can’t debug it…

I can give you access or give all info what you need, its not problem :slight_smile:

Try

rm /etc/exim4/exim4.conf.template
cp /usr/local/hestia/install/deb/exim/exim4.conf.template /etc/exim4/exim4.conf.template

and restart exim4

Done, now when sending a message, error changed:
SMTP error (451): Cannot add recipient "[email protected]" (Temporary local problem - please try later)

In exim logs:

2022-06-09 18:40:19 H=localhost (webmail.mypostel.com) [127.0.0.1] sender verify defer for <[email protected]>: failed to expand "${extract{1}{:}{${lookup{$local_part@$domain}lsearch{/etc/exim4/domains/$domain/aliases}}}}": NULL
2022-06-09 18:40:19 H=localhost (webmail.domain.com) [127.0.0.1] F=<[email protected]> A=dovecot_login:[email protected] temporarily rejected RCPT <[email protected]>: Could not complete sender verify
2022-06-09 18:44:38 Tainted filename for search: '/etc/exim4/domains/mypostel.com/aliases'
2022-06-09 18:44:38 H=mail-ua1-f54.google.com [209.85.222.54] X=TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128 CV=no SNI=mail.domain.com F=<[email protected]> temporarily rejected RCPT <[email protected]>: failed to expand "${extract{1}{:}{${lookup{$local_part@$domain}lsearch{/etc/exim4/domains/$domain/aliases}}}}": NULL

What kind of email did you try to send?

Local user to local user on different domain?

Sending works fine:

2022-06-09 17:59:17 1nzKZ3-0003fn-8x => [email protected] R=dnslookup T=remote_smtp H=reception.mail-tester.com [94.23.206.89] X=TLS1.2:ECDHE_SECP256R1__RSA_SHA256__AES_256_GCM:256 CV=yes C="250 2.0.0 Ok: queued as A3F0EA99F0"
2022-06-09 17:59:17 1nzKZ3-0003fn-8x Completed
2022-06-09 17:59:28 SMTP command timeout on connection 

Alias to same domain:

2022-06-09 17:50:11 1nzKQF-0003Tk-DF <= ik@xxxx H=localhost (webmail.jaap.xyz) [127.0.0.1] P=esmtpa A=dovecot_login:ik@xxxx S=495 id=89e7e2cbbad257d3300dd501e91ff98c@xxxxx
2022-06-09 17:50:11 1nzKQF-0003Tk-DF => jaap <jaap@xxxx> R=terminate_alias T=devnull
2022-06-09 17:50:11 1nzKQF-0003Tk-DF => ik <jaap@xxxx> R=localuser T=local_delivery
2022-06-09 17:50:11 1nzKQF-0003Tk-DF Completed

Sending to not-locale user and different domain…
Like [email protected]

It does still an look up if the domain exists:

Did some testing with adding a domain that both “exists”

2022-06-09 21:22:15 1nzNjT-0009hc-5F <= [email protected] H=localhost (webmail.xxx.eu) [127.0.0.1] P=esmtpa A=dovecot_login:[email protected] S=504 [email protected]
2022-06-09 21:22:15 1nzNjT-0009hc-5F => ik <[email protected]> R=localuser T=local_delivery
2022-06-09 21:22:15 1nzNjT-0009hc-5F Completed

or even domain.com that is not hosted on the server:

2022-06-09 21:30:17 1nzNrD-000AOU-P9 => [email protected] R=dnslookup T=remote_smtp H=ASPMX.L.GOOGLE.COM [142.251.5.27] X=TLS1.3:ECDHE_X25519__ECDSA_SECP256R1_SHA256__AES_256_GCM:256 CV=yes K C="250 2.0.0 OK l16-20020a5d6750000000b0020d0735e619si24135886wrw.794 - gsmtp"

2022-06-09 21:30:17 1nzNrD-000AOU-P9 Completed

I used the wrong url …

Use

/usr/local/hestia/install/deb/exim/exim4.conf.4.94.template

instead of
/usr/local/hestia/install/deb/exim/exim4.conf.template

1 Like
rm /etc/exim4/exim4.conf.template
cp /usr/local/hestia/install/deb/exim/exim4.conf.4.94.template /etc/exim4/exim4.conf.template
service exim4 restart

ALL WORKED OK NOW, MESSAGE SENT! :ok_hand:

1 Like