Mailx not working on Linux


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Mailx not working on Linux
# 1  
Old 05-08-2017
Mailx not working on Linux

Hi,

Code:
telnet localhost 25
Trying ::1...
Connected to localhost.
Escape character is '^]'.
220 TechBun ESMTP Postfix

This command
Code:
echo "hi" | mail -v me@mycomp.com

does not send mail to my inbox and i get the below output.
Quote:
Mail Delivery Status Report will be mailed to <root>.
Upon investigation i saw this log file tail -f /var/log/maillog logging warning msgs continuously & repeatedly.
Quote:
.....
......
May 8 12:04:26 mycomp postfix/cleanup[9976]: warning: proxy:mysql:/etc/postfix/mysql-virtual_vacation.cf lookup error for "root@mycomp .yourdomain.com"
May 8 12:04:26 mycomp postfix/cleanup[9976]: warning: 7CA9812FD3: recipient_bcc_maps lookup problem
Below are the entries of mysql-virtual_vacation.cf
Code:
[root@techbun ~]# vi /etc/postfix/mysql-virtual_vacation.cf
user = postfix
password = xxxxxxxxx
dbname = postfix
table = vacation
select_field = email
where_field = email
additional_conditions = and active = '9'
result_format = %u#%d@autoreply.TechBun


Below are enormous entries in the mailq
Quote:
EFF65D544 17435 Fri Apr 28 09:24:21 root
root

7475FC295 952 Mon Apr 24 22:14:46 root
root

-- 818237 Kbytes in 39202 Requests.
Code:
uname -a
Linux mycomp 3.10.0-514.10.2.el7.x86_64 #1 SMP Fri Mar 3 00:04:05 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

I have uploaded the echo "Subject: sendmail test" | sendmail -vvv me@mycomp.com debug output as it was too lengthy to copy paste here -->sendmail+verbose

Requesting suggestions please ?

Last edited by mohtashims; 08-14-2017 at 06:40 PM..
# 2  
Old 08-14-2017
Bug

Would like to grab attention to this issue /thread. I am not sure if this is against policy but its been months since i posted this.

Additional info:
Code:
# postconf -d | grep mail_version
mail_version = 2.10.1
milter_macro_v = $mail_name $mail_version

All i need is the email service [preferably sendmail] to work on the server so it can send out emails Thank you.

Last edited by mohtashims; 08-14-2017 at 06:41 PM..
# 3  
Old 08-14-2017
Bumping up posts is not allowed. But, you are adding a little bit of new information.

Unfortunately, nothing in either of your posts in this thread has anything to do with the title of this thread: The title is "Mailx not working on Linux", but there is absolutely no mention of mailx in either of your posts in this thread. The more confusion about what you are trying to do... the less likely you are to get meaningful (or any) response.
# 4  
Old 08-14-2017
CPU & Memory

Quote:
Originally Posted by Don Cragun
Bumping up posts is not allowed. But, you are adding a little bit of new information.

Unfortunately, nothing in either of your posts in this thread has anything to do with the title of this thread: The title is "Mailx not working on Linux", but there is absolutely no mention of mailx in either of your posts in this thread. The more confusion about what you are trying to do... the less likely you are to get meaningful (or any) response.
I frankly thought i did more than usual to post every information in regards to the problem but you can still direct to me provide any inputs / info help resolve the issue.

Problem being sendmail, mail & mailx nothing works. I chose to mention one of them in the Title but the core issue is that -> I am not able to send out any emails from the server.

I shared the command, the output, the error and configuration files so it may help find a clue to the problem.

Thank you for the inputs.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Mailx stopped working

after a new patch set on the 14th. I noticed that mailx stopped working, as far a I can tell that is the only thing that changed. solaris 10 OS it seems everything is the same, sendmail seems to be running root@server # ps -ef | grep -i sendmail smmsp 687 1 0 10:42:25 ? ... (0 Replies)
Discussion started by: goya
0 Replies

2. Shell Programming and Scripting

mailx not working on SunOS 5.9

I m trying to send o/p of one file using mailx command but is not working PFB command : cat healthchecklog | mailx -s "HEALTH CHECKS" abc@jkl.com also I have checked the ps -ef for mailx which is giveing below o/p ps -ef | grep mail root 364 1 0 Jun 08 ? ... (11 Replies)
Discussion started by: Jcpratap
11 Replies

3. Shell Programming and Scripting

mailx not working properly

I am using mailx command in my script to attach a file and send an email. I need to attach a csv file and send email to a mail id - I am using uuencode output.csv output.csv | mailx -s "test mail" xyz@abc.com This will send a mail with scrambled text in body. am i missing something ?... (4 Replies)
Discussion started by: Sriranga
4 Replies

4. Shell Programming and Scripting

mailx is not working

i have a file.i want to get that file to my mail.mail services are running.but still i didn't receive the mail. i have used this command. mailx -s file1 muraliinfy04@gmail.com < file2.txt.can anybody help me.it's urgent.I am new to unix. actually file1 i have directed to a file2.txt (8 Replies)
Discussion started by: muraliinfy04
8 Replies

5. Shell Programming and Scripting

mailx -s is not working

Hello, I have two unix boxes.. One of the unix box version is Linux iduxlys 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:15 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux I have shell script which has the below script. cat xyz.log|mailx -s "export is Successful" \ xyz.xyz@xyz The above... (3 Replies)
Discussion started by: govindts
3 Replies

6. Solaris

mailx not working

i am supporting a server running Solaris 5.6.I don't know if the mail is configured on this server. i ran the following commands and got the corresponding output. #which mailx /usr/bin/mailx #ps -ef | grep sendmail root 601 1 0 Jan 10 ? 0:01 /usr/lib/sendmail... (1 Reply)
Discussion started by: asalman.qazi
1 Replies

7. Shell Programming and Scripting

mailx not working

Hi All, I am strugging with mailx. I have a shell script which triggers mail when executed. I have mailx utility installed in system under /usr/bin/mailx but still when that script executes i am not getting mails..any idea why strange behaviour..? Tha:(nks in advance Usha (2 Replies)
Discussion started by: usha rao
2 Replies

8. Solaris

mailx is not working.......

Hi All, I am working with solaris 5.9 servers.After some patch installation my mailx is not working in the server.I am using IBM Lotus Notes. Please help me to solve this issue (4 Replies)
Discussion started by: Renjesh
4 Replies

9. 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

10. UNIX for Dummies Questions & Answers

mailx -s not working right

I have set up in Solaris to email me and I received emails on the OS level. However, I don't get the mail in my MS Outlook. Please advise. Thanks in advance. (3 Replies)
Discussion started by: simt
3 Replies
Login or Register to Ask a Question