The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > Linux > Debian
.
google unix.com



Debian Debian GNU/Linux is a free distribution of the GNU/Linux operating system.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Not able to send mails arsheshadri AIX 3 10-08-2007 12:04 PM
mailx is not working outside e-mails raosurya Shell Programming and Scripting 3 08-18-2007 01:32 AM
Delete all mails using mailx or mail ninjanesto Shell Programming and Scripting 2 11-07-2006 09:16 AM
Does Mailx store the mails sent munira_johar UNIX for Dummies Questions & Answers 6 05-09-2006 03:08 AM
how to send mails to users on exchange server from sendmail/solaris(mailx) ganeshh SUN Solaris 5 11-18-2005 12:51 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-13-2006
ccc ccc is offline
Registered User
  
 

Join Date: Sep 2006
Posts: 26
howto configure mailx ?

hi

howto configure mailx ?

kind regards
ccc

Last edited by ccc; 09-13-2006 at 09:56 PM..
  #2 (permalink)  
Old 09-13-2006
BOFH BOFH is offline Forum Advisor  
Registered User
  
 

Join Date: Feb 2005
Location: Broomfield, CO
Posts: 406
mailx is already configured once it's installed. What seems to be the problem?

Carl
  #3 (permalink)  
Old 09-13-2006
ccc ccc is offline
Registered User
  
 

Join Date: Sep 2006
Posts: 26
I cannot send any mails to the root user;
Code:
ext:/var/mail#  echo "Message" | mailx -s "this is a test mail" root@localhost
ext:/var/mail# mail
No mail for root
other user get mails without problems.
I have debian sarge stable with postfix installed.
Code:
ext:/# newaliases

ext:/# postmap /etc/aliases
postmap: warning: /etc/aliases, line 2: record is in "key: value" format; is this an alias file?
postmap: warning: /etc/aliases, line 3: record is in "key: value" format; is this an alias file?
postmap: warning: /etc/aliases, line 4: record is in "key: value" format; is this an alias file?
postmap: warning: /etc/aliases, line 5: record is in "key: value" format; is this an alias file?
postmap: warning: /etc/aliases, line 6: record is in "key: value" format; is this an alias file?
postmap: warning: /etc/aliases, line 7: record is in "key: value" format; is this an alias file?
postmap: warning: /etc/aliases, line 8: record is in "key: value" format; is this an alias file?
postmap: warning: /etc/aliases, line 9: record is in "key: value" format; is this an alias file?
postmap: warning: /etc/aliases, line 10: record is in "key: value" format; is this an alias file?
postmap: warning: /etc/aliases, line 11: record is in "key: value" format; is this an alias file?
postmap: warning: /etc/aliases, line 12: record is in "key: value" format; is this an alias file?
postmap: warning: /etc/aliases, line 14: record is in "key: value" format; is this an alias file?

ext:/# postalias /etc/aliases

ext:/# cat /etc/aliases
# /etc/aliases
mailer-daemon: postmaster
postmaster: root
nobody: root
hostmaster: root
usenet: root
news: root
webmaster: root
www: root
ftp: root
abuse: root
noc: root
security: root

ext:/# postconf alias_maps
alias_maps = hash:/etc/aliases

ext:/# /etc/init.d/postfix restart
Stopping mail transport agent: Postfix.
Starting mail transport agent: Postfix.
greetings
cc

Last edited by ccc; 09-13-2006 at 11:51 PM..
  #4 (permalink)  
Old 09-13-2006
BOFH BOFH is offline Forum Advisor  
Registered User
  
 

Join Date: Feb 2005
Location: Broomfield, CO
Posts: 406
Quote:
Originally Posted by ccc
I cannot send any mails to the root user;
Code:
ext:/var/mail#  echo "Message" | mailx -s "this is a test mail" root@localhost
ext:/var/mail# mail
No mail for root
other user get mails without problems.
I have debian sarge stable with postfix installed.
Do a:

Code:
grep root /etc/mail/aliases
I suspect root's mail is going somewhere else.

Carl
  #5 (permalink)  
Old 09-13-2006
ccc ccc is offline
Registered User
  
 

Join Date: Sep 2006
Posts: 26
Code:
ext:/# grep root /etc/mail/aliases
grep: /etc/mail/aliases: No such file or directory
maybe:
Code:
ext:/# grep root /etc/aliases
postmaster: root
nobody: root
hostmaster: root
usenet: root
news: root
webmaster: root
www: root
ftp: root
abuse: root
noc: root
security: root
ext:/#
  #6 (permalink)  
Old 09-13-2006
BOFH BOFH is offline Forum Advisor  
Registered User
  
 

Join Date: Feb 2005
Location: Broomfield, CO
Posts: 406
It might be in /etc/aliases as well depending on how it's installed on debian. I have Mandrake and that's where mine is.

Carl
  #7 (permalink)  
Old 09-13-2006
ccc ccc is offline
Registered User
  
 

Join Date: Sep 2006
Posts: 26
I tried to add:
Code:
root: root
in /etc/aliases, but it doesn't help.
Closed Thread

Bookmarks

Tags
linux, sendmail

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:25 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0