Sending email does not work

dariusuk
Posts: 12
Joined: Tue Oct 13, 2020 7:57 am

hello
sorry for my bad english :D

i have problems with the new myvesta installation. I installed myvesta on three different servers with the same hardware. With two servers everything works fine but with one I can't send any emails. I compared everything (exim.conf etc.) between sever one (where everything is running) and server two (where sending email is not possible) and found no difference. All confs are equal 1: 1. Each of the three servers has its own fixed IP and domain. I have no idea what's wrong with some of them. Can anyone help me here? Thank you

----------------------------------------------------------------------------------------------------------------------------------------------------
<<>> DiG 9.11.5-P4-5.1+deb10u2-Debian <<>> xxxxxl.eu mx
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 45398
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;axxxxxx.eu. IN MX

;; ANSWER SECTION:
xxxxxxxl.eu. 59 IN MX 10 xxxx.eu.

;; Query time: 44 msec
;; SERVER: 192.168.0.1#53(192.168.0.1)
;; WHEN: Tue Oct 13 08:50:22 CEST 2020
;; MSG SIZE rcvd: 56

-------------------------------------------------------------------------------------------------------------------------------------------------

telnet x.x.x.x 25
Trying x.x.x.x.13...
Connected to x.x.x.x.
Escape character is '^]'.
220 xxxx.eu ESMTP Exim 4.92 Tue, 13 Oct 2020 08:22:06 +0200

----------------------------------------------------------------------------------------------------------------------------------------------------


My server:
Debian 10.6 whit fresh myvesta
Apache2 - yes
Ngnix -no ( only for vesta panel at 8083)
Exim4 -yes
Dovecot -yes
Bind9 - yes
Clamav - daemon - no
Spassamasin - yes
iptables - yes
fail2ban - yes
mysql - yes
proftpd - yes
User avatar
myVesta
Site Admin
Posts: 932
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 8 times
Been thanked: 6 times

What you see in /var/log/exim4/mainlog when you try to send email?
dariusuk
Posts: 12
Joined: Tue Oct 13, 2020 7:57 am

07:25:27 exim 4.92 daemon started: pid=1765, -q30m, listening for SMTP on port 25 (IPv4) port 587 (IPv4) port 2525 (IPv4) and for SMTPS on port 465 (IPv4)
2020-10-13 07:25:27 Start queue run: pid=1767
2020-10-13 07:25:27 1kRUGi-0003FX-55 Message is frozen
2020-10-13 07:25:33 1kRUNH-0000nS-Ao == [email protected] R=dnslookup T=remote_smtp defer (-53): retry time not reached for any host for 'xxxx-itsystem.de'
2020-10-13 07:25:33 1kSBsa-0001VE-Oj == [email protected] R=dnslookup T=remote_smtp defer (-53): retry time not reached for any host for 'xxxx-itsystem.de'




or other one





08:35:46 H=ip5b423811.dynamic.kabel-deutschland.de (DariusLaptop) [x.x.x.x] Warning: Sender rate [limitlog]: log / email / [email protected] / 1.1 / 1h
2020-10-13 08:35:47 1kSDuU-0002x1-TX <= [email protected] H=ip5b423811.dynamic.kabel-deutschland.de (DariusLaptop) [x.x.x.x] P=esmtpa A=dovecot_login:[email protected] S=1182
2020-10-13 08:35:47 1kSDuU-0002x1-TX => admin <[email protected]> R=localuser T=local_delivery
2020-10-13 08:35:47 1kSDuU-0002x1-TX Completed
2020-10-13 08:36:55 H=ip5b423811.dynamic.kabel-deutschland.de (DariusLaptop) [x.x.x.x] Warning: Sender rate [limitlog]: log / email / [email protected] / 2.1 / 1h
2020-10-13 08:36:55 1kSDvb-0002xE-Kx <= [email protected] H=ip5b423811.dynamic.kabel-deutschland.de (DariusLaptop) [x.x.x.x] P=esmtpa A=dovecot_login:[email protected] S=2625 id=!&!AAAAAAAAAAAuAAAAAAAAAP0ggPfMR+VDhlkFffvFH5YBAMO2jhD$
2020-10-13 08:36:56 1kSDvb-0002xE-Kx == [email protected] R=dnslookup T=remote_smtp defer (-53): retry time not reached for any host for 'xxxxx-itsystem.de'


i change realy adres to xxxxx for this copy from mailog.

f I send local emails, for example from [email protected] to [email protected], everything works, I can receive and send. But if not local, I can only receive, not send. All ports for email outgoing and receiving are open on router and in myvestacp.



if i go to:

nc smtp.gmail.com 25


comming:

smtp.gmail.com [74.125.71.108] 25 (smtp) : Connection timed out
User avatar
myVesta
Site Admin
Posts: 932
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 8 times
Been thanked: 6 times

can you do:

Code: Select all

nc smtp.gmail.com 25
?

maybe your datacenter closed outgoing 25 port from your server
dariusuk
Posts: 12
Joined: Tue Oct 13, 2020 7:57 am

datacenter?
dariusuk
Posts: 12
Joined: Tue Oct 13, 2020 7:57 am

what do you mean by datacenter?
dariusuk
Posts: 12
Joined: Tue Oct 13, 2020 7:57 am

Image
1.png
1.png (36.57 KiB)
Attachments
2.png
2.png (40.76 KiB)
dariusuk
Posts: 12
Joined: Tue Oct 13, 2020 7:57 am

thanks for all , i fixe this prob...

my IP provider (I used vpn bridge) blocked port 25 because too many spam emails ..now everything is going well, port is free again

Please close this topik
User avatar
myVesta
Site Admin
Posts: 932
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 8 times
Been thanked: 6 times

datacenter = ISP (depending of location of your server)

as I guessed, ISP/datacenter blocked outgoing 25 port.

cheers :)
dariusuk
Posts: 12
Joined: Tue Oct 13, 2020 7:57 am

now i have another prb whit mail. After myvesta update i cannot send and recive any emails.
here exim4 paniclog report:

2020-11-09 20:27:27 failed to expand condition "${if eq {${if match{$h_X-Spam-Status:}{\N^Yes\N}{yes}{no}}} {${lookup{$local_part}lsearch{/etc/exim4/domains/$domain/passwd}{yes}{no_such_user}}}}" for localuser_spam router: failed to ope$
2020-11-09 20:27:27 failed to expand condition "${lookup{$local_part}lsearch{/etc/exim4/domains/$domain/passwd}{true}{false}}" for localuser router: failed to open /etc/exim4/domains/abmusiol.eu/passwd for linear search: Permission deni$
2020-11-09 20:30:09 1kcCrh-0000Cd-JF 1kcCrh-0000Cd-JF bad addresses found in headers

any issues?
Post Reply