PDA

View Full Version : Email Not Being Received


mojosound
26th February 2006, 18:03
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?

till
26th February 2006, 19:14
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.

mojosound
26th February 2006, 19:19
The MX records are fine. I do not know where to lok for the error logs.

till
26th February 2006, 19:22
The logs are in the directory: /var/log/

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

mojosound
26th February 2006, 19:49
I am getting this in the mail info file:
Feb 26 13:38:21 cjt-design-server postfix/smtp[4526]: BF9B61AEB0D: to=<chris@cjt-design.com>, 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.

till
26th February 2006, 20:07
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.

falko
26th February 2006, 20:09
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.

mojosound
26th February 2006, 20:17
Thanks. Now is working.

cpcpy
27th February 2006, 14:35
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 web7_user1@sub1.example2.com and got the following error:

<web7_user1@mail.example.com> (expanded from
<web7_user1@sub1.example2.com>): 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

falko
27th February 2006, 23:07
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 (?)
What's the output of hostname and hostname -f? What's the output of dig -x <your_public_IP_address>?


3) i tried to send a mail to web7_user1@sub1.example2.com and got the following error:

<web7_user1@mail.example.com> (expanded from
<web7_user1@sub1.example2.com>): mail for
mail.example.com loops back to myself
Put mail.example.com at the end of /etc/postfix/local-host-names and restart Postfix.


5) do i need to define a MX record for example2.com?
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.

cpcpy
28th February 2006, 03:42
What's the output of hostname


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


and hostname -f?


gives me:
hostname: Unknown host


What's the output of dig -x <your_public_IP_address>?



;; 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




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


ok, now i can receive email, but i cannot send out...
probably because my hostname and fqdn are not set properly...

falko
28th February 2006, 09:54
Can you post the real output instead of placeholders?

cpcpy
28th February 2006, 11:37
Can you post the real output instead of placeholders?

==========================
$ 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

falko
28th February 2006, 19:00
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

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...