Server move - mail problems

Community support for Plesk, CPanel, WebMin and others with insight from two of the founders of Plesk. Ask for help here! No question is too simple or complicated. :-)
kram
Forum Regular
Forum Regular
Posts: 243
Joined: Sat Dec 11, 2004 2:33 pm
Location: South Africa

Server move - mail problems

Unread post by kram »

Hello All,

I recently moved to a new server.
DNS propagation was a bit of a challenge and took longer than expected.

This morning a number of emails were delivered to the new server that can be seen in webmail but are NOT downloaded to the mail client.

When i look in the mail dir i can see that mail today has a 2,S at the end of the file name

1306756863.M964056P23961V0000000000000902I000000000A49E74D.webhost.2large.co.za,S=1076:2,S

If I rename the file and remove the :2,S the email then downloads.

Is there a "simple" way to rename all email in all mail accounts for today? (1039 mailboxes)

Another issue

All mail stored on the server, is been downloaded to users mailboxes.
In some cases the over 500MB of email :)
Is there a way to stop this from happening?

:idea:
Mark Brindley
2Large Networks - Web solutions that work
faris
Long Time Forum Regular
Long Time Forum Regular
Posts: 2321
Joined: Thu Dec 09, 2004 11:19 am

Re: Server move - mail problems

Unread post by faris »

This is a time/date thing, I think. Check the timestamps on the emails? Not a solution, but a possible cause of the problem anyway. Also check that the clock on your server is correct.
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
kram
Forum Regular
Forum Regular
Posts: 243
Joined: Sat Dec 11, 2004 2:33 pm
Location: South Africa

Re: Server move - mail problems

Unread post by kram »

Hello Faris,

Totaly lost at the moment with this.
I am wondering if this not also be a permissions issue.
On my old server things are a bit different to the new one ?

Maybe you could confirm the correct ones below?
I ran /usr/local/psa/admin/sbin/mchk --with-spam to get the perms below

What I have also found is that if a user connects with IMAP all emails are working correctly.
Many of my clients using a Blackberry recive mail to the phone, but not in outlook?
POP3 mails seems to the problem.

If i connect to my own domain with IMAP - I see all the emails.
POP3 emails do not all come in.

One way to get some of the emails to come in was to change the POP3 address from name based to IP based.

New Server Perms

/var/qmail/mailnames/

drwxr-x--- 6 popuser popuser 4096 Jun 1 15:20 domain.co.za

/var/qmail/mailnames/domain.co.za/

drwx------ 4 popuser popuser 4096 Jun 1 15:20 editor

/var/qmail/mailnames/domain.co.za/editor/

drwx------ 4 popuser popuser 4096 Jun 1 15:20 .
drwxr-x--- 21 popuser popuser 4096 Jun 1 15:20 ..
drwx------ 2 popuser popuser 4096 Jan 30 2008 @attachments
drwx------ 6 popuser popuser 4096 Jun 1 16:03 Maildir
-rw------- 1 popuser popuser 41 Jun 1 15:20 .qmail

/var/qmail/mailnames/domain.co.za/editor/Maildir/

drwx------ 6 popuser popuser 4096 Jun 1 16:03 .
drwx------ 4 popuser popuser 4096 Jun 1 15:20 ..
drwx------ 2 popuser popuser 4096 Jun 1 16:03 courierimapkeywords
-rw-r--r-- 1 popuser popuser 16730 Jun 1 16:03 courierimapuiddb
-rwx------ 1 popuser popuser 18669 May 27 15:26 courierpop3dsizelist
drwx------ 2 popuser popuser 36864 Jun 1 16:03 cur
-rw-r--r-- 1 popuser popuser 1157 Jun 1 17:01 maildirsize
drwx------ 2 popuser popuser 12288 Jun 1 17:01 new
drwx------ 2 popuser popuser 4096 Jun 1 17:01 tmp

/var/qmail/mailnames/domain.co.za/editor/Maildir/cur

-rwx------ 1 popuser popuser 3658657 Jun 1 14:20 1306930848.M803763P3961V0000000000000902I000000000A8C7080.webhost.2large.co.za,S=3658657:2,S
-rwx------ 1 popuser popuser 6422342 Jun 1 14:43 1306932203.M978529P11637V0000000000000902I000000000A8C715F.webhost.2large.co.za,S=6422342:2,S
Mark Brindley
2Large Networks - Web solutions that work
paulie
Forum User
Forum User
Posts: 76
Joined: Tue Apr 20, 2010 2:49 am

Re: Server move - mail problems

Unread post by paulie »

Hi Kram,

Interesting stuff! You got me searching for why email messages have that naming format which took me here : http://qmail-support.blogspot.com/2005/ ... ildir.html

From your first post : Removing the :2,S is telling the system that the message (which was marked as read) is now unread. Its odd that this should be needed to get the mail downloaded, it implies that the POP clients think they have already downloaded the messages.

From your later post : Swapping out the server name for the IP. This would indicate strongly that the mail server DNS isn't updated and is pointing to the old server? Do you use the same server name for POP and IMAP? Are the mail accounts accessible (ie not disabled and not having had their password changed) on the old server?

Paul.
faris
Long Time Forum Regular
Long Time Forum Regular
Posts: 2321
Joined: Thu Dec 09, 2004 11:19 am

Re: Server move - mail problems

Unread post by faris »

Yeah, if using the IP works and using the domain name doesn't, there's definitely something up with DNS as Paulie says.

The perms look OK to me at first glance.
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
kram
Forum Regular
Forum Regular
Posts: 243
Joined: Sat Dec 11, 2004 2:33 pm
Location: South Africa

Re: Server move - mail problems

Unread post by kram »

Hello,

Just a quick update.

@paulie this certainly did seem to be a DNS issue.

After reading your post I forced the old server to use the New servers as DNS.
I then changed the NS records of all the domains to point to the new server.

A day later and everything returned to normal.

Thanks to everybody for your input.
Mark Brindley
2Large Networks - Web solutions that work
Post Reply