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=27)
-   -   Ubuntu 11.10-nginx mail send-receive problem (http://www.howtoforge.com/forums/showthread.php?t=55576)

tbctr 29th December 2011 21:12

Ubuntu 11.10-nginx mail send-receive problem
 
The perfect server Ubuntu 11.10 with nginx install and mail not send-receive :( .
Mail Queue
Code:

Data from: 2011-12-29 21:00
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
433CEC2523* 1194 Thu Dec 29 16:51:21 bilgi@sibe*****.net
on***@live.com

298F4C2513 1196 Thu Dec 29 16:36:03 bilgi@sibe*****.net
(connect to mx2.hotmail.com[65.54.188.110]:25: Connection timed out)
on***@live.com

B9395C2517 1198 Thu Dec 29 16:37:10 bilgi@sibe*****.net
(connect to mx4.hotmail.com[65.55.92.136]:25: Connection timed out)
on***@live.com

49AE3C2521 1195 Thu Dec 29 16:53:36 bilgi@sibe*****.net
(connect to mx4.hotmail.com[65.54.188.72]:25: Connection timed out)
on***@live.com

4CEA8C2414 2253 Thu Dec 29 13:09:54 mailman-bounces@sunucu.sibe*****.net
(temporary failure. Command output: ERR: authdaemon: s_connect() failed: Permission denied sh: /var/vmail/sibe*****.net/sunucu/ispconfig_mailsize: No such file or directory /usr/bin/maildrop: Unable to create a dot-lock at /var/vmail/sibe*****.net/sunucu/11520.0.sunucu.sibe*****.net.)
sunucu@sibe*****.net

C7AD4C251F 1198 Thu Dec 29 16:37:49 bilgi@sibe*****.net
(connect to mx1.hotmail.com[65.54.188.110]:25: Connection timed out)
on***@live.com

32A5FC250F 1203 Thu Dec 29 16:33:57 bilgi@sibe*****.net
(connect to mx1.hotmail.com[65.55.92.136]:25: No route to host)
on***@live.com

-- 13 Kbytes in 7 Requests.

Mail Log
Code:

Data from: 2011-12-29 21:05
Dec 29 20:15:01 sunucu imapd: Disconnected, ip=[::ffff:127.0.0.1], time=0
Dec 29 20:15:01 sunucu postfix/smtpd[11003]: connect from localhost.localdomain[127.0.0.1]
Dec 29 20:15:01 sunucu postfix/smtpd[11003]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
Dec 29 20:15:01 sunucu postfix/smtpd[11003]: disconnect from localhost.localdomain[127.0.0.1]
Dec 29 20:20:02 sunucu pop3d: Connection, ip=[::ffff:127.0.0.1]
Dec 29 20:20:02 sunucu pop3d: Disconnected, ip=[::ffff:127.0.0.1]
Dec 29 20:20:02 sunucu imapd: Connection, ip=[::ffff:127.0.0.1]
Dec 29 20:20:02 sunucu imapd: Disconnected, ip=[::ffff:127.0.0.1], time=0
Dec 29 20:20:02 sunucu postfix/smtpd[11071]: connect from localhost.localdomain[127.0.0.1]
Dec 29 20:20:02 sunucu postfix/smtpd[11071]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
Dec 29 20:20:02 sunucu postfix/smtpd[11071]: disconnect from localhost.localdomain[127.0.0.1]
Dec 29 20:25:01 sunucu pop3d: Connection, ip=[::ffff:127.0.0.1]
Dec 29 20:25:01 sunucu pop3d: Disconnected, ip=[::ffff:127.0.0.1]
Dec 29 20:25:01 sunucu imapd: Connection, ip=[::ffff:127.0.0.1]
Dec 29 20:25:01 sunucu imapd: Disconnected, ip=[::ffff:127.0.0.1], time=0
Dec 29 20:25:01 sunucu postfix/smtpd[11136]: connect from localhost.localdomain[127.0.0.1]
Dec 29 20:25:01 sunucu postfix/smtpd[11136]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
Dec 29 20:25:01 sunucu postfix/smtpd[11136]: disconnect from localhost.localdomain[127.0.0.1]
Dec 29 20:30:01 sunucu pop3d: Connection, ip=[::ffff:127.0.0.1]
Dec 29 20:30:01 sunucu pop3d: Disconnected, ip=[::ffff:127.0.0.1]
Dec 29 20:30:01 sunucu imapd: Connection, ip=[::ffff:127.0.0.1]
Dec 29 20:30:01 sunucu imapd: Disconnected, ip=[::ffff:127.0.0.1], time=0
Dec 29 20:30:01 sunucu postfix/smtpd[11209]: connect from localhost.localdomain[127.0.0.1]
Dec 29 20:30:01 sunucu postfix/smtpd[11209]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
Dec 29 20:30:01 sunucu postfix/smtpd[11209]: disconnect from localhost.localdomain[127.0.0.1]
Dec 29 20:30:20 sunucu postfix/qmgr[2395]: 49AE3C2521: from=, size=1195, nrcpt=1 (queue active)
Dec 29 20:30:50 sunucu postfix/smtp[11231]: connect to mx1.hotmail.com[65.55.37.88]:25: Connection timed out
Dec 29 20:31:20 sunucu postfix/smtp[11231]: connect to mx1.hotmail.com[65.55.92.184]:25: Connection timed out
Dec 29 20:31:50 sunucu postfix/smtp[11231]: connect to mx2.hotmail.com[65.55.92.136]:25: Connection timed out
Dec 29 20:32:20 sunucu postfix/smtp[11231]: connect to mx2.hotmail.com[65.54.188.72]:25: Connection timed out
Dec 29 20:32:50 sunucu postfix/smtp[11231]: connect to mx4.hotmail.com[65.54.188.72]:25: Connection timed out
Dec 29 20:32:50 sunucu postfix/smtp[11231]: 49AE3C2521: to=, relay=none, delay=13154, delays=13004/0.02/150/0, dsn=4.4.1, status=deferred (connect to mx4.hotmail.com[65.54.188.72]:25: Connection timed out)
Dec 29 20:35:01 sunucu pop3d: Connection, ip=[::ffff:127.0.0.1]
Dec 29 20:35:01 sunucu pop3d: Disconnected, ip=[::ffff:127.0.0.1]
Dec 29 20:35:01 sunucu imapd: Connection, ip=[::ffff:127.0.0.1]
Dec 29 20:35:01 sunucu imapd: Disconnected, ip=[::ffff:127.0.0.1], time=0
Dec 29 20:35:02 sunucu postfix/smtpd[11277]: connect from localhost.localdomain[127.0.0.1]
Dec 29 20:35:02 sunucu postfix/smtpd[11277]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
Dec 29 20:35:02 sunucu postfix/smtpd[11277]: disconnect from localhost.localdomain[127.0.0.1]
Dec 29 20:39:01 sunucu postfix/pickup[10821]: 755CAC252C: uid=0 from=
Dec 29 20:39:01 sunucu postfix/cleanup[11328]: 755CAC252C: message-id=<20111229183901.755CAC252C@sunucu.sibe*****.net>
Dec 29 20:39:01 sunucu postfix/qmgr[2395]: 755CAC252C: from=, size=1060, nrcpt=1 (queue active)
Dec 29 20:39:01 sunucu postfix/smtpd[11334]: connect from localhost.localdomain[127.0.0.1]
Dec 29 20:39:01 sunucu postfix/smtpd[11334]: E86F6C252B: client=localhost.localdomain[127.0.0.1]
Dec 29 20:39:01 sunucu postfix/cleanup[11328]: E86F6C252B: message-id=<20111229183901.755CAC252C@sunucu.sibe*****.net>
Dec 29 20:39:01 sunucu postfix/qmgr[2395]: E86F6C252B: from=, size=1582, nrcpt=1 (queue active)
Dec 29 20:39:01 sunucu postfix/smtpd[11334]: disconnect from localhost.localdomain[127.0.0.1]
Dec 29 20:39:01 sunucu postfix/local[11335]: E86F6C252B: to=, relay=local, delay=0.02, delays=0.01/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Dec 29 20:39:01 sunucu postfix/qmgr[2395]: E86F6C252B: removed
Dec 29 20:39:01 sunucu amavis[1572]: (01572-05) Passed CLEAN, -> , Message-ID: <20111229183901.755CAC252C@sunucu.sibe*****.net>, mail_id: N2H99f63GTsL, Hits: 1.178, size: 1058, queued_as: E86F6C252B, 468 ms
Dec 29 20:39:01 sunucu postfix/smtp[11331]: 755CAC252C: to=, orig_to=, relay=127.0.0.1[127.0.0.1]:10024, delay=0.51, delays=0.03/0.01/0/0.47, dsn=2.0.0, status=sent (250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as E86F6C252B)
Dec 29 20:39:01 sunucu postfix/qmgr[2395]: 755CAC252C: removed
Dec 29 20:40:01 sunucu pop3d: Connection, ip=[::ffff:127.0.0.1]
Dec 29 20:40:01 sunucu pop3d: Disconnected, ip=[::ffff:127.0.0.1]
Dec 29 20:40:01 sunucu imapd: Connection, ip=[::ffff:127.0.0.1]
Dec 29 20:40:01 sunucu imapd: Disconnected, ip=[::ffff:127.0.0.1], time=0
Dec 29 20:40:01 sunucu postfix/smtpd[11360]: connect from localhost.localdomain[127.0.0.1]
Dec 29 20:40:01 sunucu postfix/smtpd[11360]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
Dec 29 20:40:01 sunucu postfix/smtpd[11360]: disconnect from localhost.localdomain[127.0.0.1]
Dec 29 20:45:01 sunucu pop3d: Connection, ip=[::ffff:127.0.0.1]
Dec 29 20:45:01 sunucu pop3d: Disconnected, ip=[::ffff:127.0.0.1]
Dec 29 20:45:01 sunucu imapd: Connection, ip=[::ffff:127.0.0.1]
Dec 29 20:45:01 sunucu imapd: Disconnected, ip=[::ffff:127.0.0.1], time=0
Dec 29 20:45:01 sunucu postfix/smtpd[11432]: connect from localhost.localdomain[127.0.0.1]
Dec 29 20:45:01 sunucu postfix/smtpd[11432]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
Dec 29 20:45:01 sunucu postfix/smtpd[11432]: disconnect from localhost.localdomain[127.0.0.1]
Dec 29 20:50:01 sunucu pop3d: Connection, ip=[::ffff:127.0.0.1]
Dec 29 20:50:01 sunucu pop3d: Disconnected, ip=[::ffff:127.0.0.1]
Dec 29 20:50:01 sunucu imapd: Connection, ip=[::ffff:127.0.0.1]
Dec 29 20:50:01 sunucu imapd: Disconnected, ip=[::ffff:127.0.0.1], time=0
Dec 29 20:50:01 sunucu postfix/smtpd[11497]: connect from localhost.localdomain[127.0.0.1]
Dec 29 20:50:01 sunucu postfix/smtpd[11497]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
Dec 29 20:50:01 sunucu postfix/smtpd[11497]: disconnect from localhost.localdomain[127.0.0.1]
Dec 29 20:50:20 sunucu postfix/qmgr[2395]: 4CEA8C2414: from=, size=2253, nrcpt=1 (queue active)
Dec 29 20:50:20 sunucu postfix/pipe[11519]: 4CEA8C2414: to=, relay=maildrop, delay=27626, delays=27626/0.02/0/0.02, dsn=4.3.0, status=deferred (temporary failure. Command output: ERR: authdaemon: s_connect() failed: Permission denied sh: /var/vmail/sibe*****.net/sunucu/ispconfig_mailsize: No such file or directory /usr/bin/maildrop: Unable to create a dot-lock at /var/vmail/sibe*****.net/sunucu/11520.0.sunucu.sibe*****.net. )
Dec 29 20:55:01 sunucu pop3d: Connection, ip=[::ffff:127.0.0.1]
Dec 29 20:55:01 sunucu pop3d: Disconnected, ip=[::ffff:127.0.0.1]
Dec 29 20:55:01 sunucu imapd: Connection, ip=[::ffff:127.0.0.1]
Dec 29 20:55:01 sunucu imapd: Disconnected, ip=[::ffff:127.0.0.1], time=0
Dec 29 20:55:01 sunucu postfix/smtpd[11569]: connect from localhost.localdomain[127.0.0.1]
Dec 29 20:55:01 sunucu postfix/smtpd[11569]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
Dec 29 20:55:01 sunucu postfix/smtpd[11569]: disconnect from localhost.localdomain[127.0.0.1]
Dec 29 21:00:01 sunucu pop3d: Connection, ip=[::ffff:127.0.0.1]
Dec 29 21:00:01 sunucu pop3d: Disconnected, ip=[::ffff:127.0.0.1]
Dec 29 21:00:01 sunucu imapd: Connection, ip=[::ffff:127.0.0.1]
Dec 29 21:00:01 sunucu imapd: Disconnected, ip=[::ffff:127.0.0.1], time=0
Dec 29 21:00:01 sunucu postfix/smtpd[11642]: connect from localhost.localdomain[127.0.0.1]
Dec 29 21:00:01 sunucu postfix/smtpd[11642]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
Dec 29 21:00:01 sunucu postfix/smtpd[11642]: disconnect from localhost.localdomain[127.0.0.1]
Dec 29 21:00:20 sunucu postfix/qmgr[2395]: 433CEC2523: from=, size=1194, nrcpt=1 (queue active)
Dec 29 21:00:50 sunucu postfix/smtp[11665]: connect to mx2.hotmail.com[65.55.92.136]:25: Connection timed out
Dec 29 21:01:20 sunucu postfix/smtp[11665]: connect to mx4.hotmail.com[65.55.92.168]:25: Connection timed out
Dec 29 21:01:50 sunucu postfix/smtp[11665]: connect to mx3.hotmail.com[65.55.92.136]:25: Connection timed out
Dec 29 21:02:20 sunucu postfix/smtp[11665]: connect to mx4.hotmail.com[65.55.92.184]:25: Connection timed out
Dec 29 21:02:50 sunucu postfix/smtp[11665]: connect to mx4.hotmail.com[65.55.37.104]:25: Connection timed out
Dec 29 21:02:50 sunucu postfix/smtp[11665]: 433CEC2523: to=, relay=none, delay=15089, delays=14939/0.02/150/0, dsn=4.4.1, status=deferred (connect to mx4.hotmail.com[65.55.37.104]:25: Connection timed out)
Dec 29 21:05:01 sunucu pop3d: Connection, ip=[::ffff:127.0.0.1]
Dec 29 21:05:01 sunucu pop3d: Disconnected, ip=[::ffff:127.0.0.1]
Dec 29 21:05:01 sunucu imapd: Connection, ip=[::ffff:127.0.0.1]
Dec 29 21:05:01 sunucu imapd: Disconnected, ip=[::ffff:127.0.0.1], time=0


tbctr 30th December 2011 10:44

Adsl Modem DMZ open and 25-587 port open but mxtoolbox port scan result :
Problem ports
Code:


23

telnet

Timeout

0 ms


25

smtp

Timeout

0 ms


139

netbios

Timeout

0 ms


389

ldap

Timeout

0 ms


443

https

No connection could be made because the target machine actively refused it 88.*******:443

0 ms

587

msa-outlook

No connection could be made because the target machine actively refused it 88.********:587

Other ports no problem :
Code:



21

ftp

Success

211 ms



 

22

ssh

Success

215 ms



 

53

dns

Success

211 ms



 

80

http

Success

215 ms



 

110

pop3

Success

218 ms



 

143

imap

Success

218 ms



 

3306

my sql

Success

218 ms



 

8080

webcache

Success

220 ms


till 30th December 2011 11:05

Most dsl providers block port 25, you might want to contact the support of your provider and ask them if thats the case.

tbctr 30th December 2011 12:14

Quote:

Originally Posted by till (Post 270466)
Most dsl providers block port 25, you might want to contact the support of your provider and ask them if thats the case.

Mail receive and send problem. port 25 about send mail ?
isp not block 25.
Previous server the perfect server debian and no problem.

till 30th December 2011 12:49

Quote:

port 25 about send mail ?
Yes. Email is send and received on port 25.

Check your router settings to ensure that you forwarded port 25 to the correct intenal IP address. Also youmight want to check with:

iptables -L

if port 25 is not blocked by a firewall.

tbctr 30th December 2011 13:15

Code:

root@sunucu:~# iptables -L
Chain INPUT (policy DROP)
target    prot opt source              destination
fail2ban-ssh  tcp  --  anywhere            anywhere            multiport dports ssh
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
PUB_IN    all  --  anywhere            anywhere
DROP      all  --  anywhere            anywhere

Chain FORWARD (policy DROP)
target    prot opt source              destination
ACCEPT    all  --  anywhere            anywhere            state RELATED,ESTABLISHED
DROP      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
PUB_OUT    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
ACCEPT    all  --  anywhere            anywhere

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

Chain PUB_IN (4 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-data
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:26
PAROLE    tcp  --  anywhere            anywhere            tcp dpt:domain
PAROLE    tcp  --  anywhere            anywhere            tcp dpt:www
PAROLE    tcp  --  anywhere            anywhere            tcp dpt:pop3
PAROLE    tcp  --  anywhere            anywhere            tcp dpt:imap2
PAROLE    tcp  --  anywhere            anywhere            tcp dpt:https
PAROLE    tcp  --  anywhere            anywhere            tcp dpt:submission
PAROLE    tcp  --  anywhere            anywhere            tcp dpt:imaps
PAROLE    tcp  --  anywhere            anywhere            tcp dpt:pop3s
PAROLE    tcp  --  anywhere            anywhere            tcp dpt:mysql
PAROLE    tcp  --  anywhere            anywhere            tcp dpt:http-alt
PAROLE    tcp  --  anywhere            anywhere            tcp dpt:tproxy
PAROLE    tcp  --  anywhere            anywhere            tcp dpt:webmin
ACCEPT    udp  --  anywhere            anywhere            udp dpt:domain
ACCEPT    udp  --  anywhere            anywhere            udp dpt:mysql
DROP      icmp --  anywhere            anywhere
DROP      all  --  anywhere            anywhere

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

Chain fail2ban-courierimap (0 references)
target    prot opt source              destination
RETURN    all  --  anywhere            anywhere

Chain fail2ban-courierpop3 (0 references)
target    prot opt source              destination
RETURN    all  --  anywhere            anywhere

Chain fail2ban-courierpop3s (0 references)
target    prot opt source              destination
RETURN    all  --  anywhere            anywhere

Chain fail2ban-sasl (0 references)
target    prot opt source              destination
RETURN    all  --  anywhere            anywhere

Chain fail2ban-ssh (1 references)
target    prot opt source              destination
RETURN    all  --  anywhere            anywhere
root@sunucu:~#


tbctr 30th December 2011 13:35

Adsl modem dmz 192.168.2.200 (server ip). DMZ all port open. Extra 25,26,587 port open tcp-udp 192.168.2.200. I did them but mxtolbox.com port scan result : 23,139,389,1352,1433,3389 port timeout. 25,443,587 ports No connection could be made because the target machine actively refused it 88.********* error.

till 30th December 2011 13:47

Your server is not blocking port 25 with its local firewall. So either is postfix is not listening on the IP address where you forwarded port 25 to or your dsl modem or provider blocks port 25.

tbctr 30th December 2011 13:54

local firewall not. Only Modem - Switch - Server.

tbctr 30th December 2011 14:58

just now adsl modem changed the same problem :(.


All times are GMT +2. The time now is 19:21.

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