Link to home
Start Free TrialLog in
Avatar of duncanb7
duncanb7

asked on

Email account on Linux Centos6.4

Dear Experts,

In the past , I used cpanel to create email account , now I gave up to use Cpanel
so that now I need it to set up email by myself. As we know we can create email account when add user account on linux and email address before @ sign that is as same user account name, and that can be shown at /var/spool/mail, and that I can see all email account I created.

Question-1
Now I just create new account by root access and adduser and then see the email account in /etc/spool/mail directory Why I ran the command:  sendmail  -bv mylogin@mysite.com that showed me " failed to verfiy: No such user"? Do I need to other steps to let my new email account up ?

Question-2
I have old email account that I can verfiy its existence by sendemail, but I can not
receive any new  email from the old email account when other remote email yahoo account send email to the old email account. And yahoo email box doesn't have
get any mail sending failure return email when send email to the old account.
How I can check what is wrong with the old email account ?


Question-3, Now I use free SquirrelMail, whether I also need   free package from
MailMan. What is different between them mainly? Or you have better suggestion
for free web email tool for email box , creating email account, monitor all email account
on Linux ?

Please advise

Duncan
ASKER CERTIFIED SOLUTION
Avatar of xterm
xterm

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of duncanb7
duncanb7

ASKER

In other words, my system now look at Cpanel email account I created before
and don't look email account at /var/spool/mail, right ?

That is why I could not sendmail -bv mylogin  (that account at /var/spool/mail) , Right ?

Do you think how I can go back to Unix-account ( leaving out Cpanel email account) ?

Webmin is free or not ?

Duncan
Yes, correct on all of that.  Your email folders are in the path I mentioned earlier in /home, not in /var/spool/mail - those are only local mail accounts (ie. if you type "mail someuser" where someuser is a Unix account that you added, then the mail will end up in /var/spool/mail, but no Internet mail will go there.

I'm not sure if cPanel has an uninstaller that will set your system back to normal, but you will pretty much need to start over either way.

This is why I never recommend to my clients to install it.
yes, Webmin is free.
Just last question before closing this thread

I get one old Cpanel email account, webmaster@mysite.com that
I can receive any email now but other old Cpanel email account,
support@mysite.com could NOT receive any email.

That is because I just put webmaster in httpd.conf  as this

ServerAdmin webmaster@mysite.com , Right ?

Could i put it like this

ServerAdmin webmaster@mysite.com support@mysite.com   ? so that
I could receive email from webmaster@ and support@mysite.com email account


both account are at /home/mylogin/mail/mysite/

my part of httpd.conf
=================
<VirtualHost 110.1.103.68:89>
    ServerName mysite.com
    ServerAlias *.mysite.com
   DocumentRoot /home/mylogin/public_html

<Directory /home/mylogin/public_html>
Options  Includes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>

ServerAdmin webmaster@mysite.com
UseCanonicalName Off
    CustomLog /usr/local/apache/domlogs/mysite.com combined
    CustomLog /usr/local/apache/domlogs/mysite.com-bytes_log "%{%s}t %I .\n%{%s}t %O ."
    ## User mylogin # Needed for Cpanel::ApacheConf
    UserDir enabled mylogin
    <IfModule !mod_disable_suexec.c>
        <IfModule !mod_ruid2.c>
            SuexecUserGroup mylogin mylogin
        </IfModule>
    </IfModule>
    <IfModule mod_ruid2.c>
        RUidGid mylogin mylogin
    </IfModule>
    ScriptAlias /cgi-bin/ /home/mylogin/public_html/cgi-bin/

</VirtualHost>

Open in new window

No, httpd.conf does not have anything to do with email server configuration - that is for the Apache web server.  The value you put in there is what it puts up on the screen for visitors when they get an error page - then it gives a message that says "please contact foo@bar.com and inform them of the error" or something of that nature.
Thanks, I will continue this with new thread and new question

Duncan
For memo only:

There is other answered & related to Mail in EE thread
https://www.experts-exchange.com/questions/28304559/List-all-email-accounts-on-Linux-server.html?anchorAnswerId=39679380#a39679380

For question-2:
The main root cause is by there are two same email name(support) at different website
and at different mail folder, one at mysite.com, other  at  mysite2.com
In Squirrel tools, there is subscrible button to select all mail folder in /home/mylogin/main directory. now it is fixed

Duncan