LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-19-2015, 03:29 AM   #1
luofeiyu
Member
 
Registered: Aug 2015
Posts: 237

Rep: Reputation: Disabled
Can't root receive any email with postfix ?


There are two users : root and debian8 in my system.
The domain name is pengsir.hfi

I fount that root can't receive any email sent to it.
In the console of user debian8 to input:
Code:
    echo 'test' | mail -s 'test' root@localhost
In the console of user root to input:
Code:
    mail
    No mail for root
    cat /var/log/mail.log
Aug 19 15:47:49 pengsir postfix/pickup[3769]: 9F84FF829F: uid=1000 from=<debian8>
Aug 19 15:47:49 pengsir postfix/cleanup[3808]: 9F84FF829F: message-id=20150819074749.9F84FF829F@pengsir.hfi
Aug 19 15:47:49 pengsir postfix/qmgr[3770]: 9F84FF829F: from=debian8@pengsir.hfi, size=287, nrcpt=1 (queue active)
Aug 19 15:47:49 pengsir postfix/local[3810]: 9F84FF829F: to=root@pengsir.hfi, orig_to=root@localhost, relay=local, delay=0.24, delays=0.14/0.01/0/0.1, dsn=2.0.0, status=sent (delivered to command: procmail -a "$EXTENSION")
Aug 19 15:47:49 pengsir postfix/qmgr[3770]: 9F84FF829F: removed

Why the email was removed?

Last edited by luofeiyu; 08-19-2015 at 07:09 PM.
 
Old 08-19-2015, 12:53 PM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by luofeiyu View Post
ehco 'test' | mail -s 'test' root@localhost
ehco? tyop?
Try
Code:
mail -s LQRocks root < /dev/null
then check root mail.
 
Old 08-19-2015, 07:06 PM   #3
luofeiyu
Member
 
Registered: Aug 2015
Posts: 237

Original Poster
Rep: Reputation: Disabled
root@pengsir:/home/debian8# su debian8
debian8@pengsir:~$ mail -s LQRocks root < /dev/null
Null message body; hope that's ok
debian8@pengsir:~$ su root
Password:
root@pengsir:/home/debian8# mail
No mail for root
 
Old 08-20-2015, 08:10 AM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
try
Code:
mail -s LQRocks root@localhost < /dev/null
or how about from root to debian8? w\or w\out @localhost?

I notice that you have several MTAs installed?
https://www.linuxquestions.org/quest...2/#post5408125

You only need one. I choose postfix, personally.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix can't receive email from external tuanhqit Linux - Newbie 2 07-30-2014 09:32 PM
Only receive the email from specific user in postfix unibox Linux - Server 3 12-04-2012 03:46 AM
POSTFIX Email Can't Receive External Email rkibui Linux - Newbie 5 02-22-2009 05:45 AM
POSTFIX Email Can't Receive External Email carlosinfl Linux - Server 2 10-15-2007 06:00 AM
not able to receive email, postfix inq Robin01 Linux - General 6 01-07-2005 07:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration