Ask Question Forum:
Model Library:2025-02-08 Updated:A.I. model is online for auto reply question page
C
O
M
P
U
T
E
R
2
8
Show
#
ASK
RECENT
←
- Underline
- Bold
- Italic
- Indent
- Step
- Bullet
- Quote
- Cut
- Copy
- Paste
- Table
- Spelling
- Find & Replace
- Undo
- Redo
- Link
- Attach
- Clear
- Code
Below area will not be traslated by Google,you can input code or other languages
Hint:If find spelling error, You need to correct it,1 by 1 or ignore it (code area won't be checked).
X-position of the mouse cursor
Y-position of the mouse cursor
Y-position of the mouse cursor
Testcursor
caretPos
Attachment:===
Asked by duncanb7
at 2024-11-26 12:35:06
Point:500 Replies:12 POST_ID:828830USER_ID:11059
Topic:
Linux;Email Software;Email Servers
How I can list out all email account that had been set on my Linux server ?
all email account address are saved in one file, where ?
(Note: I had used Cpanel before , now I created email account with root access
in this year)
I check at /etc/aliases that I could not understand which one is email account or
not. Please help to explain the file in detail ?
Please help and advise that I 'm appreciated
Duncan
aliases file at /etc
=================
all email account address are saved in one file, where ?
(Note: I had used Cpanel before , now I created email account with root access
in this year)
I check at /etc/aliases that I could not understand which one is email account or
not. Please help to explain the file in detail ?
Please help and advise that I 'm appreciated
Duncan
aliases file at /etc
=================
## Aliases in this file will NOT be expanded in the header from# Mail, but WILL be visible over networks or from /bin/mail.## >>>>>>>>>> The program "newaliases" must be run after# >> NOTE >> this file is updated for any changes to# >>>>>>>>>> show through to sendmail.## Basic system aliases -- these MUST be present.mailer-daemon: postmasterpostmaster: root# General redirections for pseudo accounts.bin: rootdaemon: rootadm: rootlp: rootsync: rootshutdown: roothalt: rootmail: rootnews: rootuucp: rootoperator: rootgames: rootgopher: rootftp: rootnobody: rootradiusd: rootnut: rootdbus: rootvcsa: rootcanna: rootwnn: rootrpm: rootnscd: rootpcap: rootapache: rootwebalizer: rootdovecot: rootfax: rootquagga: rootradvd: rootpvm: rootamanda: rootprivoxy: rootident: rootnamed: rootxfs: rootgdm: rootmailnull: rootpostgres: rootsshd: rootsmmsp: rootpostfix: rootnetdump: rootldap: rootsquid: rootntp: rootmysql: rootdesktop: rootrpcuser: rootrpc: rootnfsnobody: rootingres: rootsystem: roottoor: rootmanager: rootdumper: rootnewsadm: newsnewsadmin: newsusenet: newsftpadm: ftpftpadmin: ftpftp-adm: ftpftp-admin: ftpwww: webmasterwebmaster: rootnoc: rootsecurity: roothostmaster: rootinfo: postmastermarketing: postmastersales: postmastersupport: postmaster# trap decode to catch security attacksdecode: root# Person who should get root's mail#root: marc 1:2:3:4:5:6:7:8:9:10:11:12:13:14:15:16:17:18:19:20:21:22:23:24:25:26:27:28:29:30:31:32:33:34:35:36:37:38:39:40:41:42:43:44:45:46:47:48:49:50:51:52:53:54:55:56:57:58:59:60:61:62:63:64:65:66:67:68:69:70:71:72:73:74:75:76:77:78:79:80:81:82:83:84:85:86:87:88:89:90:91:92:93:94:95:96:
Author: duncanb7 replied at 2024-11-26 14:56:45
I will continue this with new thread and new question
Thanks for all of your reply
have a nice working day
Duncan
Thanks for all of your reply
have a nice working day
Duncan
Assisted Solution
Expert: xterm replied at 2024-11-26 14:52:02
125 points EXCELLENT
/etc/aliases is part of sendmail - Exim doesn't use it.
It allows you to direct mail for certain names that don't actually have accounts on the system to different places.
So if your name was John Doe, you could create your account jdoe in Unix, and then put the following in /etc/aliases:
johndoe: jdoe
johnd: jdoe
doe: jdoe
Then all the mail that gets sent to those incorrect addresses will still get delivered to the main jdoe account.
It allows you to direct mail for certain names that don't actually have accounts on the system to different places.
So if your name was John Doe, you could create your account jdoe in Unix, and then put the following in /etc/aliases:
johndoe: jdoe
johnd: jdoe
doe: jdoe
Then all the mail that gets sent to those incorrect addresses will still get delivered to the main jdoe account.
Author: duncanb7 replied at 2024-11-26 13:59:56
xterm, last question
what is /etc/aliases for or related to Mail ?
what is /etc/aliases for or related to Mail ?
Expert: xterm replied at 2024-11-26 13:43:58
See my reply in your other thread. cPanel will probably have to be uninstalled completely and the system reverted back to how it was. You might have to Google that one and see how other people got rid of theirs.
Personally, I would do a fresh installation of CentOS and start over.
Personally, I would do a fresh installation of CentOS and start over.
Author: duncanb7 replied at 2024-11-26 13:40:08
yes, it is email account I created in Cpanel
Now
1-Some is at /home/mycpanel-email-account/mail/
2-Some is at /var/spool/main (this is unix adduser account)
Item 1 can be verified by sendmail but item-2 can not be verified
How Exim can use for normal unix adduser account not just by Cpanel ?
Now
1-Some is at /home/mycpanel-email-account/mail/
2-Some is at /var/spool/main (this is unix adduser account)
Item 1 can be verified by sendmail but item-2 can not be verified
How Exim can use for normal unix adduser account not just by Cpanel ?
Assisted Solution
Expert: xterm replied at 2024-11-26 13:33:16
125 points EXCELLENT
Exim is your mail server. Postfix and sendmail are just two other different types of mail servers - they're all fine, but cPanel usually sets up Exim by default, and did in this case.
Your email accounts can be found here:
/home/<username that you set up for your domain>/mail/<your domain name>
Your email accounts can be found here:
/home/<username that you set up for your domain>/mail/<your domain name>
Author: duncanb7 replied at 2024-11-26 13:19:40
ps ax |grep exim
684 ? Ss 0:00 /usr/sbin/exim -bd -q1h
12343 pts/3 D+ 0:00 grep exim
ps ax |grep postfix
12347 pts/3 S+ 0:00 grep postfix
ps -aux |grep sendmail
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.8/FAQ
mylogin 12349 0.0 0.0 6300 192 pts/3 R+ 05:18 0:00 grep sendmail
there is NO postfix, and i can run sendmail. Could you brief the different between them ?
Be reminded : I had no longer to use Cpanel more than 2 years
684 ? Ss 0:00 /usr/sbin/exim -bd -q1h
12343 pts/3 D+ 0:00 grep exim
ps ax |grep postfix
12347 pts/3 S+ 0:00 grep postfix
ps -aux |grep sendmail
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.8/FAQ
mylogin 12349 0.0 0.0 6300 192 pts/3 R+ 05:18 0:00 grep sendmail
there is NO postfix, and i can run sendmail. Could you brief the different between them ?
Be reminded : I had no longer to use Cpanel more than 2 years
Author: duncanb7 replied at 2024-11-26 13:15:11
I also try /var/spool/mail/, it just show account created by adduser
and some is not shown that might be caused it was created by cpanel before
DO you think so ?
What is aliases file for ?
Why those account shown /var/spool/mail can NOT be verified
by sendmail -bv mylogin@mysite.com ? it always reports
"fail to verify : no such users"
and some is not shown that might be caused it was created by cpanel before
DO you think so ?
What is aliases file for ?
Why those account shown /var/spool/mail can NOT be verified
by sendmail -bv mylogin@mysite.com ? it always reports
"fail to verify : no such users"
Expert: xterm replied at 2024-11-26 13:13:24
SquirrelMail is just the web-based interface to view mails that have already come in - it's not your MTA (message transfer agent, AKA actual mail server software)
You are probably using Exim by default with cPanel.
Please run these 3 commands and let me know what they return:
ps ax | grep exim
ps ax | grep postfix
ps ax | grep sendmail
You are probably using Exim by default with cPanel.
Please run these 3 commands and let me know what they return:
ps ax | grep exim
ps ax | grep postfix
ps ax | grep sendmail
Author: duncanb7 replied at 2024-11-26 13:01:54
yes I can less /etc/passwd to see all of my account but it doesn't
show some hidden email account that is why I am asking this thread
and use sendmail -bv mylogin@mysite.com is showing "fail to verify:
no such user) but the mylogin is shown by "less /etc/passwd"
(Suppose email address before @sign is exactly same as user account
by adduser, Right ?)
I am using SquirrelMail now and I see there is mailman stuff in my cpanel
3rdpatry directory that I had no longer to use it in cpanel since it's expired
Duncan
show some hidden email account that is why I am asking this thread
and use sendmail -bv mylogin@mysite.com is showing "fail to verify:
no such user) but the mylogin is shown by "less /etc/passwd"
(Suppose email address before @sign is exactly same as user account
by adduser, Right ?)
I am using SquirrelMail now and I see there is mailman stuff in my cpanel
3rdpatry directory that I had no longer to use it in cpanel since it's expired
Duncan
Assisted Solution
Expert: Luxana replied at 2024-11-26 12:56:41
125 points EXCELLENT
Have you tried to look into spool directory. That should give you a hint on how many email accounts you might have on your system. Usually the spool directory is located under:
/var/spool/mail/
so simply do :
# ls /var/spool/mail/
/var/spool/mail/
so simply do :
# ls /var/spool/mail/
Accepted Solution
Expert: xterm replied at 2024-11-26 12:52:14
125 points EXCELLENT
If you are using standard Unix accounts which you are adding with the useradd (or adduser) command, then all of them will be in /etc/passwd.
If you are using something different, then let me know how you add users and what mail server software you have, and I'll tell you where to look.
If you are using something different, then let me know how you add users and what mail server software you have, and I'll tell you where to look.