The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Mail going to old server after WHM transfer

Discussion in 'E-mail Discussions' started by jasgot, Dec 22, 2007.

  1. jasgot

    jasgot Well-Known Member

    Joined:
    Mar 2, 2004
    Messages:
    55
    Likes Received:
    1
    Trophy Points:
    6
    I just moved a few domains from one of my cpanel/whm servers to another.

    I am having two issues.

    One) Users say they are getting huge amounts of spam, mailscanner is configured just like it was on the old server, I have confirmed that spam scanning is set to yes and low and high spam are set to delete.

    Is there a gap that I must tolerate? and then it will start catching the spam?

    Two) There are a few messages in the mail box of some users at the old server (dated AFTER the transfer), should the two cpanel servers have handled this? How do I get these messages to the new server? I cannot simply transfer the account again, can I?

    Thanks.
     
  2. Stefaans

    Stefaans Well-Known Member

    Joined:
    Mar 5, 2002
    Messages:
    451
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Vancouver, Canada
    No, it should work immediately. If your setups are really the same, then the results should be the same too.

    We do not use MailScanner on our server, so I cannot give detailed advice. However, a good starting point would probably be to examine some message headers to see that MailScanner is indeed active and working as it should. Also check that all the desired SpamAssassin rules are in place and updated regularly.

    A day or so before transferring an account from one server to another, set the DNS TTL to a short values such as 300 seconds. That helps to reduce problems like this where remote servers continued to send email to the old server for several hours after the transfer.

    To transfer the messages for the old server to the new server: If you are using Maildir format for your mailboxes (that is likely the case), you can simply copy the message files over to the new server, e.g. using scp. If you are using the old Mbox format, then you could use a tool such as fetchmail to fetch the messages from the old server,
     
  3. jasgot

    jasgot Well-Known Member

    Joined:
    Mar 2, 2004
    Messages:
    55
    Likes Received:
    1
    Trophy Points:
    6
    Thanks, I was headed that way myself after giving some thought. It makes me feel better to have someone who knows how to do this say the same thing.


    Which line do I change? and do I have to increment the serial number?

    My named (domain).db files look like this:

    ; Modified by Web Host Manager
    ; Zone File for acuraoftroy.com
    @ 14400 IN SOA ns.syo.com. jason.syo.com. (
    2004030504
    28800
    7200
    3600000
    300
    )

    acuraoftroy.com. 14400 IN NS ns.syo.com.
    acuraoftroy.com. 14400 IN NS ns2.syo.com.
    acuraoftroy.com. 14400 IN A 69.93.32.94

    localhost.acuraoftroy.com. 14400 IN A 127.0.0.1

    acuraoftroy.com. 14400 IN MX 0 acuraoftroy.com.

    mail 14400 IN CNAME acuraoftroy.com.
    www 14400 IN CNAME acuraoftroy.com.
    ftp 14400 IN A 69.93.32.94
     
  4. jasgot

    jasgot Well-Known Member

    Joined:
    Mar 2, 2004
    Messages:
    55
    Likes Received:
    1
    Trophy Points:
    6
    Thanks, I was headed that way myself after giving some thought. It makes me feel better to have someone who knows how to do this say the same thing.


    Which line do I change? and do I have to increment the serial number?

    My named (domain).db files look like this:

    ; Modified by Web Host Manager
    ; Zone File for acuraoftroy.com
    @ 14400 IN SOA ns.syo.com. jason.syo.com. (
    2004030504
    28800
    7200
    3600000
    300
    )

    acuraoftroy.com. 14400 IN NS ns.syo.com.
    acuraoftroy.com. 14400 IN NS ns2.syo.com.
    acuraoftroy.com. 14400 IN A 69.93.32.94

    localhost.acuraoftroy.com. 14400 IN A 127.0.0.1

    acuraoftroy.com. 14400 IN MX 0 acuraoftroy.com.

    mail 14400 IN CNAME acuraoftroy.com.
    www 14400 IN CNAME acuraoftroy.com.
    ftp 14400 IN A 69.93.32.94
     
  5. Stefaans

    Stefaans Well-Known Member

    Joined:
    Mar 5, 2002
    Messages:
    451
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Vancouver, Canada
    The TTL is the last number in the first the SOA section. In your example, it is already set to 300 seconds.

    Yes, your should always increment the serial number when editing a DNS zone. The recommended numbering scheme is using the date followed by a sequence number, e.g. 2007122301 for the first version of December 23. 2007.
     
Loading...

Share This Page