PDA

View Full Version : Major email problems.


abbas
01-07-2007, 11:46 AM
Hi.

1st, I LOVE SERVERCP. Fantastic!!

But my problem, as always, is with email.

I have two domains and on one of them, all users are able to send and receive email from external users fine. However, my other domain can only send emails and when you try and send email to them, you get the error "unkown user". I have tried to delete the user and creat another with a different username, but I get the same problem.

Also, under http://www.dnsreport.com/ under email for the domain that is not working, I get a time out error. When I run the report on the domain that is working, that connects fine. Also, as a note, the greeting message for the domain that works says it is the greeting for the domain that doesnt work???

Also, I have checked mxtoolbox.com and it says the transaction time is bad for both domains?

Ok, to summaries:
Domain 1 (Does NOT receive email for accounts, says User Unknown)
Domain 2 Does receive mail for accounts)
Domain 2 (In dnsreport says the greeting is for Domain 1).

Anybody know where the config files are? I am having trouble blocking with the server addresses.

I mean, it seems you can ftp ftp.domain.com and just domain.com. Also, email will work on any server address but sending email will only work on domain.com not smtp.domain.com.....

AND How does one add a ssl certificate to incoming email and require authentication on smtp server???

All help will be APPRECIATED.

Thanks.

Regards.
Abbas

abbas
01-07-2007, 11:52 AM
Correction: The second domain has stopped sending emails all together???? I have deleted the domain and then re-created it and still wont send or receive emails.....


Regards.
Abbas.

defunctiam
01-08-2007, 04:22 PM
What does the /var/log/maillog log saY?

abbas
01-09-2007, 05:59 PM
Hi.

Thanks for your reply.

I have attached my log bar some stripping.

IP1 is the one that does not receive or send email, however, "sometimes" it does work?

IP2 is the one that receives and sends email fine.

IP3 is an unused one for domains.

My server:
VPS running Fedora 5.

I have two domains, one bound to IP1 and one to IP2. I have then created two dns servers using the IP2 and IP3. My server has three IPs.

Could it be because I have "added" a third ip in my control panel?

Do you have any idea about the rest of my post (location, greetings, transaction times etc..??).

One again, thank you very much for your help!

Regards.
Abbas.

Jeremy
01-11-2007, 07:35 AM
for your server name setup a 'A' name recored

What i mean by that is.

myserver.atmydomain.com <--server name

so setup that in the DNS.

same for you NS.

abbas
01-16-2007, 03:22 PM
Hi.

Thanks for your reply LynxPrime. I appreciate it.

Sorry for the late reply, I have a new job and have been working solid trying to learn the role and what not.

Right, I assume you are refering to getting my mail server address to mail.domain.com??

As for my dns, I have already done that....??? i.e. I have dns1.domain.com and dns2.domain.com via advance dns...???

Regards.
Abbas.

Jeremy
01-16-2007, 07:25 PM
I found your IP and your domain in the log you posted ;)
please try this..

iptables -L

telnet localhost 25

then from your computer try

telnet yourdomain 25

I personally would ask someone to host your DNS servers.. co.uk doesnt fly very well.

Try removing your spf recored, might be causing the issue.

"v=spf1 ip4:64.79.xxx.xxx a mx a:something.co.uk mx:something.co.uk ~all"

abbas
01-17-2007, 02:58 PM
Lol.

Yea, I noticed that after I uploaded the file. You cant delete or edit a post.

Anyway, its just its in production at the moment so I want to get it all working before I start to spread the name around.

Right.

iptables -L
# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination


telnet localhost 25
[root@mailmasher ~]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 TheDotNetDomain HERE ESMTP


telnet yourdomain 25
I get the same response as above....


I have removed the SPF record and still no change. DNS report still cant connect to mail servers. When I send to an address, I get Diagnostic-Code: smtp;550 User unknown.

As for DNS, I want to experiment with DNS load balancing. I.e., use DNS to try and balance email users. Consider it boredom really! But its not going to well!!!

Regards and thank you for all your help.

Abbas.

Jeremy
01-18-2007, 05:14 AM
hmm

I'm not sure really i would have to poke around... and see your setup.

Try doing this.

tailf /var/log/maillog

while that is going send an email to an account on the server.

post the log as your server receives the email.

You may need to contact DSM support and see whats going on.

Q why use FC5.. Its a pain in the ass by it self.

load balancing? Do you mean DNS round robin? IE mainl.thisdomain.com has 2 IPs?

If its possible ask your VPS to install centos 4.4 or RHEL...

abbas
01-20-2007, 12:28 PM
Hi.

Thanks for the reply.

As requested:

tailf /var/log/maillog
Jan 20 17:36:59 ServerName imapd: Connection, ip=[::ffff:127.0.0.1]
Jan 20 17:36:59 ServerName imapd: Disconnected, ip=[::ffff:127.0.0.1], time=0
Jan 20 17:36:59 ServerName courieresmtpd: started,ip=[::ffff:127.0.0.1]
Jan 20 17:46:59 ServerName pop3d: Connection, ip=[::ffff:127.0.0.1]
Jan 20 17:46:59 ServerName pop3d: Disconnected, ip=[::ffff:127.0.0.1]
Jan 20 17:46:59 ServerName imapd: Connection, ip=[::ffff:127.0.0.1]
Jan 20 17:46:59 ServerName imapd: Disconnected, ip=[::ffff:127.0.0.1], time=0
Jan 20 17:46:59 ServerName courieresmtpd: started,ip=[::ffff:127.0.0.1]
Jan 20 17:51:54 ServerName courieresmtpd: started,ip=[::ffff:222.171.103.105]
Jan 20 17:51:54 ServerName courieresmtpd: error,relay=::ffff:222.171.103.105,msg="554 Syntax error - your mail software violates RFC 821.",cmd: MAIL FROM: sdsfd3322@yahoo.co.jp
Jan 20 17:55:31 ServerName pop3d: Connection, ip=[::ffff:127.0.0.1]
Jan 20 17:55:31 ServerName pop3d: Disconnected, ip=[::ffff:127.0.0.1]
Jan 20 17:55:31 ServerName imapd: Connection, ip=[::ffff:127.0.0.1]
Jan 20 17:55:31 ServerName imapd: Disconnected, ip=[::ffff:127.0.0.1], time=0
Jan 20 17:55:31 ServerName imapd: Connection, ip=[::ffff:127.0.0.1]
Jan 20 17:55:31 ServerName imapd: Disconnected, ip=[::ffff:127.0.0.1], time=0
Jan 20 17:55:31 ServerName courieresmtpd: started,ip=[::ffff:127.0.0.1]
Jan 20 17:55:31 ServerName courieresmtpd: started,ip=[::ffff:127.0.0.1]
Jan 20 17:57:00 ServerName pop3d: Connection, ip=[::ffff:127.0.0.1]
Jan 20 17:57:00 ServerName pop3d: Disconnected, ip=[::ffff:127.0.0.1]
Jan 20 17:57:00 ServerName imapd: Connection, ip=[::ffff:127.0.0.1]
Jan 20 17:57:00 ServerName imapd: Disconnected, ip=[::ffff:127.0.0.1], time=0
Jan 20 17:57:00 ServerName courieresmtpd: started,ip=[::ffff:127.0.0.1]
Jan 20 17:57:12 ServerName courieresmtpd: started,ip=[::ffff:212.57.34.159]
Jan 20 17:57:21 ServerName courieresmtpd: error,relay=::ffff:212.57.34.159,from=<MyEMAIL@postmaster.co.uk>,to=<user@mydomain.com>: 550 User unknown.
Jan 20 17:57:21 ServerName courieresmtpd: error,relay=::ffff:212.57.34.159,msg="502 ESMTP command error",cmd: DATA
Jan 20 17:59:31 ServerName courieresmtpd: started,ip=[::ffff:65.54.246.172]
Jan 20 17:59:39 ServerName courieresmtpd: error,relay=::ffff:65.54.246.172,from=<MyEMAIL@hotmail.com>,to=<user@mydomain.com>: 550 User unknown.


Did my server just get hit with spam???

I have the following available:

CentOS 4 (am not sure if that is for 4.4)
Ubuntu 6.0.6 (Dapper Drake) as well as Ubuntu 6.10 (Edgy)
Debian 3.1 (Sarge) as well as Debian 4.0 (Etch)
Fedora Core 3, 4, 5, 5+RubyOnRails, 5+LAMP, and 6.
Slackware
Gentoo Stage 3.
openSUSE


Problem with Centos is that it is very bare and after the release of 4.4, I just cant get Yum installed so its a bit of a pain.

As for using FC, it was easy. Just install via my VPS CP and then run the DSM install scripts....

As for load balancing, not quite round robin.....

Say you run a free email site which has 1000 users. The problem is that you need to have a big server or use multiple with very expensive hardware to manage the incoming traffice (or you know what I mean....). The alternative is to use dns.

http://www.samag.com/documents/s=8920/sam0311b/0311b.htm

for more info.... You see, what I want to do is setup my VPS for testing and make it work perfectly, then convert it into pure DNS and then use cheap servers accross the globe to provide secure encrypted email... Just to see I can do it really! Consider it as an expensive hobby!

Regards.
Abbas.

Jeremy
01-22-2007, 06:36 AM
For your email front i think its best to do a grid, the way Google does it.

Grids are a bunch of servers in a large redundant array (raid5) by it self.

Like..

Server1 \
Server2 |--All one 'server' and acts as one server. Load balanced processing
Server3 /
Server4 'backup'

As you expand you just setup the 'back-end' and added 2/4/8 new servers doesn't matter..

In case server1 fails Server4 is already to go.

I'm not sure how you have your setup really, Ive setup a few grids/clusters for a few clients works really well and easy to setup but it can get expensive depending on your hardware.

As an email MTA i would look into Qmail (yahoo and Google use it)

Centos 4/any have yum installed or up2date works the same.

I would open a support ticket with DSM then i'm not really sure.


When you create a new email account, are you changing anything?
If you want you can contact me off the board i can try and help out..
I work the night shift... So I'm up between 11pm to 9am PST eh. Its up to you.

abbas
01-30-2007, 06:22 AM
Hi.

Thank you for the reply.

Sorry for the late reply. I have a new job and they have overloaded me with work! I was working from home in my 1st week 2nd Jan 07!

Anyway, I can’t send you a PM?? Are you on msn or something???

Problem with Grids is that you need to have all the servers in the same location. I was going the cheap method of separate servers in different locations....

I mean, I can re-install with Centos, but ServerCP uses Courier, so how can you stop it from installing that? Either way, it wont be able to create new users so I would have to create some form of web scripts..???

Thanks.

Regards.
Abbas.

Jeremy
01-31-2007, 04:57 AM
Grids don't need to be in one area or datacenter.

Right now i have a setup in LA Equinix and Ashburn Equinix pri and secondary

qmail is a replacement for sendmail, not an MTA.
qmail uses Courier pop3 imap etc etc.

yellowsnow1212 |a|t| hotmail.com if you like

Jeremy
01-31-2007, 05:00 AM
O and if its free (i hope it would be...) on your VPS ask them to load centos on it.

Jeremy
02-06-2007, 05:02 AM
I still think your DNS isnt correct.

when you type hostname, from your PC can you ping the hostname?