cannot send any mails using mailx


 
Thread Tools Search this Thread
Operating Systems Linux Debian cannot send any mails using mailx
# 8  
Old 09-13-2006
Well unless you rebuild the aliases database file it won't make any difference either way.

Code:
/usr/sbin/sendmail -bi

However, what results did you have with grepping for root in aliases? If root isn't in /etc/aliases then adding it probably won't change anything.

Hmm, did you check root's home directory to see if there's a .forward file and/or a .procmailrc file? Maybe it's being forwarded somewhere.

Carl
# 9  
Old 09-14-2006
I found only this and I've deleted:
Code:
ext:~# cat .forward
| mailx linux@localhost

but still doesn't work.


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

# 10  
Old 09-14-2006
I've done:
Code:
ext:~# dpkg-reconfigure postfix

and now it seems to work.

p.s
thanks a lot !
# 11  
Old 09-14-2006
Sure, happy to help. I'd be curious as to where all those test messages actually went to. Did you check the linux account's /var/mail/linux mailbox? Either the test messages you've been sending are there or there's a redirect in /etc/mail/aliases or a .forward file that's sending the messages somewhere else.

Basically I hate just pressing that magic "Easy" button and having it work. I'd hunt down where the messages went and then why reconfiguring postfix corrected the problem. Did you rebuild the /etc/aliases file with the sendmail command I used earlier? Perhaps root was being redirected in /etc/aliases and the database wasn't rebuilt after the correction and the postfix reconfiguration also rebuilt the /etc/aliases database file.

See what I mean? Smilie I hate "Easy" buttons Smilie

Carl
# 12  
Old 09-14-2006
I sent a lot of test mails to the root user, but couldn't find them in /var/mail/linux.

I cannot understand,
in a .forward file was: linux@localhost, but linux@localhost didn't get any root mails.

perhaps they were sent to the nirwana...

and I couldn't send any mails from outside to the root user. all mails to the root were denied.

now it works well.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

Mailx command running successfully but no mails received.

Hi, I am working on a HP-UX box. Mailx command running successfully but no mails received. Here is what I am doing rocfm@comhp73 - mailx -s "subject" abc@gmail.com < abc.txt Null message body; hope that's ok rocfm@comhp73 - echo $? 0 rocfm@comhp73 - echo "something" | mailx -v -s... (1 Reply)
Discussion started by: Sunayna
1 Replies

2. IP Networking

Set default return address for all mails sent from mailx

Hi, I have a question about mailx in Red Hat: If I use 'mail userid@mydomain.com -- -f root@mydomain.com', the return mail address will be root@mydomain.com. How can I make all mails sent from this system use root@mydomain.com as return address by default? Thank you in advance! nz (1 Reply)
Discussion started by: aixlover
1 Replies

3. Shell Programming and Scripting

2 mails from mailx command

hi, While using mailx command i am receiving 2 mails with the same content in both the mails.I am attaching a file to the mailx command. In one mail file is coming as attachement and in other attachment is not there. I am using mailx command in this way. echo "Some content" |mailx... (0 Replies)
Discussion started by: arijitsaha
0 Replies

4. Shell Programming and Scripting

mailx- how to delete least of mails

Hi, when i run the mailx command it gives me the least of mails . suppose there are 1- 150 mails and i want to delete 30 to 145 mails . then what command i have to use here? Thanks (6 Replies)
Discussion started by: aish11
6 Replies

5. Shell Programming and Scripting

Mailx: How to send a attachment using mailx command

Hi All, Can anyone please provide the command for sending an mail with attachment using mailx command. Thanks in Advance :) Regards, Siram. (3 Replies)
Discussion started by: Sriram.Vedula53
3 Replies

6. AIX

Not able to send mails

Hi, I am not able to send mails to the recipents. I am using AIX 5.3 Version and using the below command. cat test.log|mail -s "TestMail" user1@mail.com Can you please tell me is there any configurations to be done or is the above command wrong? Thanks & Regards Sheshadri (3 Replies)
Discussion started by: arsheshadri
3 Replies

7. Shell Programming and Scripting

mailx is not working outside e-mails

HI i wrote schell script to send e-mail automatically. it works only e-mail for our company.say for example, company name is : abc, example: joe@abc.com every body is receiving with xxx@abc.com (abc.com) if any body from outside of our company like joe@xyz.com.(xyz.com) are not... (3 Replies)
Discussion started by: raosurya
3 Replies

8. Shell Programming and Scripting

Delete all mails using mailx or mail

Hi , ?im a newbie using shell scripts. Is there any way to write a script that will delete all mails from my mailbox using mail or mailx command Thanks for your time E. Festas (2 Replies)
Discussion started by: ninjanesto
2 Replies

9. UNIX for Dummies Questions & Answers

Does Mailx store the mails sent

Hi, I use mailx in a shell script to mail a message to the users. i wanted to know if mailx stores the mail that it sends? for eg in microsoft outlook all mails sent get stored in the outbox. is there such a facility with mailx? if not how i can do this so that for every mail sent, a backup... (6 Replies)
Discussion started by: munira_johar
6 Replies

10. Solaris

how to send mails to users on exchange server from sendmail/solaris(mailx)

Hi, Can anyone pls. tell me how to access Active directory from solaris. I am looking at solution by which I can send mail notification from the logs generated by scripts, to the users on Exchange server. I am trying for a Perl-LDAP module , but don't realy know how to go for it (5 Replies)
Discussion started by: ganeshh
5 Replies
Login or Register to Ask a Question