Koozali.org: home of the SME Server

Outside emails

derrobe

Outside emails
« on: February 28, 2005, 02:38:04 AM »
I* am having a poblem I backed up my 6.0 and installed a fresh copy of 6.5beta2 to the box now I can send emails nternally and recieve internal emails but all extrenal emails are blocked to certain accounts any clue what I can do to correct this.

SteveW

Blocked Email
« Reply #1 on: February 28, 2005, 03:34:47 PM »
Greetings,

What is the response people are receiving when trying to email someone on your network?
-
Steve

derrobe

Outside emails
« Reply #2 on: February 28, 2005, 04:22:53 PM »
Internally email is working fine it is when someone externally tries to email within in the network that the problem occurs

Offline Brenno

  • *****
  • 208
  • +0/-0
Outside emails
« Reply #3 on: March 01, 2005, 12:17:35 AM »
derrobe, please post more details on your setup.  Did your internal or external IP change when you upgraded?

Also, you indicated that only certain accounts are having problems.  Do you host more than one domain?  If so, are all the problem accounts on the same domain?

derrobe

Outside emails
« Reply #4 on: March 01, 2005, 02:29:34 AM »
sorry really cant give yuou much more the ip addresses did not change and so far all accounts are not getting external email

Offline Brenno

  • *****
  • 208
  • +0/-0
Outside emails
« Reply #5 on: March 01, 2005, 05:24:15 AM »
Can your SME box get online?  This can be tested by logging into the console as admin and running option 3.

Let's start simple and try that first.  Internal mail would work fine even if your box wasn't connected to the internet (so long as it was on your LAN.)

derrobe

Outside emails
« Reply #6 on: March 01, 2005, 02:11:02 PM »
yes option 3 is successfull

Offline Brenno

  • *****
  • 208
  • +0/-0
Outside emails
« Reply #7 on: March 01, 2005, 02:37:59 PM »
Okay, that's good.  Now, are all of your DNS records set correctly?  I know you said your external IP didn't change, but perhaps something else did?

Also, in the server-manger page, under Configuration > Email, check to make sure that POP and IMAP access is set to Allow Public Access (Entire Internet.)

Failing that, make sure that if your server is behind a firewall, that port 25 is forwarded to your server.

derrobe

Outside emails
« Reply #8 on: March 01, 2005, 03:36:07 PM »
Dont know how to check the dns setting except for the zoneedit which is configured fine.  The email is setup public and I am not behind a firewall I use the sme built in one

derrobe

Outside emails
« Reply #9 on: March 02, 2005, 04:27:14 PM »
Anyone got an idea I even tried deleting and recreating the account to see if that was the issue

derrobe

Outside emails
« Reply #10 on: March 09, 2005, 09:28:33 PM »
Hello People I am still having this problem going on 2 weeks now.  Please help me.....

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Outside emails
« Reply #11 on: March 10, 2005, 12:12:08 AM »
Quote from: "derrobe"
Hello People I am still having this problem going on 2 weeks now.  Please help me.....


I think the best help I can give is this:

http://www.chiark.greenend.org.uk/~sgtatham/bugs.html

derrobe

Outside emails
« Reply #12 on: March 10, 2005, 12:41:58 AM »
How do I know this is a bug and not something I did.  If you are not going to help someone then why are you posting this nonsense

egerards

Outside emails
« Reply #13 on: March 10, 2005, 11:43:52 AM »
A few things to check:

- From outside your network: do a telnet to your server at port 25. Do you get a response and what response?
- If the smtp server seems reachable from the outside world: send an email from an outside machine to your server. Do you get an error mail returned? If so, what's the contents?
- Finally check in the server manager the following log file: smtpfront-qmail/current , choose 'smtpfront' as filter pattern (without the quotes) and check whether the attempt to send an email to your server was logged and if it was successful or why it was rejected.

Please check these items and let us know your findings.

djhomeless

Outside emails
« Reply #14 on: March 10, 2005, 02:35:57 PM »
Also, if you supply us with your domain name and/or an email account it would help to check the DNS externally.

Geoffrey

derrobe

Outside emails
« Reply #15 on: March 10, 2005, 03:11:14 PM »
Well thank you for helping me make some headway somewhere on this issue of mine.  I will not be able to telnet into my pc remotely till later this evening.  But I checked the log files and it tells me no error messages.  

This is the message I recieved when I sent from an external account to one of my internal accounts as a test.

Quote
This is an automatically generated Delivery Status Notification

Delivery to the following recipient failed permanently:

    irhineha[at]byte-this[dot]com

Technical details of permanent failure:
TEMP_FAILURE: Could not initiate SMTP conversation with any hosts:
[byte-this[dot]com (0): Connection timed out]

  ----- Original message -----

Received: by 10.38.24.7 with SMTP id 7mr37989rnx;
       Sun, 06 Mar 2005 08:39:45 -0800 (PST)
Received: by 10.38.149.63 with HTTP; Sun, 6 Mar 2005 08:39:44 -0800 (PST)
Message-ID: <e278547405030608391d9598c3@mail.gmail.com>
Date: Sun, 6 Mar 2005 11:39:44 -0500
From: Ian Rhinehart <derrabe[at]gmail[dot]com>
Reply-To: Ian Rhinehart <derrabe[at]gmail[dot]com>
To: irhineha[at]byte-this[dot]com, irhineha[at]comcast[dot]net
Subject: test
Mime-Version: 1.0


I dont recieve any error when I try to send an email out from internal to external but the messages never get delivered.

egerards

Outside emails
« Reply #16 on: March 10, 2005, 03:32:15 PM »
Assuming that byte-this.com is your SME server, I did some tests to your server.

I noticed that most of all services (FTP/HTTP(S)/SSH/POP3) seem to be available to the outside world, except for SMTP. I simply get no response on port 25. It is as though the SMTP server is not running.

If you have command line access, could you try a '/etc/init.d/smtpfront-qmail status' ? What does it show?

djhomeless

Outside emails
« Reply #17 on: March 10, 2005, 04:11:44 PM »
Your MX record, mail.byte-this.com, is cnamed to wf.zoneedit.com. Are you aware of this?

I use ZoneEdit myself so I can only assume you are using ZE's email forwarding system.

I would ensure your MX record is resolving to your SME box first, then see if your SMTP issues continue.

Geoffrey

derrobe

Outside emails
« Reply #18 on: March 10, 2005, 05:28:36 PM »
I am checking the thing egerards asked right now and I have no Idea how to change the MX thingy.  I did just get a failure notice from an internal to external notice so posting it now

Quote
Hi. This is the qmail-send program at byte-this.com.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<freind@yahoo.com>:
Sorry, I wasn't able to establish an SMTP connection. (#4.4.1)
I'm not going to try again; this message has been in the queue too long.

--- Below this line is a copy of the message.

Return-Path: <irhineha[at]byte-this[dot]com>
Received: (qmail 24084 invoked from network); 3 Mar 2005 15:21:03 -0000
X-Virus-Scanned: by amavis-ng-0.1.6.4-03dc on pumba.byte-this.com
Received: from ianm5uzhirko73 ([169.254.77.65])
  by pumba.byte-this.com ([169.254.77.1])
  with ESMTP via TCP; 03 Mar 2005 15:21:03 -0000
From: "Ian Rhinehart" <irhineha[at]byte-this[dot]com>
To: <freind@yahoo.com>
Subject: Howdy
Date: Thu, 3 Mar 2005 08:41:41 -0500
MIME-Version: 1.0
Content-Type: multipart/mixed;
   boundary="----=_NextPart_000_001D_01C51FCC.D2C76700"
X-Mailer: Microsoft Office Outlook, Build 11.0.5510
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
Thread-Index: AcUf9rtwVZxqeX7cQ7SOWQvscKfPjw==

This is a multi-part message in MIME format.

------=_NextPart_000_001D_01C51FCC.D2C76700
Content-Type: multipart/alternative;
   boundary="----=_NextPart_001_001E_01C51FCC.D2C76700"


------=_NextPart_001_001E_01C51FCC.D2C76700
Content-Type: text/plain;
   charset="us-ascii"
Content-Transfer-Encoding: 7bit

Second try


derrobe

Outside emails
« Reply #19 on: March 10, 2005, 05:31:11 PM »
This is for Egerands

Code: [Select]
[root@pumba root]# /etc/init.d/smtpfront-qmail status
/service/smtpfront-qmail: up (pid 30988) 71575 seconds, normally down
[root@pumba root]#


I cant make heads or tails of it

djhomeless

Outside emails
« Reply #20 on: March 10, 2005, 05:49:05 PM »
Your MX 'thingy' should point to where your mail server is, ie your SME box. Right now, it is cnamed to Zone Edit.

What is SMTP set to on your box? Are you pointing it to your ISP, or is your box handling it? If its your box, what is the domain you are using for SMTP.

Not being rude here my friend, but posting email bounces is not going to solve this issue.

Geoffrey

derrobe

Outside emails
« Reply #21 on: March 10, 2005, 06:12:46 PM »
My box is hosting the smtp server not my isp and my box is hosting 3 domians but the my main domain is byte-this.com.  Zoneedit is my DNS server.  So is that the way it should be or do I need to correct something.  If I do need to correct something can you instruct me on how

djhomeless

Outside emails
« Reply #22 on: March 10, 2005, 06:20:13 PM »
Go to Zoneedit and check what your MX is set to. I have a feeling you are using the email forward setting which means you don't have a valid MX record. Well you do, but the MX is at Zone's, not your SME box.

Unless you made that selection for a reason, I would point the MX record to your SME box.

Geoffrey

derrobe

Outside emails
« Reply #23 on: March 10, 2005, 06:26:30 PM »
Is this right?

Code: [Select]

Mail Servers: Domain Server    Rank
byte-this.com byte-this.com    0

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Outside emails
« Reply #24 on: March 10, 2005, 06:48:09 PM »
Quote from: "derrobe"

<freind@yahoo.com>:
Sorry, I wasn't able to establish an SMTP connection. (#4.4.1)
I'm not going to try again; this message has been in the queue too long.


This means (almost certainly) that your ISP is blocking outbound SMTP from your server to the Internet. Only solutions are for you to configure you box to use your ISP's mail server for all outgoing mail (use SmartHost entry in email settings), or change ISPs.

derrobe

Outside emails
« Reply #25 on: March 10, 2005, 06:52:12 PM »
The only problem with your suggestion is that my email worked fine until I upgradedto 6.5beta2 and installed the few addons (AWStats and Clam)

derrobe

Outside emails
« Reply #26 on: March 10, 2005, 06:53:05 PM »
Oh yeah and my computer will not connect to the smtp of my isp either when using my outlook I get the same message.  PS I dont get incoming mail either

djhomeless

Outside emails
« Reply #27 on: March 10, 2005, 06:53:33 PM »
Yes that is right.

It looks like your mail server is still timing out. Are you sure your firewall is not blocking ports on you (DNS, POP, SMTP, etc).

I had this exact same problem on my box, I had all ports open except for DNS which was my problem.

Geoffrey

derrobe

Outside emails
« Reply #28 on: March 10, 2005, 06:56:34 PM »
I dont have a external firewall I use the SME built in firewall.  The SME box is connected directly to the cable modem

derrobe

Outside emails
« Reply #29 on: March 10, 2005, 06:58:44 PM »
How do I test if my isp is blocking port 25?  becuase it was not before I upgrade but just so I can rule that out as a possible cuase

djhomeless

Outside emails
« Reply #30 on: March 10, 2005, 07:56:33 PM »
Quote from: "derrobe"
Oh yeah and my computer will not connect to the smtp of my isp either when using my outlook I get the same message.


Then you have bigger fish to fry. Either your ISP, or SME firewall/proxy is blocking SMTP.

As a litmus test, try hooking your PC directly to your cable modem and see if you still can't connect to your ISP's SMTP server.

To be honest, I think this is a prime example of when not to upgrade. Unless you have a burning need to run 6.5, it looks like you would be better off downgrading back to 6.0.

Geoffrey

egerards

Outside emails
« Reply #31 on: March 11, 2005, 08:16:22 AM »
Geoffrey might quite well be right about that downgrading: your smtp server seems to be running, however is not reachable from the outside world and you are unable to reach your isp's smtp server. All this used to work before the upgrade.

Nevertheless a few things:

Does SME 6.5 include the fetchmail contrib (listed as Mails retrieval in your server manager)? There you can enable / disable direct smtp connections.

If you give the following command on the command line, what does it return: 'iptables -L | grep smtp' ?
If the line begins with 'ACCEPT', then the SME firewall is configured to accept smtp connections, however if the line begins with 'denylog', then smtp connections are blocked by the firewall.

And last but not least (as stated before): do make sure that your isp is not blocking smtp access to your server. My previous isp did so from one day to another without any announcement...