Email not going to users mailbox

30 posts / 0 new
Last post
#1 Mon, 09/15/2008 - 06:34
southerns

Email not going to users mailbox

Hi

My email was working fine on my server with multiple virtual domains, except now and then I would get this error.

"refused to talk to me: 501 Syntactically invalid HELO argument(s)"

I was trying to set-up the HELO on my Postfix mail and broke something I guess as now the incoming email does not end up by the users.

The sending email does not seem to get an error so I guess its getting to the server and I can still send mail to other email addresses and that goes through. Even if I used another email like yahoo it still does not come through.

I can log into the email accounts from Webmin so that seems to still be there, but if I send mail to my addresses and then check it tells me no new mail.

Also I noticed Virtualmin wont allow me to enable the primary email account for the users under their email & FTP setting, keeps going back to the NO selected.

Any ideas on what I have messed up?

Post edited by: southerns, at: 2008/09/16 07:58<br><br>Post edited by: southerns, at: 2008/09/16 09:01

Tue, 09/16/2008 - 00:28
southerns

Okay mailboxes are now showing their location on the server
and new mail does end up there
but Squirrel mail and trying to download mail still says no new mail.

Could the problem be with:

Dovecot IMAP/POP3 Server

Tue, 09/16/2008 - 04:31 (Reply to #2)
andreychek

Hello,

Are you &quot;subscribing&quot; to the folders in question?

In Squirrelmail, click Folders, and make sure you're subscribed to all the available folders you wish to see.
-Eric

Tue, 09/16/2008 - 08:18 (Reply to #3)
southerns

No nothing there. under inbox.

But if I log into webmin and go to users email then their is mail there for them

Tue, 09/16/2008 - 16:51 (Reply to #4)
andreychek

Hmm, where are you going in Webmin to see the users email?
-Eric

Tue, 09/16/2008 - 04:39
southerns

Thanx Eric for the input,

but my PC based email also does not see any new emails
and if I log into Webmin and go to the mail users I can see and open
the new mail there.

But it just wont download it. Mail client (Thunderbird)
logs on fine but says no new mail.

Some of my domains other emails have forwarders and they are also not sending the emails on.

Sun, 06/07/2009 - 07:29
southerns

I have just rebooted server (VPS)
All went well except Dind did not start.
It was just a syntax error one to many

};

was doubled up at end of file removed it and now BIND started up okay.

But unfortunately rebooting did not help problem is still here.

I can send mail,
Mail arrives in the users mailboxes
but cant download it to pc or see it in squirrelmail.

was working fine before, except the helo error
which when i tried to change it caused this.

I have totally emptied main.cf and redone it with no luck

main.cf now only containscontains

mynetworks = xx.xx.xxx.xxx xx.xx.xxx.xxx saweb.biz swish.co.za xx.xx.xxx.xxx

virtual_alias_maps = hash:/etc/postfix/virtual

Sun, 06/07/2009 - 07:29
southerns

I have just rebooted server (VPS)
All went well except Dind did not start.
It was just a syntax error one to many

};

was doubled up at end of file removed it and now BIND started up okay.

But unfortunately rebooting did not help problem is still here.

I can send mail,
Mail arrives in the users mailboxes
but cant download it to pc or see it in squirrelmail.

was working fine before, except the helo error
which when i tried to change it caused this.

I have totally emptied main.cf and redone it with no luck

main.cf now only containscontains

mynetworks = xx.xx.xxx.xxx xx.xx.xxx.xxx saweb.biz swish.co.za xx.xx.xxx.xxx

virtual_alias_maps = hash:/etc/postfix/virtual

Tue, 09/16/2008 - 07:59
andreychek

Are you able to view the email in Usermin? You can generally access that using:

https://domain.com:20000

Tue, 09/16/2008 - 21:37
southerns

I login to my Webmin.

Under Virtualmin I select the domain name that I want.

I select Edit Mail and FTP Users

on the list that shows I select the name of the user,

Under edit mail box I click - Email settings to open up is details,

I then click on the location given under - Inbox mail file

(I.E: /var/mail/xxx.xxxx.com)

This gives me a list of emails and there are new ones there(lots of them),I can click on one and view it to.

I was wondering if its not a problem with the system not identifying the read and unread mail on the server properly,
Maybe the email client thinks its all old mail.

But then should SquirrelMail still not show them to me.

Very confusing as it seems to all be working to the point of accessing the emails, somewhere the place its putting the email and the place the system goes to retrieve them for POP/IMAP for the emails is not the same.
Well that is in my humble opinion at least how I see it.

Sun, 09/28/2008 - 13:20 (Reply to #10)
Joe
Joe's picture

<div class='quote'>I then click on the location given under - Inbox mail file

(I.E: /var/mail/xxx.xxxx.com)</div>

This is almost certainly wrong. If you installed Virtualmin using our install script, mail should be going to a Maildir in the users home directory.

How did you install Virtualmin?

--

Check out the forum guidelines!

Tue, 09/16/2008 - 22:11
southerns

I was just curious is it possible that I am logging into a second mail pop on my server.

I usually used ????.com (the straight domain) this is how it defaulted
is it possible that now it is meant to be mail.????.com.
Maybe my this got changed in the mess-up

If so would the user still login and just get an empty mail box if both existed.

or is it not possible,
how can I check what my mail servers address is meant to be.

Wed, 09/17/2008 - 05:32
southerns

It seems that its not sending email either it goes through from my mail client on my PC but nothing arrives on the other side.

Wed, 09/17/2008 - 05:34
southerns

I want to re-install dovecot and Postfix,

will this remove my existing users emails etc

and how do I first uninstall the old versions.

Thu, 09/18/2008 - 09:58
southerns

How can I redo the settings without
loosing the mail on the server

Thu, 09/18/2008 - 19:30 (Reply to #15)
andreychek

Yeah, re-installing isn't likely to resolve the problem you're having now, and you risk losing stuff.

My guess is a few config tweaks may get things working for you though.

I'd be willing to take a look at this if you like.

What I'd need are root login details for your server, as well as login info for a user who can send and receive email.

You can send that information to eric@virtualmin.com -- please include a link to this forum post in the email :-)

Thanks,
-Eric

Fri, 09/19/2008 - 00:46
southerns

Thanx Eric email has been sent

Fri, 09/19/2008 - 21:50
southerns

Hi Eric.

Thanx.
I seem to be getting the Shane email now

I will check out if the others are working later

So what was I missing?

Sat, 09/20/2008 - 05:48 (Reply to #18)
andreychek

Well, your Postfix config needed some work :-)

I actually started with a new one from another CentOS install.

Amongst other things though, it was missing the mailbox_command line:

mailbox_command = /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME

The absence of the above line was why email was going to /var/mail.

I also made sure your hostname was set in there, which would resolve the HELO issues you mentioned.
-Eric

Sat, 09/20/2008 - 22:00
southerns

Thanx Eric.

I got no Idea how a messed it up
as it had been working for about 6 months already.

Thanx Again.

Hope you had a great week-end.

Regards
Shane

Tue, 09/23/2008 - 22:42
southerns

Hi eric.

When I created a new Virtual server I got server creation failed:

this is what it gave said:

Failed to create virtual server : Failed to regenerate table /etc/postfix/virtual:

Wed, 09/24/2008 - 04:31 (Reply to #21)
andreychek

Howdy,

What is the output of:

ls -l /etc/postfix/virtual

And also this command:

postmap /etc/postfix/virtual

Thanks,
-Eric

Wed, 09/24/2008 - 11:59
southerns

Thanx for the help.

Here is the first ones response:

&gt; ls -l /etc/postfix/virtual
-rw-r--r-- 1 root root 16666 Sep 24 03:40 /etc/postfix/virtual

The second one gives no response:
(I ran it twice after the other command as you can see below)

&gt; ls -l /etc/postfix/virtual
-rw-r--r-- 1 root root 16666 Sep 24 03:40 /etc/postfix/virtual
&gt; postmap /etc/postfix/virtual
&gt; postmap /etc/postfix/virtual

Wed, 09/24/2008 - 12:07 (Reply to #23)
andreychek

Okay, that all looks good -- now did it produce a virtual.db file?

ls -l /etc/postfix/virtual.db

Wed, 09/24/2008 - 12:27
southerns

&gt; ls -l /etc/postfix/virtual.db
-rw-r--r-- 1 root root 12288 Sep 24 17:05 /etc/postfix/virtual.db

This domain I am adding is a virtual domain on my VPS.

Wed, 09/24/2008 - 14:59 (Reply to #25)
andreychek

Now that we re-generated the virtual db table, can you add the Virtual Server?

Also, you said the error you received was:

&quot;Failed to create virtual server : Failed to regenerate table /etc/postfix/virtual: &quot;

If you get that again, is there anything after that?
-Eric

Sat, 09/27/2008 - 12:31
southerns

It seemed to register the new domain, but it goes to the wrong domain.
It goes to the main domain.

Have started a new thread here.

http://www.virtualmin.com/forums/help-home-for-newbies/wrong-domain-show...

Mon, 09/29/2008 - 01:22
southerns

Hi Joe
it was installed via the script, was working fine, but I was trying to set up the email HELO part and messed it up.

Eric has got the email working again,
But now when I register a new virtual server it goes to the IP address domain and not to the virtual one.

I have gone to apache and looked at the domains there it seems to be the same as the others except that the name has the .co.za extension included where as the others dropped that.

Could that be the problem?

Thu, 06/27/2019 - 01:25
pgleed

I know this is a very old topic but I am having the same issue, anyone that can assist me?

Thu, 06/27/2019 - 14:14
andreychek

Howdy,

There's quite a few possible causes for an issue like this.

Since this issue is 11 years old -- my suggestion would be to start a new Forum thread, and there, describe the issue you're seeing, including any email logs and/or errors that you're seeing.

Thanks!

-Eric

Topic locked