Page 1 of 1

Unable to send emails

Posted: Wed Nov 13, 2013 1:10 pm
by Ocrion
Hello!

I've encountered a new error while testing around the CP, I've noticed that I'm unable to send emails, receiving emails works just fine.

I've changed in the config file to use port 436 (Or what ever the port was I don't remember) and I've made sure that both 25 and 4xx is portforwarded.
Any tips?

Regards.

Re: Unable to send emails

Posted: Wed Nov 13, 2013 7:21 pm
by skid
Have you tried webmail? Does it work?

Exim is listening on following ports
daemon_smtp_ports = 25 : 465 : 587 : 2525
Try to ping each port using telnet and see if firewall allows external connections.

Re: Unable to send emails

Posted: Thu Nov 14, 2013 10:19 am
by Ocrion
skid wrote:Have you tried webmail? Does it work?

Exim is listening on following ports
daemon_smtp_ports = 25 : 465 : 587 : 2525
Try to ping each port using telnet and see if firewall allows external connections.
Yes, I tried the Webmail, it's able to receive emails but not send emails.

Today I got this in the inbox:
This message was created automatically by mail delivery software.
A message that you sent has not yet been delivered to one or more of its
recipients after more than 24 hours on the queue on GLaDOS-Server.

The message identifier is: 1VgEgW-0000lv-PP
The subject of the message is: Test
The date of the message is: Tue, 12 Nov 2013 15:11:16 +0100

The address to which the message has not yet been delivered is:

***************@aol.com
Delay reason: SMTP error from remote mail server after end of data:
host mailin-02.mx.aol.com [205.188.155.110]: 421 4.2.1 :
(DNS:NR) http://postmaster.info.aol.com/errors/421dnsnr.html

No action is required on your part. Delivery attempts will continue for
some time, and this warning may be repeated at intervals if the message
remains undelivered. Eventually the mail delivery software will give up,
and when that happens, the message will be returned to you.
I tried the telnet but I dunno really how to use it so it might have some impact on the results:
root@GLaDOS-Server:~# telnet ******.com 465
Trying 62.63.***.***...
Connected to ******.com.
Escape character is '^]'.
Connection closed by foreign host.

root@GLaDOS-Server:~# telnet ******.com 25
Trying 62.63.***.***...
Connected to ******.com.
Escape character is '^]'.
220 GLaDOS-Server ESMTP Exim 4.80 Thu, 14 Nov 2013 11:06:45 +0100
421 GLaDOS-Server: SMTP command timeout - closing connection
Connection closed by foreign host.
And then same result with the two other ports. However on http://www.canyouseeme.org/ I am able to successfully ping all of them.

Re: Unable to send emails

Posted: Thu Nov 14, 2013 10:15 pm
by skid
It looks like the problem is in hostname. Try to give it a pingable name. Like

Code: Select all

hostname test.vestacp.com
service exim restart
Use your domain name of course.

Re: Unable to send emails

Posted: Sat Feb 01, 2014 5:56 am
by emardotcom
I'm also having this problem it worked fine since Nov but now all of a sudden it doesn't work
I'm using CSF as my fire wall.

Re: Unable to send emails

Posted: Sat Feb 01, 2014 6:13 am
by emardotcom
i just disabled CFS and it still isn't working so i dono whats going i can I have send email only to domains listed on vesta but not to any external domains like google hotmail or any other website that is not local

Re: Unable to send emails

Posted: Sat Feb 01, 2014 8:20 am
by misak35
Maybe you are blocked by google , hotmail ect. Try to ask your service provider about that. Im sure they can unblock IPs.

Re: Unable to send emails

Posted: Sat Feb 01, 2014 1:39 pm
by emardotcom
I checked if i was and im not, i noticed this morning that when i rebooted with CSF off all the email went out so it must be CSF. When i enabled it and rebooted i couldn't send emails.

Re: Unable to send emails

Posted: Sun Feb 02, 2014 5:56 pm
by emardotcom
OK i fixed the issue... in /etc/csf/csf.conf change SMTP_BLOCK = "1" to SMTP_BLOCK = "0", i think maybe CSF out the box isn't 100% compatible with Vesta since Vesta uses other names for apps. for instance:

Code: Select all

in /etc/csf/csf.pignore

Vesta Default
exe:/usr/libexec/dovecot/auth
exe:/usr/libexec/dovecot/anvil
exe:/usr/libexec/dovecot/imap-login
exe:/usr/libexec/mysqld
exe:/usr/local/vesta/nginx/sbin/vesta-nginx
exe:/usr/local/vesta/php/sbin/vesta-php
exe:/usr/sbin/exim
exe:/usr/sbin/nginx
exe:/usr/sbin/httpd

CSF Defaults
exe:/usr/lib/courier-imap/bin/pop3d
exe:/usr/lib/courier-imap/bin/imapd
exe:/usr/sbin/pure-ftpd
exe:/usr/local/apache/bin/httpd
exe:/usr/sbin/sshd
exe:/usr/sbin/proftpd
exe:/usr/libexec/dovecot/imap
exe:/usr/libexec/dovecot/pop3
exe:/usr/sbin/named
exe:/usr/sbin/ntpd
exe:/bin/dbus-daemon
exe:/usr/sbin/ntpd
exe:/usr/sbin/exim4
exe:/sbin/ntpd
exe:/usr/libexec/dovecot/pop3
exe:/usr/libexec/dovecot/imap
exe:/usr/local/libexec/dovecot/pop3
exe:/usr/local/libexec/dovecot/pop3-login
exe:/usr/local/libexec/dovecot/imap
exe:/usr/local/libexec/dovecot/imap-login
They are named differently

Re: Unable to send emails

Posted: Sun Feb 02, 2014 6:21 pm
by misak35