I broke postfix on a production server

Discussion in 'Installation/Configuration' started by godsdog, May 25, 2006.

  1. godsdog

    godsdog New Member

    Hi. I changed IP information for a virtual domain on my server last night to an external IP and changed MX records to suit. I also changed the mailserver setting to external while playing around with an physically separate server.

    Today I realize that mail is building up in user folders (eg: /home/www/web1/user/admin/Maildir/new) except mail clients (including IMAP & UebiMiau) fail to recognize any mail at all. I have since removed that domains DNS records and complete site from the server and reboot to no avail.

    Please help...spanx.....
     
    Last edited: May 25, 2006
  2. godsdog

    godsdog New Member

    <blush> I just remembered that I had a catch all email account on another domain forwarding all email to a catch all account on the domain that I moved/deleted/messed with. It seems that because mail wasn't being forwarded, it locked everything else up.
     
  3. godsdog

    godsdog New Member

    But mail is still stuck in the new folders for everyone...back to searching the forums....
     
  4. godsdog

    godsdog New Member

    It seems that mail being sent to a deleted account (even removed from Recycle Bin) is still trying to be forwarded to another Mail Server IP...

    (BTW: I find the following commands very handy...)

    postsuper -r ALLThen check your mail log with

    tail -f /path/to/maillog
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Is the deleted account still listed in /etc/postfix/virtusertable?
     
  6. godsdog

    godsdog New Member

    HI till, thanx for the response.

    It wasn't until I recreated it. I think what I saw from using tail -f /var/log/maillog was stuff queued up from before. It kept saying 447 messages queued up. Now it says 1

    I'm back to square one now with mail accumulating in the new folders of everyone's mail dirs. I think something else has frozen up...
     
  7. godsdog

    godsdog New Member

    I think I'm stuck. When I connect to any account via IMAP, I see amongst various mail folders a dir named Maildir. Under that is new and then each mail message apears as a folder. What's going wrong here? I tried a reinstall of ispconfig to no avail. Please help.
     
    Last edited: May 25, 2006
  8. godsdog

    godsdog New Member

    When I send myself a test email, here's the tail of maillog

    Just checked dnsreport.com and was given the following warning...
    I didn't change my hostname...more digging...
     
    Last edited: May 25, 2006
  9. godsdog

    godsdog New Member

    Okay, I've changed my hostname...still mail keeps building up in each users new folder. Calls from my clients are driving me nuts....
     
  10. falko

    falko Super Moderator ISPConfig Developer

    Code:
    May 25 13:28:49 localhost postfix/smtp[4165]: 699E1BB8066: to=<[email protected]>, orig_to=<[email protected]>, relay=none, delay=0, status=bounced (Host or domain name not found. Name service error for name=localhost.localdomain type=A: Host not found)
    What's in /etc/hosts?
    What's in /etc/postfix/main.cf?
     
  11. godsdog

    godsdog New Member

    OMG...thanks for helping.

    /etc/hosts contains
    /etc/postfix/main.cf contains
     
  12. falko

    falko Super Moderator ISPConfig Developer

    Please run
    Code:
    postconf -e 'myhostname = mail.bcsolutions.ca'
    and restart Postfix.
     
  13. godsdog

    godsdog New Member

    I tried that and still no email. Here's some tail of a test email.

    Code:
    May 25 17:55:19 ns postfix/smtpd[3487]: warning: 206.116.63.178: hostname s206-116-63-178.gateway.bcsolutions.ca verification failed: Name or service not known
    May 25 17:55:19 ns postfix/smtpd[3487]: connect from unknown[206.116.63.178]
    May 25 17:55:19 ns postfix/smtpd[3487]: EB9CCBB80F0: client=unknown[206.116.63.178]
    May 25 17:55:23 ns postfix/smtpd[3487]: 23197BB80F0: client=unknown[206.116.63.178]
    May 25 17:55:23 ns postfix/cleanup[3494]: 23197BB80F0: message-id=<001901c6805f$114375c0$2d9b2805@PISS>
    May 25 17:55:23 ns postfix/qmgr[3120]: 23197BB80F0: from=<[email protected]>, size=2873, nrcpt=1 (queue active)
    May 25 17:55:23 ns postfix/smtpd[3487]: disconnect from unknown[206.116.63.178]
    May 25 17:55:23 ns postfix/smtp[3529]: 23197BB80F0: to=<[email protected]>, orig_to=<[email protected]>, relay=none, delay=0, status=bounced (mail for mail.bcsolutions.ca loops back to myself)
    May 25 17:55:23 ns postfix/cleanup[3494]: AE171BB80F2: message-id=<[email protected]>
    May 25 17:55:23 ns postfix/qmgr[3120]: AE171BB80F2: from=<>, size=4706, nrcpt=1 (queue active)
    May 25 17:55:23 ns postfix/qmgr[3120]: 23197BB80F0: removed
    May 25 17:55:29 ns postfix/smtp[3529]: AE171BB80F2: to=<[email protected]>, orig_to=<[email protected]>, relay=none, delay=6, status=bounced (mail for mail.bcsolutions.ca loops back to myself)
    May 25 17:55:29 ns postfix/qmgr[3120]: AE171BB80F2: removed
    
    Here's one sent from a remote system
    Code:
    May 25 18:01:04 ns postfix/smtpd[3687]: connect from shawidc-mo1.cg.shawcable.net[24.71.223.10]
    May 25 18:01:04 ns postfix/smtpd[3687]: 9C711BB80F0: client=shawidc-mo1.cg.shawcable.net[24.71.223.10]
    May 25 18:01:04 ns postfix/cleanup[3691]: 9C711BB80F0: message-id=<[email protected]>
    May 25 18:01:04 ns postfix/qmgr[3120]: 9C711BB80F0: from=<[email protected]>, size=1286, nrcpt=1 (queue active)
    May 25 18:01:04 ns postfix/smtpd[3687]: disconnect from shawidc-mo1.cg.shawcable.net[24.71.223.10]
    May 25 18:01:04 ns postfix/smtp[3692]: 9C711BB80F0: to=<[email protected]>, orig_to=<[email protected]>, relay=none, delay=0, status=bounced (mail for mail.bcsolutions.ca loops back to myself)
    May 25 18:01:05 ns postfix/cleanup[3691]: 00852BB80F2: message-id=<[email protected]>
    May 25 18:01:05 ns postfix/qmgr[3120]: 00852BB80F2: from=<>, size=3113, nrcpt=1 (queue active)
    May 25 18:01:05 ns postfix/qmgr[3120]: 9C711BB80F0: removed
    May 25 18:01:06 ns postfix/smtp[3695]: 00852BB80F2: to=<[email protected]>, relay=idcmail.shaw.ca[64.59.134.8], delay=1, status=sent (250 2.5.0 Ok.)
    May 25 18:01:06 ns postfix/qmgr[3120]: 00852BB80F2: removed
    May 25 18:01:07 ns postfix/smtpd[3687]: connect from shawidc-mo1.cg.shawcable.net[24.71.223.10]
    May 25 18:01:07 ns postfix/smtpd[3687]: 6462EBB80F0: client=shawidc-mo1.cg.shawcable.net[24.71.223.10]
    May 25 18:01:07 ns postfix/cleanup[3691]: 6462EBB80F0: message-id=<[email protected]>
    May 25 18:01:07 ns postfix/qmgr[3120]: 6462EBB80F0: from=<>, size=4738, nrcpt=1 (queue active)
    May 25 18:01:07 ns postfix/smtpd[3687]: disconnect from shawidc-mo1.cg.shawcable.net[24.71.223.10]
    May 25 18:01:12 ns postfix/smtp[3692]: 6462EBB80F0: to=<[email protected]>, orig_to=<[email protected]>, relay=none, delay=5, status=bounced (mail for mail.bcsolutions.ca loops back to myself)
    May 25 18:01:12 ns postfix/qmgr[3120]: 6462EBB80F0: removed
    And finally, here's the bounce message derived from this email
    Code:
    This is the Postfix program at host mail.bcsolutions.ca.
    
    I'm sorry to have to inform you that your message could not
    be delivered to one or more recipients. It's attached below.
    
    For further assistance, please send mail to <postmaster>
    
    If you do so, please include this problem report. You can
    delete your own text from the attached returned message.
    
                     The Postfix program
    
    <[email protected]> (expanded from <[email protected]>): mail for
        mail.bcsolutions.ca loops back to myself
    
     
    Last edited: May 26, 2006
  14. godsdog

    godsdog New Member

    Well, I guess if I wanna have email back up for tomorow, I best get backin' up and reinstalling. I'll definitly know better next time than to go messing around with DNS settings for virtual domains on a server I can't afford having downtime on.
     
  15. falko

    falko Super Moderator ISPConfig Developer

    Please append mail.bcsolutions.ca to /etc/postfix/local-host-names and restart Postfix.
     
  16. godsdog

    godsdog New Member

    I'm starting to think that this problem might be worthy of a bug report. All I did was take an existing domain that I was using on my local server running the latest upgrade of ISP Config and change it's records to point to a new address. I also set up it's mail config to external. I don't have a test server to duplicate results and I've reinstalled from scratch so...
    BTW: I ran a backup of all domains checked everything except for logs, and not 1 single peice of mail was xfered from my IMAP users...Are there improvements slated for the backup function? Maybe I should stop complaining...maybe plesk spoiled me...(btw: I forgot to backup ispconfig's own database...lol you probably hear from people like me all the time.) Oh well, I'm totally commited to ispconfig now and am planning on converting other companies I admin for.
     
  17. falko

    falko Super Moderator ISPConfig Developer

    I don't think it's a bug.

    How did you do the backup?
    Do you use Maildir or mbox?
     

Share This Page