Page 1 of 1

Cant send mail: The connection to the server was interupted

Posted: Fri Jun 30, 2006 1:48 pm
by mito
Hello all!

I'm having a bit of a problem here. I've had a server in testing for a while, and have had a few problems along the way ( Problem 1, and Problem 2). But, I managed to smooth all those problems out, and I just now moved to using scalix as my production email server... and am now having yet another problem!

I can send mail with SWA with no problems, and I can receive mail with no problems, but when I try to send mail using outlook via smtp (not using scalix outlook connect yet) I am getting a problem where it looks like it tries to send the mail for a while, and then times out with the error message:

Code: Select all

Task 'mail.domain.com - Sending' reported error (0x800CCC0F) : 'The connection to the server was interrupted.  If this problem continues, contact your server administrator or Internet service provider (ISP).'


Here's the output of some of my troubleshooting:

Code: Select all

[root@Scalix ~]# omstat -a
PC Monitor                    Started        NON-STOP       0
Directory Relay Server        Started        13:10:12
Notification Server           Started        13:10:12       0
Shared memory daemon          Started        NON-STOP
Notification Monitor          Started        NON-STOP
Session Monitor               Started        NON-STOP
Container Access Monitor      Started        NON-STOP
Item Structure Server         Stopped
Database Monitor              Started        13:10:13
Licence Monitor Daemon        Started        NON-STOP
LDAP Daemon                   Started        13:10:13
Queue Manager                 Started        NON-STOP
Item Delete Daemon            Started        NON-STOP
IMAP Server Daemon            Started        13:10:13
SMTP Relay                    Started        13:10:13
Mime Browser Controller       Started        13:10:13
[root@isecScalix ~]#

Code: Select all

[root@isecScalix ~]#  lsof -i :25
COMMAND   PID USER   FD   TYPE DEVICE SIZE NODE NAME
omsmtpd  1580 root    4u  IPv4   4035       TCP mail.domain.com:smtp (LISTEN)
sendmail 2391 root    4u  IPv4   9340       TCP localhost.localdomain:smtp (LISTEN)
[root@Scalix ~]#


Code: Select all

[root@Scalix ~]# tail -n 20 /opt/scalix-tomcat/logs/caa.log
2006-06-30 13:36:04,698  INFO [RESMonitor.run:115] Server mail.domain.com up 24 mins, 50 secs
2006-06-30 13:36:19,940  INFO [NotificationEventListener$WorkerThread.run:50] Event Notification: heartbeat|http://mail.domain.com/res/RESDispatcher|LISTEN|300|mail|mail.domain.com|10.0.1 from host:mail.domain.com
2006-06-30 13:37:04,704  INFO [RESMonitor.run:115] Server mail.domain.com up 25 mins, 51 secs
2006-06-30 13:37:19,945  INFO [NotificationEventListener$WorkerThread.run:50] Event Notification: heartbeat|http://mail.domain.com/res/RESDispatcher|LISTEN|300|mail|mail.domain.com|10.0.1 from host:mail.domain.com
2006-06-30 13:38:04,709  INFO [RESMonitor.run:115] Server mail.domain.com up 26 mins, 51 secs
2006-06-30 13:38:19,950  INFO [NotificationEventListener$WorkerThread.run:50] Event Notification: heartbeat|http://mail.domain.com/res/RESDispatcher|LISTEN|300|mail|mail.domain.com|10.0.1 from host:mail.domain.com
2006-06-30 13:39:04,714  INFO [RESMonitor.run:115] Server mail.domain.com up 27 mins, 51 secs
2006-06-30 13:39:19,956  INFO [NotificationEventListener$WorkerThread.run:50] Event Notification: heartbeat|http://mail.domain.com/res/RESDispatcher|LISTEN|300|mail|mail.domain.com|10.0.1 from host:mail.domain.com
2006-06-30 13:40:04,720  INFO [RESMonitor.run:115] Server mail.domain.com up 28 mins, 51 secs
2006-06-30 13:40:19,961  INFO [NotificationEventListener$WorkerThread.run:50] Event Notification: heartbeat|http://mail.domain.com/res/RESDispatcher|LISTEN|300|mail|mail.domain.com|10.0.1 from host:mail.domain.com
2006-06-30 13:41:04,726  INFO [RESMonitor.run:115] Server mail.domain.com up 29 mins, 51 secs
2006-06-30 13:41:19,968  INFO [NotificationEventListener$WorkerThread.run:50] Event Notification: heartbeat|http://mail.domain.com/res/RESDispatcher|LISTEN|300|mail|mail.domain.com|10.0.1 from host:mail.domain.com
2006-06-30 13:42:04,733  INFO [RESMonitor.run:115] Server mail.domain.com up 30 mins, 51 secs
2006-06-30 13:42:19,975  INFO [NotificationEventListener$WorkerThread.run:50] Event Notification: heartbeat|http://mail.domain.com/res/RESDispatcher|LISTEN|300|mail|mail.domain.com|10.0.1 from host:mail.domain.com
2006-06-30 13:43:04,740  INFO [RESMonitor.run:115] Server mail.domain.com up 31 mins, 51 secs
2006-06-30 13:43:19,982  INFO [NotificationEventListener$WorkerThread.run:50] Event Notification: heartbeat|http://mail.domain.com/res/RESDispatcher|LISTEN|300|mail|mail.domain.com|10.0.1 from host:mail.domain.com
2006-06-30 13:44:04,747  INFO [RESMonitor.run:115] Server mail.domain.com up 32 mins, 51 secs
2006-06-30 13:44:19,989  INFO [NotificationEventListener$WorkerThread.run:50] Event Notification: heartbeat|http://mail.domain.com/res/RESDispatcher|LISTEN|300|mail|mail.domain.com|10.0.1 from host:mail.domain.com
2006-06-30 13:45:04,754  INFO [RESMonitor.run:115] Server mail.domain.com up 33 mins, 51 secs
2006-06-30 13:45:19,997  INFO [NotificationEventListener$WorkerThread.run:50] Event Notification: heartbeat|http://mail.domain.com/res/RESDispatcher|LISTEN|300|mail|mail.domain.com|10.0.1 from host:mail.domain.com
[root@Scalix ~]#


It looks to me like it's not even getting the requests, but I checked my router and everything is normal, no notices that it's blocking anything that it's not supposed to. Port 25 is open and forwarding properly.

Anyone have any ideas?

Posted: Fri Jun 30, 2006 6:41 pm
by ScalixSupport
Are you sending to a Scalix user or to someone else? Are you sending from your local network? If not, have you told Outlook to use AuthSMTP when sending? Can you post your smtpd.cfg file?

Thanks,
Rachel

Posted: Fri Jun 30, 2006 8:51 pm
by mito
ScalixSupport wrote:Are you sending to a Scalix user or to someone else? Are you sending from your local network? If not, have you told Outlook to use AuthSMTP when sending? Can you post your smtpd.cfg file?

Thanks,
Rachel


I'm trying to send from outside of the local network to a non-scalix user. I have however tried during troubleshooting to send an email to myself (obviously a scalix user) and it still will not work.

I am using Outlook without a scalix outlook connect client installed (I want it to work both with and without, so I hadn't installed it yet). I do have outlook setup to use outgoing mail authentication. This did work previously during testing, but I don't remember specifically testing this situation recently.

I have tried rebooting both this server, and the firewall / router that protects this server, but that hasn't had any effect.

Here is my smtpd.cfg

Code: Select all

EXTENSIONS=AUTH,DSN,8BITMIME
SMTPFILTER=TRUE

RELAY accept 127.0.0.1
RELAY accept .localdomain.local
RELAY accept .domain.com
RELAY accept .anotherdomain.net
RELAY accept 10.0.0.2/255.255.255.255
RELAY Log_Reject ALL

# extra rules added to prevent open relay usage
RECIPIENT Log_Reject *@*@*
RECIPIENT Log_Reject *%*
RECIPIENT Log_Reject *!*
RECIPIENT Log_Reject *#*@*


I have smtpfilter=true because I have mailscanner installed on this machine.

As of right now I can send email, but only when using SWA, not using any external clients.

Thanks again for your help...

Posted: Fri Jun 30, 2006 9:00 pm
by ScalixSupport
From outside your network, you'll need to use AuthSMTP from Outlook in order to relay messages to the outside world. If you have messages in outbox waiting to be sent to outside world, it's probably blocking the messages that are being sent to the internal users. So, tell Outlook to authenticate and you'll be fine.

Thanks,
Rachel

Posted: Fri Jun 30, 2006 9:12 pm
by mito
As I said, I do have "Use outgoing mail authentication" turned on already...

unless you mean something else by AuthSMTP than that.

And I have cleared out my outbox of all mail, then try to send a new message, and I still get this error.

Posted: Fri Jun 30, 2006 9:17 pm
by ScalixSupport
Two things you can try. First, from your PC, open a Command Prompt and type:

telnet mail.domain.com 25

and make sure you get something back that includes: "ESMTP Scalix SMTP Relay". If not, your ISP is blocking socket 25 outbound from their network. If you do get connected, then back on your Scalix server, edit your smtpd.cfg file and add:

DEBUG_LOG=TRUE

to the bottom of the file and restart the SMTP Relay by typing:

omoff -d0 smtpd
omon smtpd

Now, try sending again and then look in the file /var/opt/scalix/tmp/smtpd.log and see what it says.

Thanks,
Rachel

Posted: Sat Jul 01, 2006 3:05 am
by ScalixSupport
The other thing to check is if you have a Cisco PIX in between you and the Scalix server.

http://www.scalix.com/community/viewtopic.php?t=2651&highlight=fixup will give you details on how to resolve that.

Cheers

Dave

Posted: Sat Jul 01, 2006 12:14 pm
by mito
ScalixSupport wrote:First, from your PC, open a Command Prompt and type:

telnet mail.domain.com 25

and make sure you get something back that includes: "ESMTP Scalix SMTP Relay". If not, your ISP is blocking socket 25 outbound from their network.

...

Thanks,
Rachel


Well, when I try to telnet in on port 25 from my workstation, I don't get anything. When I use the router to try to connect I get the appropriate response, which means that something isn't working right, even though everything is setup right and was once working.

Anyways, this means that the problem is either with my ISP or my router, but not Scalix, so thanks for the help! I will continue troubleshooting from there!

Thanks again for all your help!

And thanks for the tip about the Pix too, as one of these that I might be setting up in the future might be behind a Pix 506e, I'll have to keep this fixup in mind!

Mito

Posted: Sat Jul 01, 2006 3:52 pm
by mito
Another problem, possibly related, but I'm not sure.

I did narrow it down to something with my ISP as the cause of the problem, when I forward port 125 on the WAN to port 25 on the LAN, everything works as it should, so, that's what I'm doing for now until the ISP office opens on Monday or Wednesday.

A problem that I'm having though, is that any mail that I receive, I'm receiving twice. At first I thought that it was because I was sending it to myself, and I was receiving the one I sent, as well as the one I received. But then I sent me an email from a different email address, and I still received it twice.

Could this be because both sendmail and Scalix are listening as shown in my first post? I read somewhere in these forums though that sendmail *needs* to be listening to the localhost though, so I didn't think twice about that, until this happened...

Any thoughts?

Posted: Sat Jul 01, 2006 4:12 pm
by mito
Another note: I just checked my mail in SWA and I did not receive duplicate mail there. The same mail that I recieved duplicates of in outlook only show up once in SWA.

Posted: Sat Jul 01, 2006 8:49 pm
by mito
Ahem... nevermind... PEBKAC...

I didn't realize that I had outlook setup to check that email address twice.. (once with my testing domain and once with the live domain... which both now point to the same server, which resulted in duplicate emails...)

Thanks again for all your help...

Mito