HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   mail problem (http://www.howtoforge.com/forums/showthread.php?t=1220)

Mahir 11th November 2005 12:21

mail problem
 
Hello i got little problem with my mail, everything on webmail is ok and working
but when i add the acount to Outlook and fill in the information i can receaive the mail that is no problem but when i wanne send a email i get a error:

The connection to the server has failed. Account: 'pop3.ermedia.nl', Server: 'smtp.ermedia.nl', Protocol: SMTP, Port: 25, Secure(SSL): No, Socket Error: 10060, Error Number: 0x800CCC0E

I have no clue where it goes wrong at al anyone has a idea maybe?

falko 11th November 2005 12:56

Please post the output of
Code:

netstat -tap
What's the value of inet_interfaces in /etc/postfix/main.cf? Should be all.

Mahir 11th November 2005 13:01

Quote:

Originally Posted by falko
Please post the output of
Code:

netstat -tap
What's the value of inet_interfaces in /etc/postfix/main.cf? Should be all.

Output netstat -tap:
[root@duduk ~]# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address Stat e PID/Program name
tcp 0 0 *:imaps *:* LIST EN 1952/xinetd
tcp 0 0 *:32769 *:* LIST EN 1586/rpc.statd
tcp 0 0 *:pop3s *:* LIST EN 1952/xinetd
tcp 0 0 *:mysql *:* LIST EN 2042/mysqld
tcp 0 0 *:pop3 *:* LIST EN 1952/xinetd
tcp 0 0 *:imap *:* LIST EN 1952/xinetd
tcp 0 0 *:sunrpc *:* LIST EN 1568/portmap
tcp 0 0 *:81 *:* LIST EN 2336/ispconfig_http
tcp 0 0 *:ftp *:* LIST EN 2504/proftpd: (acce
tcp 0 0 213.222.12.38:domain *:* LIST EN 2487/named
tcp 0 0 213.222.12.37:domain *:* LIST EN 2487/named
tcp 0 0 213.222.12.36:domain *:* LIST EN 2487/named
tcp 0 0 213.222.12.35:domain *:* LIST EN 2487/named
tcp 0 0 213.222.12.34:domain *:* LIST EN 2487/named
tcp 0 0 duduk.ermedia.nl:domain *:* LIST EN 2487/named
tcp 0 0 duduk.ermedia.nl:ipp *:* LIST EN 1897/cupsd
tcp 0 0 duduk.ermedia.nl:5335 *:* LIST EN 1881/mDNSResponder
tcp 0 0 duduk.ermedia.nl:rndc *:* LIST EN 2487/named
tcp 0 0 *:smtp *:* LIST EN 2461/master
tcp 0 0 *:http *:* LIST EN 2389/httpd
tcp 0 0 *:ssh *:* LIST EN 1944/sshd
tcp 0 0 ::1:rndc *:* LIST EN 2487/named
tcp 0 0 *:https *:* LIST EN 2389/httpd
tcp 0 0 ::ffff:213.222.12.34:ssh ermedia.speedxs.nl:1125 ESTA BLISHED 2914/0
tcp 0 2812 ::ffff:213.222.12.34:ssh ermedia.speedxs.nl:1771 ESTA

Inet_interfaces says:
inet_interfaces = all

till 11th November 2005 13:07

Quote:

Originally Posted by Mahir
Hello i got little problem with my mail, everything on webmail is ok and working
but when i add the acount to Outlook and fill in the information i can receaive the mail that is no problem but when i wanne send a email i get a error:

The connection to the server has failed. Account: 'pop3.ermedia.nl', Server: 'smtp.ermedia.nl', Protocol: SMTP, Port: 25, Secure(SSL): No, Socket Error: 10060, Error Number: 0x800CCC0E

I have no clue where it goes wrong at al anyone has a idea maybe?

Do you have an firewall installed that blocks port 25? If you are in a NAT enviroment, have you forwarded port 25 to your Server. If you use a DSL line, maybe your provider blocks connections on port 25.

Mahir 11th November 2005 13:15

No the server is in a Datacenter everything is open to my server. (the ispconfig firewall is running but there is seems 25 is open)

falko 11th November 2005 13:54

Quote:

Originally Posted by Mahir
No the server is in a Datacenter everything is open to my server. (the ispconfig firewall is running but there is seems 25 is open)

Please post the output of
Code:

iptables -L

Mahir 11th November 2005 13:57

Quote:

Originally Posted by falko
Please post the output of
Code:

iptables -L

(if i disable firewall it also doesnt work)

The output is:
[root@duduk ~]# iptables -L
Chain FORWARD (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
DROP all -- anywhere anywhere

Chain INPUT (policy DROP)
target prot opt source destination
DROP tcp -- anywhere 127.0.0.0/8
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT all -- anywhere anywhere
DROP all -- BASE-ADDRESS.MCAST.NET/4 anywhere
PUB_IN all -- anywhere anywhere
PUB_IN all -- anywhere anywhere
PUB_IN all -- anywhere anywhere
DROP all -- anywhere anywhere

Chain INT_IN (0 references)
target prot opt source destination
ACCEPT icmp -- anywhere anywhere
DROP all -- anywhere anywhere

Chain INT_OUT (0 references)
target prot opt source destination
ACCEPT icmp -- anywhere anywhere
ACCEPT all -- anywhere anywhere

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
PUB_OUT all -- anywhere anywhere
PUB_OUT all -- anywhere anywhere
PUB_OUT all -- anywhere anywhere

Chain PAROLE (9 references)
target prot opt source destination
ACCEPT all -- anywhere anywhere

Chain PUB_IN (3 references)
target prot opt source destination
ACCEPT icmp -- anywhere anywhere icmp destination-unreachable
ACCEPT icmp -- anywhere anywhere icmp echo-reply
ACCEPT icmp -- anywhere anywhere icmp time-exceeded
ACCEPT icmp -- anywhere anywhere icmp echo-request
PAROLE tcp -- anywhere anywhere tcp dpt:ftp
PAROLE tcp -- anywhere anywhere tcp dpt:ssh
PAROLE tcp -- anywhere anywhere tcp dpt:smtp
PAROLE tcp -- anywhere anywhere tcp dpt:domain
PAROLE tcp -- anywhere anywhere tcp dpt:http
PAROLE tcp -- anywhere anywhere tcp dpt:81
PAROLE tcp -- anywhere anywhere tcp dpt:pop3
PAROLE tcp -- anywhere anywhere tcp dpt:https
PAROLE tcp -- anywhere anywhere tcp dpt:10000
ACCEPT udp -- anywhere anywhere udp dpt:domain
DROP icmp -- anywhere anywhere
DROP all -- anywhere anywhere

Chain PUB_OUT (3 references)
target prot opt source destination
ACCEPT all -- anywhere anywhere

falko 11th November 2005 14:07

That's ok. Do you maybe have a firewall at home/in your office that doesn't allow to connect to your server on port 25?

Mahir 11th November 2005 14:09

no this computer is directly connected to internet without firewall etc i disabled windows firewall also i tryed also at my friends house he gets the same error message.

log file on server say's:
Nov 11 13:58:30 duduk ipop3d[5263]: pop3 service init from 127.0.0.1
Nov 11 13:58:30 duduk ipop3d[5263]: Command stream end of file while reading line user=??? host=UNKNOWN
Nov 11 13:58:30 duduk postfix/smtpd[5262]: connect from duduk.ermedia.nl[127.0.0.1]
Nov 11 13:58:30 duduk postfix/smtpd[5262]: lost connection after CONNECT from duduk.ermedia.nl[127.0.0.1]
Nov 11 13:58:30 duduk postfix/smtpd[5262]: disconnect from duduk.ermedia.nl[127.0.0.1]
Nov 11 13:58:48 duduk postfix/smtpd[5262]: table hash:/etc/postfix/virtusertable(0,100) has changed -- restarting
Nov 11 13:58:48 duduk ipop3d[5593]: pop3 service init from 127.0.0.1
Nov 11 13:58:48 duduk ipop3d[5593]: Command stream end of file while reading line user=??? host=UNKNOWN
Nov 11 13:58:48 duduk postfix/smtpd[5592]: connect from duduk.ermedia.nl[127.0.0.1]
Nov 11 13:58:48 duduk postfix/smtpd[5592]: lost connection after CONNECT from duduk.ermedia.nl[127.0.0.1]
Nov 11 13:58:48 duduk postfix/smtpd[5592]: disconnect from duduk.ermedia.nl[127.0.0.1]
Nov 11 13:59:35 duduk postfix/smtpd[5592]: connect from heyena.veritate.net[217.194.106.72]
Nov 11 13:59:35 duduk postfix/smtpd[5592]: D03C32E763C: client=heyena.veritate.net[217.194.106.72]
Nov 11 13:59:35 duduk postfix/cleanup[5617]: D03C32E763C: message-id=<74549.45304252@panther.veritate.net>
Nov 11 13:59:35 duduk postfix/qmgr[2466]: D03C32E763C: from=<bounce@veritate.com>, size=17526, nrcpt=1 (queue active)
Nov 11 13:59:35 duduk postfix/smtpd[5592]: disconnect from heyena.veritate.net[217.194.106.72]
Nov 11 13:59:36 duduk sendmail[5625]: jABCxau6005625: from=web1_ersen, size=106, class=0, nrcpts=1, msgid=<200511111259.jABCxau6005625@duduk.ermedia.n l>,$
Nov 11 13:59:36 duduk postfix/smtpd[5592]: connect from duduk.ermedia.nl[127.0.0.1]
Nov 11 13:59:36 duduk postfix/smtpd[5592]: setting up TLS connection from duduk.ermedia.nl[127.0.0.1]
Nov 11 13:59:36 duduk postfix/smtpd[5592]: TLS connection established from duduk.ermedia.nl[127.0.0.1]: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bit$
Nov 11 13:59:36 duduk sendmail[5625]: STARTTLS=client, relay=[127.0.0.1], version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-RSA-AES256-SHA, bits=256/256
Nov 11 13:59:36 duduk postfix/smtpd[5592]: 54FF32E763D: client=duduk.ermedia.nl[127.0.0.1], sasl_sender=web1_ersen@duduk.ermedia.nl
Nov 11 13:59:36 duduk postfix/cleanup[5617]: 54FF32E763D: message-id=<200511111259.jABCxau6005625@duduk.ermedia.nl>
Nov 11 13:59:36 duduk postfix/qmgr[2466]: 54FF32E763D: from=<web1_ersen@duduk.ermedia.nl>, size=712, nrcpt=1 (queue active)
Nov 11 13:59:36 duduk sendmail[5625]: jABCxau6005625: to=admispconfig@localhost, ctladdr=web1_ersen (10001/10001), delay=00:00:00, xdelay=00:00:00, maile$
Nov 11 13:59:36 duduk postfix/local[5642]: 54FF32E763D: to=<admispconfig@duduk.ermedia.nl>, relay=local, delay=0, status=sent (delivered to command: /usr$
Nov 11 13:59:36 duduk postfix/qmgr[2466]: 54FF32E763D: removed
Nov 11 13:59:36 duduk postfix/smtpd[5592]: disconnect from duduk.ermedia.nl[127.0.0.1]
Nov 11 13:59:38 duduk postfix/local[5618]: D03C32E763C: to=<web1_ersen@duduk.ermedia.nl>, orig_to=<ersen@ermedia.nl>, relay=local, delay=3, status=sent ($
Nov 11 13:59:38 duduk postfix/qmgr[2466]: D03C32E763C: removed
Nov 11 14:01:03 duduk postfix/smtpd[5592]: connect from duduk.ermedia.nl[127.0.0.1]
Nov 11 14:01:03 duduk postfix/smtpd[5592]: lost connection after CONNECT from duduk.ermedia.nl[127.0.0.1]
Nov 11 14:01:03 duduk postfix/smtpd[5592]: disconnect from duduk.ermedia.nl[127.0.0.1]
Nov 11 14:01:03 duduk ipop3d[5705]: pop3 service init from 127.0.0.1
Nov 11 14:01:03 duduk ipop3d[5705]: Command stream end of file while reading line user=??? host=UNKNOWN
Nov 11 14:01:09 duduk postfix/smtpd[5592]: connect from duduk.ermedia.nl[127.0.0.1]
Nov 11 14:01:09 duduk postfix/smtpd[5592]: lost connection after CONNECT from duduk.ermedia.nl[127.0.0.1]
Nov 11 14:01:09 duduk postfix/smtpd[5592]: disconnect from duduk.ermedia.nl[127.0.0.1]
Nov 11 14:01:09 duduk ipop3d[5718]: pop3 service init from 127.0.0.1
Nov 11 14:01:09 duduk ipop3d[5718]: Command stream end of file while reading line user=??? host=UNKNOWN
Nov 11 14:02:41 duduk ipop3d[5750]: pop3 service init from 83.98.249.83
Nov 11 14:02:41 duduk ipop3d[5750]: Mailbox vulnerable - directory /var/spool/mail must have 1777 protection
Nov 11 14:02:41 duduk ipop3d[5750]: Login user=web1_ersen host=ermedia.speedxs.nl [83.98.249.83] nmsgs=8/8
Nov 11 14:02:42 duduk ipop3d[5750]: Mailbox vulnerable - directory /var/spool/mail must have 1777 protection
Nov 11 14:02:42 duduk ipop3d[5750]: Logout user=web1_ersen host=ermedia.speedxs.nl [83.98.249.83] nmsgs=8 ndele=0
Nov 11 14:03:42 duduk ipop3d[5771]: pop3 service init from 83.98.249.83
Nov 11 14:03:42 duduk ipop3d[5771]: Mailbox vulnerable - directory /var/spool/mail must have 1777 protection
Nov 11 14:03:42 duduk ipop3d[5771]: Login user=web1_ersen host=ermedia.speedxs.nl [83.98.249.83] nmsgs=8/8
Nov 11 14:03:42 duduk ipop3d[5771]: Mailbox vulnerable - directory /var/spool/mail must have 1777 protection
Nov 11 14:03:42 duduk ipop3d[5771]: Logout user=web1_ersen host=ermedia.speedxs.nl [83.98.249.83] nmsgs=8 ndele=0
Nov 11 14:04:29 duduk postfix/anvil[5615]: statistics: max connection rate 1/60s for (smtp:217.194.106.72) at Nov 11 13:59:35
Nov 11 14:04:29 duduk postfix/anvil[5615]: statistics: max connection count 1 for (smtp:217.194.106.72) at Nov 11 13:59:35
Nov 11 14:04:29 duduk postfix/anvil[5615]: statistics: max cache size 1 at Nov 11 13:59:35
Nov 11 14:04:51 duduk ipop3d[5795]: pop3 service init from 83.98.249.83
Nov 11 14:04:51 duduk ipop3d[5795]: Mailbox vulnerable - directory /var/spool/mail must have 1777 protection
Nov 11 14:04:51 duduk ipop3d[5795]: Login user=web1_ersen host=ermedia.speedxs.nl [83.98.249.83] nmsgs=8/8
Nov 11 14:04:51 duduk ipop3d[5795]: Mailbox vulnerable - directory /var/spool/mail must have 1777 protection
Nov 11 14:04:51 duduk ipop3d[5795]: Logout user=web1_ersen host=ermedia.speedxs.nl [83.98.249.83] nmsgs=8 ndele=0
Nov 11 14:06:33 duduk ipop3d[5830]: pop3 service init from 83.98.249.83
Nov 11 14:06:33 duduk ipop3d[5830]: Mailbox vulnerable - directory /var/spool/mail must have 1777 protection
Nov 11 14:06:33 duduk ipop3d[5830]: Login user=web1_ersen host=ermedia.speedxs.nl [83.98.249.83] nmsgs=8/8
Nov 11 14:06:33 duduk ipop3d[5830]: Mailbox vulnerable - directory /var/spool/mail must have 1777 protection
Nov 11 14:06:33 duduk ipop3d[5830]: Logout user=web1_ersen host=ermedia.speedxs.nl [83.98.249.83] nmsgs=8 ndele=0
Nov 11 14:06:55 duduk ipop3d[5839]: pop3 service init from 83.98.249.83
Nov 11 14:06:55 duduk ipop3d[5839]: Mailbox vulnerable - directory /var/spool/mail must have 1777 protection
Nov 11 14:06:55 duduk ipop3d[5839]: Login user=web1_ersen host=ermedia.speedxs.nl [83.98.249.83] nmsgs=8/8
Nov 11 14:06:55 duduk ipop3d[5839]: Mailbox vulnerable - directory /var/spool/mail must have 1777 protection
Nov 11 14:06:55 duduk ipop3d[5839]: Logout user=web1_ersen host=ermedia.speedxs.nl [83.98.249.83] nmsgs=8 ndele=0
Nov 11 14:12:16 duduk ipop3d[5949]: pop3 service init from 83.98.249.83
Nov 11 14:12:17 duduk ipop3d[5949]: Mailbox vulnerable - directory /var/spool/mail must have 1777 protection
Nov 11 14:12:17 duduk ipop3d[5949]: Login user=web1_ersen host=ermedia.speedxs.nl [83.98.249.83] nmsgs=8/8
Nov 11 14:12:17 duduk ipop3d[5949]: Mailbox vulnerable - directory /var/spool/mail must have 1777 protection
Nov 11 14:12:17 duduk ipop3d[5949]: Logout user=web1_ersen host=ermedia.speedxs.nl [83.98.249.83] nmsgs=8 ndele=0

falko 11th November 2005 18:20

I tried to connect to your server with telnet:

Quote:

telnet smtp.ermedia.nl 25
Trying 213.222.12.34...
Connected to smtp.ermedia.nl.
Escape character is '^]'.
220 duduk.ermedia.nl ESMTP Postfix
ehlo localhost
250-duduk.ermedia.nl
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN
250 8BITMIME
quit
221 Bye
Connection closed by foreign host.
It's working, but it took some time (~30 seconds) until I got connected... Might be a firewall problem, might be a problem with your setup, though I can't see anything wrong in what you posted...

Quote:

Nov 11 14:06:55 duduk ipop3d[5839]: Mailbox vulnerable - directory /var/spool/mail must have 1777 protection
Run
Code:

chmod 1777 /var/spool/mail


All times are GMT +2. The time now is 02:45.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.