Qmail Error #5.4.6

Discussion in 'PSA 2.5 'How Do I' Questions' started by Rainman, Jul 15, 2002.

  1. Rainman

    Rainman Guest

    I am running PSA 2.5 and used FrontPage to create a site that has a "contact us" form. The form results are set to send an email to recipient@domain.com, but it doesn't work.

    When I look at the maillog, I can see the following:
    Jul 15 16:57:31 ns qmail: 1026766651.692081 bounce msg 1384944 qp 480
    Jul 15 16:57:31 ns qmail: 1026766651.692177 end msg 1384944
    Jul 15 16:57:31 ns qmail: 1026766651.692196 new msg 1384655
    Jul 15 16:57:31 ns qmail: 1026766651.692217 info msg 1384655: bytes 1883 from <#@[]> qp 480 uid 2522
    Jul 15 16:57:31 ns qmail: 1026766651.798874 starting delivery 25348: msg 1384655 to remote postmaster@ns.awts.com
    Jul 15 16:57:31 ns qmail: 1026766651.798945 status: local 0/10 remote 1/20
    Jul 15 16:57:31 ns qmail: 1026766651.805648 delivery 25348: failure: Sorry._Although_I'm_listed_as_a_best-preference_MX_or_A_for_that_host,/it_isn't_in_my_control/locals_file,_so_I_don't_treat_it_as_local._(#5.4.6)/
    Jul 15 16:57:31 ns qmail: 1026766651.805799 status: local 0/10 remote 0/20
    Jul 15 16:57:31 ns qmail: 1026766651.805821 triple bounce: discarding bounce/1384655
    Jul 15 16:57:31 ns qmail: 1026766651.805840 end msg 1384655

    It works fine for other domains on this server. The only difference is that they have their own (remote) email server. I have the DNS configured to point their email to their server's IP address, and they get normal email fine.

    Can anyone help me fix this problem? I don't understand the error message.

    Thanks!!!
     
  2. jimroe

    jimroe Guru

    Messages:
    2,067
    Control Locals file

    Look at your current locals file (/var/qmail/control in RPM install, /usr/local/psa/qmail/control in standard install). if all you have there is:

    localhost

    then try adding the name of the server itself to that file so you have:

    localhost
    ns1.mydomain.com

    or whatever the name of the server really is. If you're not 100% sure what the name of the server is, run the shell command "hostname" - the output is the server's name. This should fix this problem - it has for me on 2 different servers with that error.
     
  3. António@

    António@ Kilo Poster

    Messages:
    35
    Can you post your DNS configuration to that domain?
     
  4. jimroe

    jimroe Guru

    Messages:
    2,067
    DNS configuration

    For security reasons I'd rather not post the actual DNS records for my server, but here's the concept:

    1. The server is host to mydomain.com
    2. The authoritative DNS servers for mydomain.com are ns1.mydomain.com and ns2.mydomain.com, registered with the registrar for mydomain.com
    3. The DNS setup for Plesk has 2 NS records for mydomain.com - one pointing to ns1.mydomain.com and one pointing to ns2.mydomain.com.
    4. There is an A record for ns1.mydomain.com and an A record for ns2.mydomain.com
    5. There is an A record for mail.mydomain.com (I don't like to use a CNAME for a mail server so I changed my server's template)
    6. There is an MX record for the domain, listing mail.mydomain.com as the mail server

    The important thing in the control locals file is that the server must be able to resolve the name you add under localhost to the IP address of the server itself.
     
  5. António@

    António@ Kilo Poster

    Messages:
    35
    I think this is what you need:
    DNS:

    thedomain.com. NS dns1.dns.com.
    thedomain.com. NS dns1.dns.com.
    thedomain.com. A 192.168.10.42
    mail.thedomain.com. A 192.168.10.42
    mail2.thedomain.com. A (remote IP of their mail server)
    ftp.thedomain.com. CNAME thedomain.com.
    www.thedomain.com. CNAME thedomain.com.
    webmail.thedomain.com. CNAME thedomain.com.
    thedomain.com. MX 10 mail2.thedomain.com. (remote mail server)
    thedomain.com. MX 20 mail.thedomain.com.
    192.168.10.42/24 PTR thedomain.com.

    Go to shell

    pico -w /usr/local/psa/qmail/control/rcpthosts
    remove thedomain.com from that file
    save and exit
    /usr/local/psa/qmail/control/virtualdomains
    remove thedomain.com from that file
    save and exit

    stop and start qmail or psa and test.
     
  6. matt.simpson

    matt.simpson Guru

    Messages:
    932
    I don't know what in the world this is talking about:

    Make sure that in the Plesk control panel under SERVER > MAIL that you have 127.0.0.1 / 24 setup as a White listed IP. That way, your mail server won't reject the message sent from localhost.

    Give that a try.

    ~matt
     
  7. António@

    António@ Kilo Poster

    Messages:
    35
    The mail server is on another box!
     

Share This Page