e-mail client doesn't recieve e-mail

Dear friends,
can you help me with this issue.

I have created e-mail only user on my webserver. Send some test e-mail to it. When I log in through webmail, mail is recieved in inbox.

I’ve tryed to setup my e-mail clients ( XP/Outlook & Ubuntu/Evolution ) to recieve e-mail, and I got into few problems.

1st. username must be user.server.net ( even if documentation states it can be user@server.net or just user.server )

2nd. when I managed to log in without -ERR I just don’t get e-mail. All of them are still online visibe ( read or unread it doesn’t matter )

What could be problem ?
Tnx.<br><br>Post edited by: eOne, at: 2009/04/03 07:11

for your first question, you need to set it in the server template under Mail for domain.
At the bottom of that page is the option "Format for usernames that include domain"
there you can set it to user@domain

for the second. Im not sure but Im guessing this has to do with your email client.

thank you ronald. I’ll check #1.

As for #2 … I don’t think it can be issue with both mail clients ( Outlook and Evolution ) and two different OS ( WinXP / Ubuntu-Linux )
I mean… it can but I don’t really think so.

I am more affraid that I have or have not set up something on my server right.

It should be easy … add new user, setup mail.server.net as POP/SMTP and uname and passwords same as webmail … that should do.

I came accross some posts mentioning folder mixups but that was too much for newbie.

We need to see the maillog or mail.log entries from when a problem occurs (either with delivery, if you think the problem is that mail isn’t being delivered correctly, or during pickup if you think the problem is with POP/IMAP).

BTW-I suspect the problem is with delivery rather than pickup. It almost always is.

please explain how can I get that ?

For me the problem is there is no problem :slight_smile: Mail clients do not report any error. Just close down. Almost like they are checking wrong place/folder/file…

Apr 3 19:45:20 ns1 postfix/qmgr[8505]: D3073C4805A: removed
Apr 3 19:45:36 ns1 dovecot: pop3-login: Disconnected: rip=127.0.0.1, lip=127.0.0.1, secured
Apr 3 19:45:47 ns1 dovecot: pop3-login: Disconnected: rip=127.0.0.1, lip=127.0.0.1, secured
Apr 3 19:45:50 ns1 postfix/smtpd[12215]: disconnect from mail-fx0-f172.google.com[209.85.220.172]
Apr 3 19:45:56 ns1 dovecot: pop3-login: Disconnected: rip=127.0.0.1, lip=127.0.0.1, secured
Apr 3 19:46:26 ns1 dovecot: pop3-login: Disconnected: rip=127.0.0.1, lip=127.0.0.1, secured
Apr 3 19:47:34 ns1 dovecot: pop3-login: Login: user=<ivan.podrug.net>, method=PLAIN, rip=78.3.126.170, lip=78.46.96.106
Apr 3 19:47:34 ns1 dovecot: POP3(ivan.podrug.net): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
Apr 3 19:47:41 ns1 dovecot: pop3-login: Login: user=<ivan.podrug.net>, method=PLAIN, rip=78.3.126.170, lip=78.46.96.106
Apr 3 19:47:41 ns1 dovecot: POP3(ivan.podrug.net): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
Apr 3 19:48:12 ns1 dovecot: pop3-login: Login: user=<ivan.podrug.net>, method=PLAIN, rip=78.3.126.170, lip=78.46.96.106
Apr 3 19:48:12 ns1 dovecot: POP3(ivan.podrug.net): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
Apr 3 19:49:10 ns1 postfix/anvil[12217]: statistics: max connection rate 1/60s for (smtp:209.85.220.172) at Apr 3 19:45:20
Apr 3 19:49:10 ns1 postfix/anvil[12217]: statistics: max connection count 1 for (smtp:209.85.220.172) at Apr 3 19:45:20
Apr 3 19:49:10 ns1 postfix/anvil[12217]: statistics: max cache size 1 at Apr 3 19:45:20
Apr 3 19:50:37 ns1 dovecot: imap-login: Login: user=<ivan.podrug.net>, method=PLAIN, rip=78.3.126.170, lip=78.46.96.106
Apr 3 20:01:29 ns1 dovecot: pop3-login: Login: user=<ivan.podrug.com>, method=PLAIN, rip=85.114.54.60, lip=78.46.96.106
Apr 3 20:01:29 ns1 dovecot: POP3(ivan.podrug.com): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
Apr 3 20:08:17 ns1 dovecot: IMAP(ivan.podrug.net): Disconnected: Mailbox is in inconsistent state, please relogin.
Apr 3 20:01:11 ns1 dovecot: Time just moved backwards by 963 seconds. This might cause a lot of problems, so I’ll just kill myself now. http://wiki.dovecot.org/TimeMovedBackwards

So, Dovecot is committing suicide because your clock is set horribly wrong. This explains the “sometimes doesn’t work” bit. So, fix your clock. I’m guessing your hardware clock is way off, you have ntpd running, and it’s attempting to sync reality with what your system booted with. You need accurate time on a mail server.

The other issue is that you have no mail. So, mail is not being delivered. It could be looking in the wrong place, but unless you’ve modified your dovecot.conf to break it, it’s unlikely.

So, after you fix time, send us the log from an attempt to send mail to your system.

yes you are right. It wasn’t about clock. That I “broke” later.
I changed times to be precise as both (system and hardware) were late 5 mins … so I changed it to be right. Now … what do I need to do to fix it please?

As for "non existing mail" that could be because I used to delete them and create again on two domains …

ok here’s what I did.

I created mail account for you to test.

demouser@podrug.com
pwd: test

you can access it through http://webmail.podrug.com

I have tryed to connect to it from outlook and now it doesn’t even connect. Ping however shows that mail.podrug.com server is running.

Apr 3 23:50:10 ns1 postfix/smtpd[18360]: A893DC4805F: client=78-3-126-170.adsl.net.t-com.hr[78.3.126.170]
Apr 3 23:50:10 ns1 postfix/cleanup[18366]: A893DC4805F: message-id=<20090403215010.A893DC4805F@ns1.podrug.net>
Apr 3 23:50:10 ns1 postfix/qmgr[8505]: A893DC4805F: from=<demouser@podrug.com>, size=697, nrcpt=1 (queue active)
Apr 3 23:50:10 ns1 postfix/smtpd[18360]: disconnect from 78-3-126-170.adsl.net.t-com.hr[78.3.126.170]
Apr 3 23:50:11 ns1 postfix/local[18367]: A893DC4805F: to=<demouser.podrug.com@ns1.podrug.net>, orig_to=<demouser@podrug.com>, relay=local, delay=0.48, delays=0.26/0/0/0.22, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME)
Apr 3 23:50:11 ns1 postfix/qmgr[8505]: A893DC4805F: removed
Apr 3 23:50:24 ns1 postfix/smtpd[18360]: connect from 78-3-126-170.adsl.net.t-com.hr[78.3.126.170]
Apr 3 23:50:24 ns1 postfix/smtpd[18360]: 5A636C4805F: client=78-3-126-170.adsl.net.t-com.hr[78.3.126.170]
Apr 3 23:50:24 ns1 postfix/cleanup[18366]: 5A636C4805F: message-id=<20090403215024.5A636C4805F@ns1.podrug.net>
Apr 3 23:50:24 ns1 postfix/qmgr[8505]: 5A636C4805F: from=<demouser@podrug.com>, size=697, nrcpt=1 (queue active)
Apr 3 23:50:24 ns1 postfix/smtpd[18360]: disconnect from 78-3-126-170.adsl.net.t-com.hr[78.3.126.170]
Apr 3 23:50:24 ns1 postfix/local[18367]: 5A636C4805F: to=<demouser.podrug.com@ns1.podrug.net>, orig_to=<demouser@podrug.com>, relay=local, delay=0.47, delays=0.26/0/0/0.21, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME)
Apr 3 23:50:24 ns1 postfix/qmgr[8505]: 5A636C4805F: removed
Apr 3 23:50:35 ns1 postfix/smtpd[18360]: connect from 78-3-126-170.adsl.net.t-com.hr[78.3.126.170]
Apr 3 23:50:35 ns1 postfix/smtpd[18360]: 8EA1BC4805F: client=78-3-126-170.adsl.net.t-com.hr[78.3.126.170]
Apr 3 23:50:35 ns1 postfix/cleanup[18366]: 8EA1BC4805F: message-id=<20090403215035.8EA1BC4805F@ns1.podrug.net>
Apr 3 23:50:35 ns1 postfix/qmgr[8505]: 8EA1BC4805F: from=<demouser@podrug.com>, size=697, nrcpt=1 (queue active)
Apr 3 23:50:35 ns1 postfix/smtpd[18360]: disconnect from 78-3-126-170.adsl.net.t-com.hr[78.3.126.170]
Apr 3 23:50:35 ns1 postfix/local[18367]: 8EA1BC4805F: to=<demouser.podrug.com@ns1.podrug.net>, orig_to=<demouser@podrug.com>, relay=local, delay=0.45, delays=0.26/0/0/0.2, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME)
Apr 3 23:50:35 ns1 postfix/qmgr[8505]: 8EA1BC4805F: removed

Me looking at an empty mailbox is not a useful debugging tool.

So, this shows us that mail is being delivered, or at least handed off to procmail:

to=<demouser.podrug.com@ns1.podrug.net>, orig_to=<demouser@podrug.com>, relay=local, delay=0.45, delays=0.26/0/0/0.2, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME)

So, check the procmail.log and see if it made it past the spam/AV filter and got to a mailbox.

If so, then it does appear Dovecot is looking in the wrong place. Surprising, but not impossible. Did you not use the install.sh automated install script (which sets up mail, both delivery and retrieval, automatically, among many other things)?

What’s the default_mail_env setting in dovecot.conf set to?

eOne, I just logged into your mail server and sent an email to my hotmail account with no problems, it got there just fine. The only thing I did a little different was that I logged in with the user name demouser.podrug. Perhaps your issue relates to ronald’s post regarding templates.

Joe: It’s not empty. there are 5 e-mails inside. 4 of them Outlook test messages.

mdtiberi: thank you … I did the same. webmail shows e-mail is valid and there are e-mails inside. Webmail is working.

I cannot connect with e-mail client like Outlook or Evolution. That is my issue. So, it even recieves mails form outlook using itself ??? Why doens’t download messages then ?

sorry Joe, I didn’t do instalation. It was provided to me by my friend which is not available to me. So … you have lost fish in this deep sea :slight_smile:

I’ll try to find thing you are asking me to :slight_smile: Tnx 4 Ure patience

Location for users’ mailboxes. This is the same as the old default_mail_env

#mail_location =
mail_location = maildir:~/Maildir

any help ?

DEFAULT SETTING:
Inbox and folders in ~/Maildir
should be changed INTO:
Inbox under /var/mail, folders in ~/mail

Please Joe if you could delete those logs I’ve posted … they are not of importance.

Thank you very much for your help!

Joe wrote:

Me looking at an empty mailbox is not a useful debugging tool.

Sorry Joe, I posted reply here and wasn’t fast enough to fill in some e-mails. Didn’t mean to be rude. I really value your time and effort.

Howdy,

Don’t worry, you won’t offend Joe.

Regarding your logs – this forum is pretty silly, in that it won’t allow us to edit any content after the 2nd post.

After we move to the new site, that should work fine, but at the moment it’s stuck there :slight_smile:
-Eric

Hello Everybody.
We are a new user of Virtualmin.
We have create different user Emails (3)
Until here everything goes ok.
We can send Emails but we can’t receive any one, should we add something in our configuration.

OS : Win xp / hosting : OVH
we use this links:
Server admin: https://www.amsante.com:10000
Webmail: http://webmail.amstante.com

Thank you for your help
msslimani