1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice

QMail started rejecting emails

Discussion in 'Plesk for Linux - 8.x and Older' started by ChipMonk, Nov 23, 2005.

  1. ChipMonk

    ChipMonk Guest

    0
     
    From last night, QMail has started rejecting emails on my server (no matter which domain) i send email with following error:

    What can be the problem?
     
  2. Wyre

    Wyre Guest

    0
     
    It looks like Q-mail doesn't see the domain on the server.

    Try restarting qmail through ssh

    1) login through ssh
    2) su
    3) /usr/local/psa/rc.d/qmail restart

    if this doesn't work, check if the domain exists in the following files:

    /usr/local/psa/qmail/control/rcpthosts

    and

    /usr/local/psa/qmail/control/virtualdomains
     
  3. ChipMonk

    ChipMonk Guest

    0
     

    qmail is not in that folder, btw, i restarted qmail several times, but still the same problem :s
     
  4. ShadowMan@

    ShadowMan@ Guest

    0
     
    Did you check the /var/qmail/control/virtualdomains and /var/qmail/control/rcpthosts files to make sure they contain the domain.tld(s) in question?
     
  5. ChipMonk

    ChipMonk Guest

    0
     
    /var/qmail/control/virtualdomains :: contains NO domains at all

    /var/qmail/control/rcpthosts :: contains ALL the domains
     
  6. Wyre

    Wyre Guest

    0
     
     
  7. ChipMonk

    ChipMonk Guest

    0
     
    now do i have to set it manually?


    if yes, how?
     
  8. rvdmeer

    rvdmeer Guest

    0
     
    Check the directory noticed below:

     
  9. ShadowMan@

    ShadowMan@ Guest

    0
     
    Do you not have a backup of that file?

    The format of the virtualdomains file is:

    domainname.tld:prefix

    where the prefix number is assigned when the domain is created in the Plesk interface.

    This corresponds to the domain ID number in the PSA database.

    If you do not have a backup of the file, then you will need to query the mysql database 'psa' and obtain the list of domains and their ID numbers so you can manually rebuild the virtualdomains file.
     
  10. ChipMonk

    ChipMonk Guest

    0
     
    hmm, okay, now i will try (btw, if i had the backup, i would have restored it :p)
     
  11. ShadowMan@

    ShadowMan@ Guest

    0
     
    Double cross posts... :)

    Yeah, I figured you would have, but it didn't hurt to ask in any case... sometimes we get flustered and whatnot... no offense intended...
     
  12. ChipMonk

    ChipMonk Guest

    0
     
    no offence taken :) u can imagine my frustration that more than 100 domains are down (emailwise)

    one last thing, HOW i can see the PSA database? is there any way to check it through phpMyadmin? or any web based tools?

    I am totally idiot when it comes to DB management.
     
  13. ShadowMan@

    ShadowMan@ Guest

    0
     
    No problem, I too am not a mysql guru, so yes, use phpMyAdmin. Download and install it onto your main hosting domain (password protect the directory is a good thing too). Then look into the 'psa' database, 'domains' table, fields 'id' and 'name'

    Alternatively, you can login to mysql from SSH and do:

    mysql -uadmin -pyouradminpassword
    mysql>use psa
    mysql>select id,name from domains;

    and this will show a list of the id's and domain names. Then to exit mysql, give the command 'quit'. Don't forget to put the semicolon at the end of the 'select' line... and you don't type the 'mysql>' on the 2nd and 3rd lines, that is the mysql prompt...
     
  14. ChipMonk

    ChipMonk Guest

    0
     
    thanx a lot guys :)

    i really apreciate all the help from you all.

    especially shadowman
     
Loading...