Koozali.org: home of the SME Server

Email problem behind firewall

Benny Mastrup

Email problem behind firewall
« on: August 29, 2003, 04:03:17 AM »
I have configured my SME5.6 as server-only and put a D-link router/firewall between this and my ADSL-connection. Doing this I'm unable to collect email from my external POP-account.

Before I used my SME-box as a gateway and everything was working fine. Does anybody know if I have to apply special settings to my router/firewall to get this working.

The router acts as a DHCP server which did give me some problems accessing my mail on the SME-box using IMAP. After changing the mail server to the actual IP-address of my SME-box (instead of using mail.mydomain.dk) I got access to the IMAP server, but still no mails are collected from my POP-account.

Any hints?

/Benny

Benny Mastrup

Re: Email problem behind firewall
« Reply #1 on: August 29, 2003, 04:12:37 AM »
Just wanted to add:

I can collect my email from another PC - setting up a POP account in Outlook Express. This works fine through the firewall - the SME-box just don't!

/Benny

James Pybus

Re: Email problem behind firewall
« Reply #2 on: August 29, 2003, 11:19:25 PM »
Can SME get access to the internet? Login as admin and choose option 4, Test internet access.

I expect that you might not have set the router/firewall as the gateway in the external network settings on the SME box.

HTH
James

Benny Mastrup

Re: Email problem behind firewall
« Reply #3 on: August 30, 2003, 12:21:24 AM »
Hi James,

Yes, access to the internet i ok, and I can even send mail out via SME - but still nothing is "comming in".

/Benny

James Pybus

Re: Email problem behind firewall
« Reply #4 on: September 02, 2003, 01:37:36 PM »
How do you receive email pop to one mail box for all users or are you just running smtp?

James

Benny Mastrup

Re: Email problem behind firewall
« Reply #5 on: September 02, 2003, 11:50:26 PM »
I am using multipop, but I only collect from one pop account. My level of SME knowledge is limited but I had it working fine untill I reconfigured the SME to act as a server-only - and inserted my router and firewall.

I guess it could be because of my domain "mastrup.dk". This is the domain I use for my internal network and also for my email account - e.g. benny@mastrup.dk.

The domain is actually hosted externally - by difa.dk, where my pop account is located.

/Benny

James Pybus

Re: Email problem behind firewall
« Reply #6 on: September 06, 2003, 07:20:59 PM »
Were you always using mutlipop? Asuming so, try running:

/etc/fetchmail

to see if it manualy collects. If it does then somthing has stopped it running automatically, I think cron should do this.

Also have you checked all the settings in the server manager for multipop to see if anything may have changed.

Have you checked you mail logs to see if there are any error messages? I think something like this should pick up any errors:

cat /var/log/maillog | grep fetch

HTH
James

Benny Mastrup

Re: Email problem behind firewall
« Reply #7 on: September 08, 2003, 10:34:36 PM »
Tried to execute fetchmail, but got an error: "Parse error at fetchall"

Have not had the time to look into it, but something might have been changed!

Content of fetchmail is (username/password removed):
-----------------------

#!/bin/sh

#------------------------------------------------------------
# DO NOT MODIFY THIS FILE! It is updated automatically by the
# e-smith server and gateway software. Instead, modify the source
# template in an /etc/e-smith/templates-custom directory. For more
# information, see http://www.e-smith.org/custom/
#
# copyright (C) 2001 e-smith, inc.
#------------------------------------------------------------


# multi-drop configuration; fetchmail retrieves all mail from a remote POP mailbox:

/usr/bin/fetchmail --syslog --silent --fetchmailrc - <
set postmaster "postmaster@mastrup.dk"
set bouncemail
set properties ""

poll mail.difa.dk
    protocol POP3
    no dns
    localdomains mastrup.dk
       username "xxxxxx" password "yyyyyy" to * here
           smtphost $SMTP
           fetchall
           forcecr

EOF

-----------------------

Have to look into the log - later tonight (danish time)

/Benny