Koozali.org: home of the SME Server

Email configuration

Offline lukaszk

  • 8
  • +0/-0
Email configuration
« on: June 13, 2012, 09:33:36 PM »
I've got SME Server 8.0.

Only one problem that I cant solve is that I cant send and receive emails to/from extrenal email adress.
Sending email between my SME Server users via webmail is working wery well.

In server-manager it is set as follow:
POP3 server access    Allow private and public (secure POP3S)
IMAP server access    Allow private and public (secure IMAPS)
Webmail access    Allow HTTPS (secure)

Thanks for any sugestions what I can do to solve my problem.
Is it can be a problem with MX record of my domain?

Offline jameswilson

  • ****
  • 739
  • +0/-0
    • Security Warehouse, trade security equipment
Re: Email configuration
« Reply #1 on: June 13, 2012, 09:39:02 PM »
It could be many things. Does you broadband etc block port 25? Have you forwarded all relevant ports

Is you server is server only mode or gateway mode?

Offline lukaszk

  • 8
  • +0/-0
Re: Email configuration
« Reply #2 on: June 13, 2012, 09:47:49 PM »
Port 25 is open. My server working as server only mode.

Offline jameswilson

  • ****
  • 739
  • +0/-0
    • Security Warehouse, trade security equipment
Re: Email configuration
« Reply #3 on: June 13, 2012, 09:59:17 PM »
it may be being blocked by your isp. Use one of the many smtp test websites.

Also have you set up your a record and mx record to point to your sme address. I assume you are on a static ip?

Offline gklaus

  • 11
  • +0/-0
Re: Email configuration
« Reply #4 on: June 14, 2012, 12:10:32 PM »
Version 8's smtp seems to require mail clients on the LAN to use authentication and secure connection when sending to external addresses, else it returns some error message about relaying.

In my case, the problem was the same: sending email internally worked, but failed to external addresses after the upgrade. Enabling secure connection and authentication in the thunderbird clients solved the problem. I did not test webmail, so your problem may be different after all.

Offline lukaszk

  • 8
  • +0/-0
Re: Email configuration
« Reply #5 on: June 14, 2012, 04:59:39 PM »
When I am trying connect to my email account in Outlook I obtain:

Log into incoming mail server (POP3)   Completed
Send test e-mail message                    Failed

Send test e-mail message: An unknown error occurred, error code: 0x800c8101


I already tested ports: 995 and 25 are opened.

Offline Michail Pappas

  • *
  • 339
  • +1/-0
Re: Email configuration
« Reply #6 on: June 14, 2012, 05:56:00 PM »
Make sure that outlook uses authentication also for sending (SMTP) email. Plus there was an Outlook bug that caused a fail, even though it was correctly configured. To test if it worked ok, one had to send mail. That's IIRC....

Also check the FAQ: http://wiki.contribs.org/Email_-_Setting_up_E-mail_clients_for_SME_8.0
« Last Edit: June 14, 2012, 05:58:12 PM by reqman »

Offline jameswilson

  • ****
  • 739
  • +0/-0
    • Security Warehouse, trade security equipment
Re: Email configuration
« Reply #7 on: June 14, 2012, 07:36:31 PM »
have you set the auth info for your smtp server in outlook?

Offline lukaszk

  • 8
  • +0/-0
Re: Email configuration
« Reply #8 on: June 14, 2012, 08:28:54 PM »
have you set the auth info for your smtp server in outlook?

In outlook I chosen My outgoing server (SMTP) requires authentication (Use same settings as my incoming mail server)

Offline lukaszk

  • 8
  • +0/-0
Re: Email configuration
« Reply #9 on: June 14, 2012, 08:55:14 PM »
That's part of my ../pop3s/current log file:

2012-06-14 20:35:42.103231500 tcpsvd: info: pid 9333 from 83.23.176.195
2012-06-14 20:35:42.103309500 tcpsvd: info: concurrency 9333 83.23.176.195 1/4
2012-06-14 20:35:42.103312500 tcpsvd: info: start 9333 0:192.168.1.20 ::83.23.176.195:63747 ./peers/0
2012-06-14 20:35:42.762522500 sslio[9333]: info: bytes in: 597
2012-06-14 20:35:42.762526500 sslio[9333]: info: bytes ou: 1700
2012-06-14 20:35:42.762592500 tcpsvd: info: end 9333 exit 1
2012-06-14 20:35:42.762596500 tcpsvd: info: status 0/40
2012-06-14 20:41:02.911118500 tcpsvd: info: status 1/40
2012-06-14 20:41:02.911218500 tcpsvd: info: pid 9349 from 83.23.176.195
2012-06-14 20:41:02.911290500 tcpsvd: info: concurrency 9349 83.23.176.195 1/4
2012-06-14 20:41:02.911293500 tcpsvd: info: start 9349 0:192.168.1.20 ::83.23.176.195:63750 ./peers/0
2012-06-14 20:41:03.565546500 sslio[9349]: info: bytes in: 597
2012-06-14 20:41:03.565550500 sslio[9349]: info: bytes ou: 1700
2012-06-14 20:41:03.565639500 tcpsvd: info: end 9349 exit 1
2012-06-14 20:41:03.565642500 tcpsvd: info: status 0/40


Thank, if anybody can analyzing it.

I not sur in which file are noted information about smtp (that's is immposible sending mail form extrenal network)?

Offline johnp

  • ****
  • 312
  • +0/-0
Re: Email configuration
« Reply #10 on: June 14, 2012, 09:45:15 PM »
Are you using the Test Account Settings? If so, read this section  http://wiki.contribs.org/SME_Server:Documentation:FAQ#Troubleshooting

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Email configuration
« Reply #11 on: June 14, 2012, 10:40:45 PM »
Only one problem that I cant solve is that I cant send and receive emails to/from extrenal email adress.

Sending to external email addresses and receiving from external email addresses are completely different paths. If neither work, then you have at least two problems.

pop3s has nothing to do with either sending or receiving such emails, so posting that log does not help.

I'd suggest that you investigate sending and receiving separately.

Offline bosco555

  • ****
  • 152
  • +0/-0
Re: Email configuration
« Reply #12 on: June 18, 2012, 03:32:15 AM »
Hi All,

same issue here, tried the contrib at: http://wiki.contribs.org/Email_-_Setting_up_E-mail_clients_for_SME_8.0, but I cannot receive email.  I can send OK though.
Setup is as follows: SME 8 new installation in server only mode, windows XP pro w/s, outlook 2007.

The error message is the following: Receiving reported error (0x800CC0F): "The connection to the server was interrupted. If the problem continues, contact your server administrator or ISP.

The email is hosted locally.

thank you for any help in advance


Offline Stefano

  • *
  • 10,838
  • +2/-0
Re: Email configuration
« Reply #13 on: June 18, 2012, 09:38:27 AM »
The error message is the following: Receiving reported error (0x800CC0F): "The connection to the server was interrupted. If the problem continues, contact your server administrator or ISP.

wow.. very useful, a typical M$ error message.. it says nothing :-)

Quote
The email is hosted locally.

pop3? imap? pop3S? imapS?

try using another client (i.e. Thunderbird).. I'm quite sure the problem is outlook

Offline bosco555

  • ****
  • 152
  • +0/-0
Re: Email configuration
« Reply #14 on: June 18, 2012, 09:50:59 AM »
Stefano, lascia il sarcasmo a casa per favore!  If I could decipher that error message I would have done that.  Is there a problem with this forum that people have a bad attitude when answering questions?  If someone has nothing helpful to say, rather say nothing at all.  I have been following these forums and it seems to be a recurrent issue.

These pages are supposed to be a help line for those in trouble, not a lecture in reading and searching manuals and posts.

Now...I have tried other email clients, and the problem persists.  The server is a pop server with pop3s for external access.  I have also deleted and re-created the outlook profile/s.  It is not an outlook problem as all the clients on the network behave in the same manner.

If there is a solution to this I'd like to know, if not just say so and I will migrate to another distro,plain and simple.  Sorry, but I have had enough of smart comments in this forum.

Offline Stefano

  • *
  • 10,838
  • +2/-0
Re: Email configuration
« Reply #15 on: June 18, 2012, 10:01:28 AM »
Stefano, lascia il sarcasmo a casa per favore!  If I could decipher that error message I would have done that.  Is there a problem with this forum that people have a bad attitude when answering questions?  If someone has nothing helpful to say, rather say nothing at all.  I have been following these forums and it seems to be a recurrent issue.

bosco555, the sarcasm was not for you, but for M$ c**p that is useless to debug the issue..
anyway, I apologize..

Quote
These pages are supposed to be a help line for those in trouble, not a lecture in reading and searching manuals and posts.


sure..

Quote
Now...I have tried other email clients, and the problem persists.  The server is a pop server with pop3s for external access.  I have also deleted and re-created the outlook profile/s.  It is not an outlook problem as all the clients on the network behave in the same manner.

If there is a solution to this I'd like to know, if not just say so and I will migrate to another distro,plain and simple.  Sorry, but I have had enough of smart comments in this forum.

well.. a little bit nervous?

pop3s.. port 995 tcp

you say that ALL the client have the same problem.. is there anything behind between your clients and SME? can you ping SME? can you telnet SME on 995 tcp?

are we talking about local or remote connections?

since you are out there and we are not near to you, you should post here all the info.. i.e. your setup, logs, what you did and how you did it.

we are here to help you.. please help us to help you
thank you
« Last Edit: June 18, 2012, 12:31:06 PM by Stefano »

Offline p-jones

  • *
  • 594
  • +0/-0
Re: Email configuration
« Reply #16 on: June 18, 2012, 12:20:06 PM »
I think you might find there are "other" M$ issues sending the test message from outlook and even when the email is configured correctly and working fine, that message will appear. That has been my experience.
...

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Re: Email configuration
« Reply #17 on: June 18, 2012, 12:46:46 PM »
When I am trying connect to my email account in Outlook I obtain:

Log into incoming mail server (POP3)   Completed
Send test e-mail message                    Failed

Send test e-mail message: An unknown error occurred, error code: 0x800c8101


I already tested ports: 995 and 25 are opened.

your problem is to send e-mail, that is done using port 465 , so please verify that port is open and Outlook is configurated to use port 465 and SSL/TLS.
The other port to send e-mail is 587 ... never remember what exactly is the difference between them! Sorry.

...

Offline jameswilson

  • ****
  • 739
  • +0/-0
    • Security Warehouse, trade security equipment
Re: Email configuration
« Reply #18 on: June 18, 2012, 12:58:06 PM »
Bosco
I didnt read the reply as 'smart'

I cant tell if you have a problem getting mail to the server or from the server to the web. Im assuming its getting into the server is the issue.

I would try using thunderbird as outlook does not play nice and makes it harder to fault find.

Offline jameswilson

  • ****
  • 739
  • +0/-0
    • Security Warehouse, trade security equipment
Re: Email configuration
« Reply #19 on: June 18, 2012, 12:58:58 PM »
Quote
Log into incoming mail server (POP3)   Completed
Send test e-mail message                    Failed

What are your settings for the smtp server in the client. ie are you using auth

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Email configuration
« Reply #20 on: June 18, 2012, 05:49:46 PM »
When I am trying connect to my email account in Outlook I obtain:

Unfortunately, this is what you should expect to see. Outlook has a bug in its "test email" function. It sends a test message with an illegal format - it has no "Date" header. This is documented in the wiki:

http://wiki.contribs.org/Email#Outlook_test_message_doesn.27t_come_through

SME server does not accept those illegal messages, as such messages are usually spam. Legitimate mail clients do not generate such messages.

If you have other/different problems with sending or receiving email, please post a bug report in the bug tracker.

Offline bosco555

  • ****
  • 152
  • +0/-0
Re: Email configuration
« Reply #21 on: June 19, 2012, 01:35:36 AM »
Hi All and thanks for the replies, Stefano, it's all good don't worry paesa'...!!

OK, port 110, 465, 995, 25, are all open on the router and re-directed to the SME server.  I will check about port 587..I should have mentioned that the test message was sent from the outside world and not from within outlook.

I had tried all day yesterday to get this going with the client on my back, so I had to take a breather and will revisit this morning...will try another email client as well..
thanks again to all and will keep you posted...

bosco

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: Email configuration
« Reply #22 on: June 19, 2012, 02:30:27 AM »
bosco555

Quote
OK, port 110, 465, 995, 25, are all open on the router and re-directed to the SME server.

The router may configured but that does not mean external access is OK.
You need to run a port scan initiated from a workstation behind the sme server that is acting as mail server, open a web browser on the workstation and go to grc.com

Can you access webmail from the external location and (using webmail) send and receive emails to and from external & internal email addresses. That test should illuminate matters ie which works and which does not etc. Make careful notes for each test and record each error message.
« Last Edit: June 19, 2012, 02:32:57 AM by mary »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Re: Email configuration
« Reply #23 on: June 19, 2012, 12:50:26 PM »
(...)
I had tried all day yesterday to get this going with the client on my back, so I had to take a breather and will revisit this morning...will try another email client as well..
thanks again to all and will keep you posted...


Bosco

If you're in a hurry and desperate for help, call me on skype (jader.marasca) or MSN (jader31@terra.com.br) and I'll help you. If I'm online... I'll help  you... just to be sure to include from where are you ( SME contribs forums) on your invite... or I'll reject it!
...

Offline Stefano

  • *
  • 10,838
  • +2/-0
Re: Email configuration
« Reply #24 on: July 01, 2012, 01:39:33 AM »
Bosco.. did you solve the issue?

Offline lukaszk

  • 8
  • +0/-0
Re: Email configuration
« Reply #25 on: July 19, 2012, 01:55:25 PM »
I've got SME Server 8.0.

Only one problem that I cant solve is that I cant send and receive emails to/from extrenal email adress.
Sending email between my SME Server users via webmail is working wery well.

In server-manager it is set as follow:
POP3 server access    Allow private and public (secure POP3S)
IMAP server access    Allow private and public (secure IMAPS)
Webmail access    Allow HTTPS (secure)

Thanks for any sugestions what I can do to solve my problem.
Is it can be a problem with MX record of my domain?

Thank you all for responds,

For now I resolved receiving mails form extrenal. The problem was in the setting of MX record in my domain. So receiving mails working very well on my SME server.
Also I solved problem with "data header" - described here: http://wiki.contribs.org/Email - thanks to that I can connect to my mail server via Outlook (Outlook can send testing massage - it works very good).

I have still problem with extrenal sending emails. My emails sends form my server to extrenal servers do not going out.
In var/log/qmail log I found: sorry i wasn't able to establish an smtp connection. (#4.4.1).
I set up port forwarding for 25 and 465 - but it did not solve my problem.
Do you have any idea where I can try to find some solution?
 





Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Email configuration
« Reply #26 on: July 19, 2012, 03:49:35 PM »
In var/log/qmail log I found: sorry i wasn't able to establish an smtp connection. (#4.4.1).
I set up port forwarding for 25 and 465 - but it did not solve my problem.

Port forwarding has nothing to do with outbound connections, so it's not surprising it didn't fix your outbound SMTP problem.

Your ISP is probably filtering port 25 outbound traffic. You will need to configure your system to relay via the ISP's mail server.

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: Email configuration
« Reply #27 on: July 19, 2012, 03:53:08 PM »
lukaszk

Quote
Your ISP is probably filtering port 25 outbound traffic. You will need to configure your system to relay via the ISP's mail server.

...and you will find that setting in the server manager Email panel, ie the smtp server of your ISP
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline lukaszk

  • 8
  • +0/-0
Re: Email configuration
« Reply #28 on: July 19, 2012, 05:31:02 PM »

Your ISP is probably filtering port 25 outbound traffic. You will need to configure your system to relay via the ISP's mail server.

To be sure, if I understood well.
I've got internet conection by modem and router. Next to router is conected my SME server.
It's look like this (bold - it's my network--> I have access to modem, router, SME server):

INTERNET------MODEM----ROUTER-----SME Server (server mode only)


If you said:  "ISP is probably filtering port 25 outbound traffic" that mean:
1. that MODEM+ROUTER filtering port 25 outband trafic (solution is in the router configuration), or
2. INTERNET filtering port 25 outband trafic (solution is out of my office), or
3. other option??


Offline janet

  • ****
  • 4,812
  • +0/-0
Re: Email configuration
« Reply #29 on: July 20, 2012, 11:30:07 AM »
lukaszk

Quote
If you said:  "ISP is probably filtering port 25 outbound traffic" that mean:
1. that MODEM+ROUTER filtering port 25 outband trafic (solution is in the router configuration), or
2. INTERNET filtering port 25 outband trafic (solution is out of my office), or

It could be both depending how your router is configured, but Charlie was referring to your ISP filtering the service it provides you ie to stop servers using port 25 directly.
As said it refers to your ISP, so ask your ISP if they block port 25.

You can try adding the ISP's smtp server into the Email panel in server manager eg smtp.yourisp.com, or similar, ask them. This causes sme server to send mail via the ISP's mail server, rather than directly to other mail servers via port 25.
I suggest you try this to see if it resolves your sending problem.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Email configuration
« Reply #30 on: July 20, 2012, 02:23:55 PM »
...and you will find that setting in the server manager Email panel, ie the smtp server of your ISP

As lukaszk should know, by reading the SME Server Documentation, but following the "MANUAL" link.

Offline lukaszk

  • 8
  • +0/-0
Re: Email configuration
« Reply #31 on: July 26, 2012, 05:22:57 PM »
lukaszk

It could be both depending how your router is configured, but Charlie was referring to your ISP filtering the service it provides you ie to stop servers using port 25 directly.
As said it refers to your ISP, so ask your ISP if they block port 25.

Thank you for your post!
In fact, my ISP is blocked port 25. However, in internet I have read that in neostrada (noestrada it's a name of my ISP's internet service) there is a possibility to configure modem conection in a way that port 25 is not blocked. (it has to add in login NON_SECURE). It's works. Sending mails started to work well. However sometimes there is a problem that client smpt server is going to connect with my smtp server but in respond it obtains that I sent spam and smpt server refuse to take my emails. Any suggestions how to avoid this problem are welcome...

lukaszk
You can try adding the ISP's smtp server into the Email panel in server manager eg smtp.yourisp.com, or similar, ask them. This causes sme server to send mail via the ISP's mail server, rather than directly to other mail servers via port 25.
I suggest you try this to see if it resolves your sending problem.

I used this NON_SECURE connection becouse is extremly difficult to get smpt server login and password from my ISP. So I don't know what I have to put in my server manager. I'm still trying to get that login and password...
I tried to use gmail smtp server, but it is not working well. In qmail log I found that, gmail smtp server is not acepting massage with diffrent email in header.