Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-06-2014, 02:05 PM   #1
LQ Newbie
Registered: Apr 2012
Posts: 10

Rep: Reputation: Disabled
Question Postfix not sending all emails generated from mailx command

We are running RHEL 6.2. Our ERP system runs a program that emails invoices to our customers. There can be 300+ generated within a few seconds. We are using postfix and the emails are generated using the mailx command. It appears that all emails after the 294th one are not being sent. I've reviewed the /var/log/maillog file and have searched for specific email addresses after the 294th one and they aren't in there.

We are logging all output from the mailx command in case there were any errors generated, but there have not been any. Has anyone run into a similar issue or have any suggestions on where to look or what might be causing this issue?

Any assistance is much appreciated.

Old 10-18-2014, 07:12 PM   #2
LQ Newbie
Registered: Jul 2012
Posts: 7

Rep: Reputation: Disabled
possible workaround

I would first consider a workaround suggested by the problem: If you can create a wrapper or script replacement for mailx so that 290 mails are sent then restart a separate instance to handle the next 290 mails until all mails are sent. Might give you some time to handle the problem more elegantly. Next: look at the code for postfix and see if there is any hard limit set for any counters in the code that might be responsible for your problem. GOOD LUCK.
Old 10-21-2014, 09:00 AM   #3
LQ Newbie
Registered: Apr 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
Thank you for the suggestion. I opened a ticket with Red Hat regarding this issue and so far we've found there is no limitation that would cause this. Also, we turned on auditd and found that although the program generating the mailx commands shows its sending them they are not being executed (at least not when it gets down to the last 90 or so, but it varies based on the number we are sending).

I've been monitoring at what point the emails stop and at first it was the 294th email, but since then it seems to vary. Any suggestions for an alternate service to send emails with?

Last edited by nancydrew72; 10-21-2014 at 09:01 AM.
Old 10-21-2014, 01:37 PM   #4
LQ Newbie
Registered: Jul 2012
Posts: 7

Rep: Reputation: Disabled
I did a little research and per your question about what to use to send mail check the link: and try "mutt" and "ssmtp" as examples. You could also look into something like "majordomo" but that requires a learning curve.

I also think that if you feel that determining why the "sendmail" is failing you could use "strace'. I hope this is of some help.


mailx, postfix

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Sending emails with postfix on centos NotionCommotion Linux - Newbie 5 03-21-2014 02:27 PM
[Postfix] Block sending emails outside of the domain fabler Linux - Server 0 07-07-2011 03:35 AM
Postfix - problem with sending emails from Outlook, Thunderbird... dlugasx Linux - Server 1 11-22-2009 11:58 PM
Sending mail by mailx command? lifeforce4 Debian 2 07-28-2008 06:00 PM
Postfix - sending emails and connection timeouts endfx Linux - Server 2 08-19-2007 12:45 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:19 AM.

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