# Mailx not working on Linux

**URL:** <https://community.unix.com/t/mailx-not-working-on-linux/366465>\
**Category:** Shell Programming and Scripting\
**Created:** [May 8, 2017, 8:21am UTC](https://community.unix.com/t/mailx-not-working-on-linux/366465 "2017-05-08T08:21:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohtashims](https://community.unix.com/letter_avatar/mohtashims/32/6_449c533f586939b6e5f246632a46421f.png) [@mohtashims](https://community.unix.com/u/mohtashims)\
**Post date:** [May 8, 2017, 8:21am UTC](https://community.unix.com/t/mailx-not-working-on-linux/366465/1 "2017-05-08T08:21:36Z")

</div>

Hi,

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

```

This command

```plaintext
echo "hi" | mail -v me@mycomp.com

```

does not send mail to my inbox and i get the below output.

> [@](#):
>
> 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.

> [@](#):
>
> .....  
> ......  
> 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

```plaintext
[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`

> [@](#):
>
> 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.

```plaintext
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](https://www.scribd.com/document/347695467/sendmail-verbose)

Requesting suggestions please ?

---

<div class="post-metadata">

**Author:** ![mohtashims](https://community.unix.com/letter_avatar/mohtashims/32/6_449c533f586939b6e5f246632a46421f.png) [@mohtashims](https://community.unix.com/u/mohtashims)\
**Post date:** [August 14, 2017, 5:01pm UTC](https://community.unix.com/t/mailx-not-working-on-linux/366465/2 "2017-08-14T17:01:20Z")

</div>

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:

```nohighlight
# 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.

---

<div class="post-metadata">

**Author:** ![Don\_Cragun](https://community.unix.com/user_avatar/community.unix.com/don_cragun/32/2682_2.png) [@Don\_Cragun](https://community.unix.com/u/Don_Cragun)\
**Post date:** [August 14, 2017, 5:42pm UTC](https://community.unix.com/t/mailx-not-working-on-linux/366465/3 "2017-08-14T17:42:13Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![mohtashims](https://community.unix.com/letter_avatar/mohtashims/32/6_449c533f586939b6e5f246632a46421f.png) [@mohtashims](https://community.unix.com/u/mohtashims)\
**Post date:** [August 14, 2017, 6:14pm UTC](https://community.unix.com/t/mailx-not-working-on-linux/366465/4 "2017-08-14T18:14:53Z")

</div>

> [@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.
