PDA

View Full Version : Many Problems


jasonyates
09-24-2003, 06:19 AM
Hello,

I have just setup a directadmin server and the e-mail dosnt work for any domain or reseller.

Also is APF firewall compatable with directadmin, it seems to keep blocking our websites but not our ip's i have tried to disable it but the task monitor keeps starting it up.

I am also not sure if i have setup the server correctly.

I was wondering if i should just re-format and start again or try and fix all the problems.

Jason

jlasman
09-24-2003, 09:31 AM
If you had a successful install and if DNS is working properly (you don't list any of your sites or the IP# of your system, both of which would be necessary for me to check) then I'd certainly try turning off the firewall to see if that helps.

Most firewalls by default do NOT allow unexpected Internet traffic through.

We successfully use an ipchains firewall posted elewhere on these forums.

Jeff

CoreHost.co.uk
09-24-2003, 10:23 AM
Hello,

Thanks for your reply: i am Jason's partner for CoreHost.co.uk (the host we are having problems with the server)

The I.P is : http://65.77.219.24

But sites (like - www.neoforum.co.uk or www.corehost.co.uk ) are blocked by firewall... i close it via SSH but it starts up again: please explain how to stop it :)

Thanks
Duran Ross

jlasman
09-24-2003, 12:24 PM
I don't know anything about the APF firewall. As I mentioned previously, I use my own ruleset for the ipchains firewall.

One of my posts at:

http://www.directadmin.com/forum/showthread.php?s=&threadid=190&highlight=ipchain

should give you some help in what needs to be allowed through a firewall.

Jeff

CoreHost.co.uk
09-24-2003, 12:29 PM
Thanks]

But do you have any idea how to remove the firewall? (uninstall it?)

jasonyates
09-24-2003, 01:01 PM
I think i removed the firewall from the bootup and i have removed all its files but we are still having mail problems, for some domains it says it cant find the server whilst for others it says this operation is prohibited by the administrator.

Jason

jlasman
09-24-2003, 01:36 PM
If the firewall was installed as part of RHL 9, then the right way to install it is by uninstalling from RPM.

If you're sure it's disabled from the startup scripts then try turning it off at the iptables level by running:
# /etc/rc.d/init.d/iptables stop
and then checking to see if you're still having problems with mail or anything else. If you are, then it's probably not the firewall.

If the above line doesn't return an error than it's probably still installed.

Jeff

jasonyates
09-24-2003, 01:42 PM
I installed it manually via ssh but when i run that command it dont give any errors.

Jason

CoreHost.co.uk
09-24-2003, 01:47 PM
Thanks....

We are now just having problems with the email system. Basically i will describe problems:

In microsoft outlook: sending and receiving does not show any errors (except for out reseller account - which shows an error not finding the mail.corehost.co.uk).... However we do not receive any emails even if there are no errors shown and when sending an email from another server to this server's email's the emails are bounced.... Also: when sending an email from the emails on the server with the problem it does not send it and comes up with an error..

Would you by any chance be able to log into our server and check out the details?

Thanks
Duran Ross

jlasman
09-24-2003, 02:18 PM
Originally posted by jasonyates
I installed it manually via ssh but when i run that command it dont give any errors.

Did you install iptables manually? or the firewall?

From what I've been able to learn the firewall is simply a script for iptables, which I doubt you installed manually, since it's part of the kernel.

If you can shut down iptables without errors, then you should go ahead and see if you then have the functionality you didn't have when it was running.

Note that to turn it back on you run the same line, replacing "stop" with "start".

Jeff

CoreHost.co.uk
09-24-2003, 02:21 PM
Ok: thanks... we have sorted the firewall!

Now its just the email system, this was a problem even before we installed a firewall!

Would you be willing to loginto our server and then check out a few settings etc?

Thanks

jlasman
09-24-2003, 02:24 PM
Originally posted by CoreHost.co.uk
In microsoft outlook: sending and receiving does not show any errors (except for out reseller account - which shows an error not finding the mail.corehost.co.uk)....
Do you get a DNS error meaning you don't find the IP#? Or do you mean you get the IP# but you then can't find the server at your IP#?

I have no problems finding the server's ip# using nslookup.

I also have no problems pinging the server either by mail.corehost.co.uk, or by IP#. So it sounds as if you may have a problem local to your PC.

However we do not receive any emails even if there are no errors shown and when sending an email from another server to this server's email's the emails are bounced.... Also: when sending an email from the emails on the server with the problem it does not send it and comes up with an error..
What was the error?
Would you by any chance be able to log into our server and check out the details?
Presuming you're asking me, please contact me privately with this request. My email address is at the bottom of this and every post.

Thanks.

Jeff

CoreHost.co.uk
09-24-2003, 02:29 PM
Hello,

Thanks for trying to help: i have contacted you via Email!

:)

CoreHost.co.uk
09-24-2003, 02:47 PM
Here is a copy of the error message i get from the mail delivory system -

"A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

fref@neoforum.co.uk
SMTP error from remote mailer after RCPT TO:<fref@neoforum.co.uk>:
host neoforum.co.uk [65.77.219.24]: 550 relaying to <fref@neoforum.co.uk> prohibited by administrator
fefgre@corehost.co.uk
SMTP error from remote mailer after RCPT TO:<fefgre@corehost.co.uk>:
host mail.corehost.co.uk [65.77.219.24]: 550 relaying to <fefgre@corehost.co.uk> prohibited by administrator"

That is when sending from from a working address to the faulty email server

Thanks

jlasman
09-24-2003, 04:06 PM
There are three logs you might want to tail while trying the email.

Do this from three seperate shell logins:

1) # tail -f /var/log/maillog
2) # tail -f /var/log/exim/exim_mainlog
3) # tail -f /var/log/exim/exim_rejectlog

That should give you an idea of what's going on.

Jeff

DirectAdmin Support
09-24-2003, 10:49 PM
Hello,

http://www.dnsreport.com/tools/dnsreport.ch?domain=neoforum.co.uk

This show no reverse lookup for your mail server.

Also, your hostname isn't resolving to anything:
;; QUESTION SECTION:
;server1.futurewebhosting.co.uk. IN A

;; AUTHORITY SECTION:
futurewebhosting.co.uk. 10795 IN SOA ns1.astroskye.com. joe.tautology.org. 1058989381 28800 7200 3600000 86400 so you'll need to add an A record to dns zone for "server1".

Also, it isn't accepting mail for *@neoforum.co.uk, which might mean that the domain isn't in the /etc/virtual/domains file, or domainowners.

As mentioned by Jeff, have a look in your logs:cat /var/log/exim/exim_mainlog | grep neoforum.co.ukperhaps file ownership and/or permissinos have been changed.


John

jasonyates
09-25-2003, 08:06 AM
I have added the A record for the server1.futurewebhosting.co.uk. I will tail the logs and post them later.

Thanks for all the help Guys.

jasonyates
09-25-2003, 12:42 PM
I have tailed the logs as you said and they outputted this:

1) # tail -f /var/log/maillog

Sep 25 12:29:25 server1 vm-pop3d[3242]: Unable to use jason's mailbox; using /dev/null for testin
g
Sep 25 12:29:25 server1 vm-pop3d[3242]: User 'jason' of 'corehost.co.uk' logged in
Sep 25 12:29:26 server1 vm-pop3d[3242]: Session ended for user: jason
Sep 25 12:29:52 server1 vm-pop3d[4294]: Connect from 81.128.161.122

2) # tail -f /var/log/exim/exim_mainlog

2003-09-25 12:27:57 1A2ZuH-0001SG-00 == jason.yates@tiscali.co.uk T=remote_smtp
defer (-44): retry time not reached for any host
2003-09-25 12:29:26 refused relay (host) to <jason@corehost.co.uk> from <jason.yates@tiscali.co.u
k> H=mk-smarthost-3.mail.uk.tiscali.com [212.74.114.39]

3) # tail -f /var/log/exim/exim_rejectlog

------------------------------------------------------------------------------
2003-09-25 12:29:26 refused relay (host) to <jason@corehost.co.uk> from <jason.yates@tiscali.co.
uk> H=mk-smarthost-3.mail.uk.tiscali.com [212.74.114.39]
------------------------------------------------------------------------------

Please can you help me as this is starting to get rather annoying.

jason

jlasman
09-25-2003, 01:24 PM
It doesn't think jason is a valid user.

Is jason just a mailbox name, or is jason the site login name at either the reseller or domain level?

Can you show us the "ls -al" output for both jason's mailbox and for a working mailbox on the box?

Otherwise parhaps contact DirectAdmin support offlist and ask them if they're willing to log in and see if they can find the problem.

Jeff

jasonyates
09-26-2003, 04:42 AM
Hi,

Jason is a valid mailbox i created it though direct admin, none of the domains or mail boxes work.

Jason

jlasman
09-26-2003, 05:33 AM
This looks as if it's going to require a login to figure out.

Have you contacted DirectAdmin support?

Jeff

jasonyates
09-26-2003, 06:06 AM
Yes i have, and i am waiting a reply, thanks for all your help guys.

Jason

johnallen
09-26-2003, 01:32 PM
I am getting the same error with email. Please post the fix once you get it.

ProWebUK
09-26-2003, 02:35 PM
This was posted in TAH's checklist:

Small addition...

I have to execute /usr/local/directadmin/scripts/spam.sh for exim to be able to work.., might save some headaces if you are trying to figure out why the mail won't work..



dont know if thats what your looking for or not but worth a try i guess ;)

Make sure you keep us updated with how things go. :)


Chris

jasonyates
09-26-2003, 03:34 PM
[root@server1 root]# /usr/local/directadmin/scripts/spam.sh
Warning: prerequisite HTML::Parser 3 not found.

Warning: I could not locate your pod2man program. Please make sure,
your pod2man program is in your PATH before you execute 'make'

Writing Makefile for Mail::SpamAssassin
Makefile:92: *** missing separator. Stop.
Makefile:92: *** missing separator. Stop.

Is what i get when i run it.

Mail still dont work

ProWebUK
09-26-2003, 03:58 PM
Mark / John any idea on this one..... from the looks of that error message, spam.sh is related with spam assasin... would that affect the mail the way it has done?

Jason, you may want to speak to support via live chat or email for a quicker response also :)

Chris

ProWebUK
09-26-2003, 04:04 PM
dum dum dum dum :p

is it only outgoing mail you are recieveing that error with and also is the problem with outlook (or another external email client? ).

have you tried webmail? if so, does that work?

depending on the answers to the above im about 80% sure i know your problem :)

johnallen
09-26-2003, 08:00 PM
I did try running the spam.sh and it did it's thing. However the error messages did not go away.



This is from the webmail client. The server has RedHat 8.0 running on it.

---------------------------------------------------------
It was not possible to send this e-mail

SMTP Error: Invalid username/password
---------------------------------------------------------



When I tried to send email to the server from a external domain it says:

---------------------------------------------------------
Permanent Failure: 550_relaying_to_<john@DOMAIN.COM>_prohibited_by_administrator
Delivery last attempted at Sat, 27 Sep 2003 01:57:25 -0000
---------------------------------------------------------

DirectAdmin Support
09-27-2003, 12:53 AM
Hello,

Can you please resend your server info to us? We don't currently have any support emails in our queue.

ip
root password
email address you are using to send.
Also a link to this thready would be handy so we remember to post a fix :)

John

jasonyates
09-27-2003, 08:28 AM
Hi,

I get the same error messages as johnallen when i use webmail & outlook.

I will send a mail to directadmin again now.

jason

jasonyates
09-28-2003, 04:50 AM
WOO HOO!!

My mail problem is fixed. Direct Admin was using the wrong config file for EXIM. Im not sure how to fix it...my host did it...maby someone could shed some light on this.

Jason

johnallen
09-28-2003, 09:30 PM
What is the email for support?

jlasman
09-28-2003, 09:47 PM
support@directadmin.com

(of course)

:)

Jeff

DirectAdmin Support
09-28-2003, 10:29 PM
Hello,

I didn't have a look at what was in the previous /etc/exim.conf file, but the fix is (for exim 3.36):cp -f /usr/local/directadmin/data/templates/exim.conf /etc/exim.conf
/sbin/service exim restart

John

jlasman
09-29-2003, 07:08 AM
John, I don't know what was wrong in Jason's file, but on my system the only difference between the two files is that the spam-control data is uncommented in the one that lives at /etc/exim.conf.

Which is as it should be since I uncommented them when I installed the spamassassin.

I don't know how Jason's file got corrupted but I applaud you for keeping "good" files on the system in the even the working ones fail.

Jeff

johnallen
09-29-2003, 08:15 AM
Thanks John!

That did fix the problem. Incoming and outgoing email now works.