Link to home
Start Free TrialLog in
Avatar of wlb7631
wlb7631

asked on

Slackware + Gateway + Outlook

I've mail server with slackware and outlook run with no problem at all. Now i want to set this servers as gateway for my local user use this as a gateway. I've search at EE and found some solutions that gave a rc.firewall scripts as a result and work fine. I also try use that scripts and work fine, my local user can connect to internet using my mail server as a gateway.

My problem is when i run rc.firewall, i cannot send email to outside, also when i try to login to my email from IE (squirrelmail) it said IMAP server errors. 110 port bla bla bla ( sorry forgot what it said)

I also try modify the rc.firewall by adding
$ipt -A INPUT -p tcp --dport 25 -j ACCEPT
$ipt -A INPUT -p tcp --dport 110 -j ACCEPT

but also cannot solve my problem ....
please expert any idea ??
ASKER CERTIFIED SOLUTION
Avatar of drcheap
drcheap
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of wlb7631
wlb7631

ASKER

Same as before.

The message could not be sent because one of the receipients was rejected by the server. The rejected email
address was 'email@email.com'. Subject 'test', Account: 'mail.domain.com', Server: 'domain.com', Protocol:
SMTP, Server Response:'550 5.7.1 <email@email.com>..Relaying denied. Proper authentication required., Port: 25,
Secure[SSL]: No, Server Error: 550, Error Number:0x800CCC79

When i try to log in to my email using ie, the error is :

Error connecting to IMAP server: domain.
110 : Connection timed out
I don't see where IMAP fits into this, other than the error that mentions IMAP for whatever reason.

The 550 5.7.1 is an SMTP code coming from the actual server, which means you are making communication with it.  That particular error is probably because you are using "email@email.com" which is not one of the domains serviced by that box, and you are not on one of the networks considered trusted by that box.  You just need to enable SMTP authentication to fix that issue.

As for the port 110 connection timeout...that is POP3, which again is not an IMAP issue.  This should not be a problem since you have the iptables rule just like you do for SMTP.  I would try to connect to the POP3 from someting on the same subnet to make sure it is actually working in the first place.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
one more question

did you added a rule to allow anything to localhost? that can cause a lot of strange problems..

add this:

$ipt -I INPUT -A lo -j ACCEPT
Forced accept.

Computer101
Community Support Moderator
if i use CentOS, what file should i modify ??