Author Topic: smtp error  (Read 17840 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
smtp error
« on: October 25, 2016, 11:37:11 AM »
hi

After the updating of CWP to 0.9.8.70 version, I have a problem in connecting by Outlook. It could be connected to POP3 but in the stage of send test mail, it gives the error (Send test email message: Outlook cannot connect to your outgoing (SMTP) email server. If you continue to receive this message, contact your server administrator or Internet service provider (ISP).)

Rather I have tested the port 25 firewall and that was open, but I could not connect by telnet, the error is about the connection time out.
Please give a guidnece, if possible.

best regards.

Offline
*****
Re: smtp error
« Reply #1 on: October 26, 2016, 09:08:29 AM »
do your server really allowed mail through 25 ? if connection is closed through telnet probably port 25 is closed

Offline
*
Re: smtp error
« Reply #2 on: October 26, 2016, 10:31:58 AM »
Yes I am sure, I have tested this port from ping.eu and I got it is open.

config CSF inculudes:

Code: [Select]
# Allow incoming TCP ports
TCP_IN = "20,21,3031,25,53,80,110,143,443,465,587,993,995,2030,2031"

# Allow outgoing TCP ports
TCP_OUT = "20,21,3031,25,53,80,110,113,443,2030,2031,587,993,995"

and:

Code: [Select]
netstat -tulpn

Code: [Select]
Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name
tcp        0      0 0.0.0.0:4190                0.0.0.0:*                   LISTEN      13074/dovecot
tcp        0      0 0.0.0.0:993                 0.0.0.0:*                   LISTEN      13074/dovecot
tcp        0      0 0.0.0.0:995                 0.0.0.0:*                   LISTEN      13074/dovecot
tcp        0      0 127.0.0.1:10024             0.0.0.0:*                   LISTEN      23901/amavisd (mast
tcp        0      0 127.0.0.1:10025             0.0.0.0:*                   LISTEN      13177/master
tcp        0      0 0.0.0.0:3306                0.0.0.0:*                   LISTEN      22822/mysqld
tcp        0      0 0.0.0.0:587                 0.0.0.0:*                   LISTEN      13177/master
tcp        0      0 127.0.0.1:3310              0.0.0.0:*                   LISTEN      13692/clamd
tcp        0      0 0.0.0.0:110                 0.0.0.0:*                   LISTEN      13074/dovecot
tcp        0      0 0.0.0.0:143                 0.0.0.0:*                   LISTEN      13074/dovecot
tcp        0      0 127.0.0.1:783               0.0.0.0:*                   LISTEN      23862/spamd.pid
tcp        0      0 0.0.0.0:465                 0.0.0.0:*                   LISTEN      13177/master
tcp        0      0 0.0.0.0:21                  0.0.0.0:*                   LISTEN      1562/pure-ftpd (SER
tcp        0      0 185.4.29.16:53              0.0.0.0:*                   LISTEN      1263/named
tcp        0      0 127.0.0.1:53                0.0.0.0:*                   LISTEN      1263/named
tcp        0      0 0.0.0.0:3031                0.0.0.0:*                   LISTEN      1392/sshd
tcp        0      0 0.0.0.0:25                  0.0.0.0:*                   LISTEN      13177/master
tcp        0      0 127.0.0.1:953               0.0.0.0:*                   LISTEN      1263/named
tcp        0      0 127.0.0.1:8891              0.0.0.0:*                   LISTEN      13201/opendkim
tcp        0      0 :::2030                     :::*                        LISTEN      12366/cwpsrvd
tcp        0      0 :::2031                     :::*                        LISTEN      12366/cwpsrvd
tcp        0      0 :::80                       :::*                        LISTEN      6303/httpd
tcp        0      0 :::21                       :::*                        LISTEN      1562/pure-ftpd (SER
tcp        0      0 ::1:53                      :::*                        LISTEN      1263/named
tcp        0      0 :::3031                     :::*                        LISTEN      1392/sshd
tcp        0      0 ::1:953                     :::*                        LISTEN      1263/named
udp        0      0 185.4.29.16:53              0.0.0.0:*                               1263/named
udp        0      0 127.0.0.1:53                0.0.0.0:*                               1263/named
udp        0      0 ::1:53                      :::*                                    1263/named


Offline
*****
Re: smtp error
« Reply #3 on: October 26, 2016, 10:43:31 AM »
please rebuild the mail server and check it again.

Offline
*
Re: smtp error
« Reply #4 on: October 26, 2016, 10:57:08 AM »
Thanks for your response.

I did this but this problem exists in 3different servers simoltaneously.  :(

Offline
*****
Re: smtp error
« Reply #5 on: October 26, 2016, 11:00:47 AM »
can you post the error logs

Offline
*
Re: smtp error
« Reply #6 on: October 26, 2016, 11:25:21 AM »
tail -f /var/log/maillog includes only this errors:

Code: [Select]
Oct 26 14:40:21 srv1 postfix/smtpd[16415]: fatal: open database /etc/postfix/sender_whitelist.db: No such file or directory
Oct 26 14:40:22 srv1 postfix/master[16238]: warning: process /usr/libexec/postfix/smtpd pid 16415 exit status 1
Oct 26 14:40:22 srv1 postfix/master[16238]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling

Plz pay attention to the point that the Postfix is working correctly, because I have received forwarded root emails.

Offline
***
Re: smtp error
« Reply #7 on: October 27, 2016, 01:01:13 PM »
simply comment out this line in /etc/postfix/main.cf

Code: [Select]
check_client_access hash:/etc/postfix/sender_whitelist

or, create /etc/postfix/sender_whitelist file, and run postmap

Code: [Select]
touch /etc/postfix/sender_whitelist
postmap hash:/etc/postfix/sender_whitelist

Btw, when you telnet port 25 your server from ping.eu, that will only cek incoming port25.
to check outgoing, telnet other server from yours

Offline
*
Re: smtp error
« Reply #8 on: November 03, 2016, 10:31:15 AM »
After checking different sides, CWP had no problems, the ISP Port 25 had closed and I substitute Port 587 instead, eventually the problem was solved.