Can't receive email

Hi, i have a small vps and i recently installed virtualmin pro. I created a virtual server and made two email accounts. I send an email from my google account to both of them to check them out and i get this:

Mail headers View all headers | View raw message From
webmin@primary.livelessons.info To
livelessons@livelessons.info
Date 11/06/2011 00:00 Subject Service monitor : Website www.livelessons.info down on primary.livelessons.info Message contents Monitor on primary.livelessons.info for 'Website www.livelessons.info' has detected that the service has gone down at 11/Jun/2011 00:00

I tried earlier to upload a small pdf file with the images from the beggining of the problem but couldnt upload it.

Thanks in advance Yiorgos Katopodis

Status: 
Active

Comments

Howdy -- Virtualmin has a status manager that tests the various websites running on your server. It checks them every few minutes. If the websites aren't online when it tests that, you would get the message you posted above.

Not being able to receive email sent from Gmail is likely another issue...

I verified that your server is listening for incoming connections. That appears to be working correctly.

What I would recommend is to send yourself another email from Gmail -- and immediately after sending it, look in the email logs on your server. Those are located in /var/log/mail.log. That should show what's happening whenever email is sent to your server.

hi again, thank you for your immediate response.

i have erased the whole server and made a clean start. I installed virtualmin again and made some new test emails. this is what i get from the mail.log file:

Jun 11 02:25:30 primary postfix/sendmail[13754]: fatal: open /etc/postfix/main.cf: No such file or directory Jun 11 02:25:37 primary dovecot: Dovecot v1.2.9 starting up (core dumps disabled) Jun 11 02:25:37 primary dovecot: Generating Diffie-Hellman parameters for the first time. This may take a while.. Jun 11 02:25:37 primary dovecot: Killed with signal 15 (by pid=14932 uid=0 code=kill) Jun 11 02:25:37 primary dovecot: Dovecot v1.2.9 starting up (core dumps disabled) Jun 11 02:25:37 primary dovecot: Generating Diffie-Hellman parameters for the first time. This may take a while.. Jun 11 02:25:37 primary dovecot: Killed with signal 15 (by pid=14970 uid=0 code=kill) Jun 11 02:25:37 primary dovecot: Dovecot v1.2.9 starting up (core dumps disabled) Jun 11 02:25:37 primary dovecot: Generating Diffie-Hellman parameters for the first time. This may take a while.. Jun 11 02:26:29 primary postfix/postfix-script[16720]: starting the Postfix mail system Jun 11 02:26:29 primary postfix/master[16721]: daemon started -- version 2.7.0, configuration /etc/postfix

dont know really what to do!!!

Joe's picture
Submitted by Joe on Fri, 06/10/2011 - 19:43 Pro Licensee

Memory. I'd bet dollars to donuts you're on a VPS system, running under OpenVZ, and it claims you have a lot more memory available than you actually do. ;-)

Or, maybe you just don't have enough memory to run a full mail stack. Ubuntu 10.4 was the first OS to crack the "needs 512M+swap" mark to run the full Virtualmin stack, including mail processing.

You should be getting memory allocation errors rather than these kill signal errors, but the kernel OOM killer might be kicking in, which would lead to this behavior. In any case: I bet you need more RAM. And swap, if you can enable it.

You are right about the vps but i dont know about the memory It is a Hetzner vps that says it has 2 Gb of memory. I will kill again the machine i will leave it blank and i will try with my dedicated with 16GB of ram. I will install the virtualmin on the dedicated. i will let you know

:) yiorgos

Do you have a file on your VPS called "/proc/user_beancounters"? If so, can you paste in it's contents?

Ohh i am very sorry andrey, i have just erased the vps and i installed virtualmin in the dedicated. i will make a test and i will send right on all the informations

:) yiorgos

PS: the dedicated runs too in ubuntu 10.04.02 lts

I think i owe you some dollars for donuts and what ever you want LOL.

Jun 11 03:08:54 primary postfix/master[1564]: daemon started -- version 2.7.0, configuration /etc/postfix Jun 11 03:08:55 primary dovecot: Dovecot v1.2.9 starting up (core dumps disabled) Jun 11 03:09:57 primary dovecot: imap-login: Login: user=, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured Jun 11 03:09:58 primary dovecot: last message repeated 5 times Jun 11 03:09:58 primary dovecot: IMAP(livelessons): Connection closed bytes=72/701 Jun 11 03:09:58 primary dovecot: IMAP(livelessons): Connection closed bytes=70/700 Jun 11 03:09:58 primary dovecot: IMAP(livelessons): Connection closed bytes=134/1545 Jun 11 03:09:58 primary dovecot: IMAP(livelessons): Connection closed bytes=72/701 Jun 11 03:09:58 primary dovecot: IMAP(livelessons): Connection closed bytes=70/701 Jun 11 03:09:58 primary dovecot: IMAP(livelessons): Connection closed bytes=157/1174 Jun 11 03:10:48 primary postfix/smtpd[2023]: connect from mail-yi0-f50.google.com[209.85.218.50] Jun 11 03:10:49 primary postfix/smtpd[2023]: 9452FFE1799: client=mail-yi0-f50.google.com[209.85.218.50] Jun 11 03:10:49 primary postfix/cleanup[2028]: 9452FFE1799: message-id=BANLkTin5Yj45Z+wnEgMgV2RgTkAZfr7oSA@mail.gmail.com Jun 11 03:10:49 primary postfix/qmgr[1577]: 9452FFE1799: from=yiorgoskatopodis@gmail.com, size=2152, nrcpt=1 (queue active) Jun 11 03:10:55 primary postfix/local[2029]: 9452FFE1799: to=livelessons@primary.livelessons.eu, orig_to=livelessons@livelessons.eu, relay=local,$ Jun 11 03:10:55 primary postfix/qmgr[1577]: 9452FFE1799: removed Jun 11 03:11:19 primary postfix/smtpd[2023]: disconnect from mail-yi0-f50.google.com[209.85.218.50]

I can receive email now and you should be right i guess about the supposed ram. Too bad that i cannot discover if they are fooling with me!!! Now i have another problem but i think i ll open a new issue!!!

Thank again Yiorgos Katopodis