Email Not Being Received

Discussion in 'Installation/Configuration' started by mojosound, Feb 26, 2006.

  1. mojosound

    mojosound New Member

    I am running mandriva 2006 perfect setup. I have added squirelmail as a webmail client by installing the rpm.. I don't know if this is what seemed to break postfix, but I can no longer receive any mail. By this I mean that the mail client (thunderbird, ispconfig webmail, squirrelmail, etc.) always says that there is no mail on the server. This goes for any domain I have setup. I was recieving mail yesterday. All of the correct domains are in the postfix local hosts file and the main.cf is looking there. I can send mail with no problem from any client. Any ideas on where to look?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Please check your mail logs for errors.

    Also check with the command:

    dig MX yourdomain.com

    If the MX records of your domains still point to your server correctly.
     
  3. mojosound

    mojosound New Member

    The MX records are fine. I do not know where to lok for the error logs.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    The logs are in the directory: /var/log/

    The mail logs are normaly named "mail" or "mail.log"
     
  5. mojosound

    mojosound New Member

    I am getting this in the mail info file:
    Feb 26 13:38:21 cjt-design-server postfix/smtp[4526]: BF9B61AEB0D: to=<[email protected]>, relay=cjt-design.com[216.144.242.27], delay=1, status=bounced (mail for cjt-design.com loops back to myself)

    mail is being received for cjt-design-server.com but not cjt-design.com.
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Please add:

    cjt-design.com

    at the end of the file:

    /etc/postfix/local-host-names

    and then restart postfix:

    /etc/init.d/postfix restart.
     
  7. falko

    falko Super Moderator Howtoforge Staff

    Put cjt-design.com at the end of /etc/postfix/local-host-names (where it says that you can make manual entries) and restart Postfix.
     
  8. mojosound

    mojosound New Member

    Thanks. Now is working.
     
  9. cpcpy

    cpcpy New Member

    tag on to this thread:

    1) my main ispconfig domain is example.com
    i'd like to know what i should set inside /etc/postfix/main.cf for these 2 variables:
    myhostname = mail.example.com (?)
    mydomain = example.com (?)

    2) i have another domain sub1.example2.com that is managed by my ispconfig

    3) i tried to send a mail to [email protected] and got the following error:

    <[email protected]> (expanded from
    <[email protected]>): mail for
    mail.example.com loops back to myself

    4) may i know why i got this error, and how to resolve it?

    5) do i need to define a MX record for example2.com?

    thanks
     
    Last edited: Feb 27, 2006
  10. falko

    falko Super Moderator Howtoforge Staff

    What's the output of
    Code:
    hostname
    and
    Code:
    hostname -f
    ? What's the output of
    Code:
    dig -x <your_public_IP_address>
    ?

    Put mail.example.com at the end of /etc/postfix/local-host-names and restart Postfix.

    It's not a must, but it's better. If you don't have an MX record, then mails go to the IP address that example2.com points to.
     
  11. cpcpy

    cpcpy New Member

    it is totally something else which i defined during installation of FC4
    must the hostname be part of the fqdn?

    gives me:
    hostname: Unknown host

    Code:
    ;; QUESTION SECTION:
    ;aaa.bbb.ccc.ddd.in-addr.arpa.     IN      PTR
    
    ;; AUTHORITY SECTION:
    bbb.ccc.ddd.in-addr.arpa. 900     IN      SOA     <DNS2.myisp>. <DNS2.myisp>. 1133150170 21600 1800 1209600 86400
    
    
    ok, now i can receive email, but i cannot send out...
    probably because my hostname and fqdn are not set properly...
     
    Last edited: Feb 28, 2006
  12. falko

    falko Super Moderator Howtoforge Staff

    Can you post the real output instead of placeholders?
     
  13. cpcpy

    cpcpy New Member

    ==========================
    $ hostname
    quatiseasia

    $ hostname -f
    hostname: Unknown host

    $ dig -x 203.81.39.42
    ;; QUESTION SECTION:
    ;42.39.81.203.in-addr.arpa. IN PTR

    ;; AUTHORITY SECTION:
    39.81.203.in-addr.arpa. 10800 IN SOA dns1.pacific.net.sg. hostmaster.pacific.net.sg. 1133150170 21600 1800 1209600 86400

    ==========================

    what is the significance of unix hostname in relation to
    DNS records, mail domain setting etc?

    appreciate your help
     
  14. falko

    falko Super Moderator Howtoforge Staff

    Hm... this doesn't help me. I was hoping for a FQDN that you could use in /etc/postfix/main.cf. Do you have an FQDN in /etc/hosts?

    If not, you can use

    Code:
    myhostname = mail.example.com 
    mydomain = example.com
    in /etc/postfix/main.cf, but it's always better to have a technical domain that you don't use for hosting web sites and email addresses...
     

Share This Page