LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 05-15-2008, 10:58 AM   #1
jsurles
Member
 
Registered: Feb 2007
Location: Katy, TX
Distribution: gentoo, slackware, centos, ESX, gnu/linux
Posts: 33

Rep: Reputation: 15
sSMTP / QMail Issues - Any ideas?


I have a few Gentoo boxes. One of them is our mailserver, using a qmail/vpopmail setup. Another is a mysql box. On the mysql box, I have ssmtp setup to send mail via the mailserver. This has worked like a charm. Absolutely no issues. Until now.

On a nightly basis, we use InnoDB to backup the database. Then after it's complete, it would email me the log file. Well, it's stopped doing it. When I try it manually I see the error that it's spitting out:

Code:
CRON # cat backup.log | mail -s "InnoDB Output" jsurles@somedomain.com
send-mail: 
Can't send mail: sendmail process failed with error code 1
CRON #
Well the backup.log file is 109K and has 1768 lines. After playing the "higher / lower" game for about 5 minutes I determin that it's line 299 that's causing this. If I remove that line, it goes fine. If I do that line all by itself, it fails.

The line itself is:

"ibbackup: Progress in MB: 100 200 300 400 500 600 700 800 900 1000 1100 1200 1300 1400 1500 1600 1700 1800 1900 2000 2100 2200 2300 2400 2500 2600 2700 2800 2900 3000 3100 3200 3300 3400 3500 3600 3700 3800 3900 4000 4100 4200 4300 4400 4500 4600 4700 4800 4900 5000 5100 5200 5300 5400 5500 5600 5700 5800 5900 6000 6100 6200 6300 6400 6500 6600 6700 6800 6900 7000 7100 7200 7300 7400 7500 7600 7700 7800 7900 8000 8100 8200 8300 8400 8500 8600 8700 8800 8900 9000 9100 9200 9300 9400 9500 9600 9700 9800 9900 10000 10100 10200 10300 10400 10500 10600 10700 10800 10900 11000 11100 11200 11300 11400 11500 11600 11700 11800 11900 12000 12100 12200 12300 12400 12500 12600 12700 12800 12900 13000 13100 13200 13300 13400 13500 13600 13700 13800 13900 14000 14100 14200 14300 14400 14500 14600 14700 14800 14900 15000 15100 15200 15300 15400 15500 15600 15700 15800 15900 16000 16100 16200 16300 16400 16500 16600 16700 16800 16900 17000 17100 17200 17300 17400 17500 17600 17700 17800 17900 18000 18100 18200 18300 18400 18500 18600 18700 18800 18900 19000 19100 19200 19300 19400 19500 19600"

That line is 1094 chars long. If I reduce it to 1001 chars (including spaces) it sends through fine.

So now I've set off to figure out if it's ssmtp or qmail that's freaking out over this. From a third gentoo box, running the same version of ssmtp and mailx, it works fine, which should indicate that the issue is not with the mailserver, but with the client using the ssmtp/mailx combo.

But then, I decide just to telnet to port 25, and try it manually. I get the same thing:

Here it is with it being at 1001 chars:

Code:
databaseserver CRON # telnet mailserver.somedomain.com 25
Trying IP.AD.DR.ESS...
Connected to mailserver.somedomain.com.
Escape character is '^]'.
220 ******************************
HELO databaseserver
250 mailserver.somedomain.com
MAIL FROM:<root@somedomain.com>
250 ok
RCPT TO:<jsurles@somedomain.com>
250 ok
DATA
354 go ahead
Received: by databaseserver (sSMTP sendmail emulation); Thu, 15 May 2008 10:12:16 -0500
From: "root" <root@somedomain.com>
Date: Thu, 15 May 2008 10:12:16 -0500
To: jsurles@somedomain.com
Subject: long line

Progress in MB: 100 200 300 400 500 600 700 800 900 1000 1100 1200 1300 1400 1500 1600 1700 1800 1900 2000 2100 2200 2300 2400 2500 2600 2700 2800 2900 3000 3100 3200 3300 3400 3500 3600 3700 3800 3900 4000 4100 4200 4300 4400 4500 4600 4700 4800 4900 5000 5100 5200 5300 5400 5500 5600 5700 5800 5900 6000 6100 6200 6300 6400 6500 6600 6700 6800 6900 7000 7100 7200 7300 7400 7500 7600 7700 7800 7900 8000 8100 8200 8300 8400 8500 8600 8700 8800 8900 9000 9100 9200 9300 9400 9500 9600 9700 9800 9900 10000 10100 10200 10300 10400 10500 10600 10700 10800 10900 11000 11100 11200 11300 11400 11500 11600 11700 11800 11900 12000 12100 12200 12300 12400 12500 12600 12700 12800 12900 13000 13100 13200 13300 13400 13500 13600 13700 13800 13900 14000 14100 14200 14300 14400 14500 14600 14700 14800 14900 15000 15100 15200 15300 15400 15500 15600 15700 15800 15900 16000 16100 16200 16300 16400 16500 16600 16700 16800 16900 17000 17100 17200 17300 17400 17500 17600 17700 17800 17900 18000 18100 18200
.
250 ok 1210866599 qp 3835
quit
221 mailserver.somedomain.com
Connection closed by foreign host.
databaseserver CRON #
With the extra chars at the end (making it 1002 chars)

Code:
databaseserver CRON # telnet mailserver.somedomain.com 25
Trying IP.AD.DR.ESS...
Connected to mailserver.somedomain.com.
Escape character is '^]'.
220 ******************************
HELO databaseserver
250 mailserver.somedomain.com
MAIL FROM:<root@somedomain.com>
250 ok
RCPT TO:<jsurles@somedomain.com>
250 ok
DATA
354 go ahead
Received: by databaseserver (sSMTP sendmail emulation); Thu, 15 May 2008 10:12:16 -0500
From: "root" <root@somedomain.com>
Date: Thu, 15 May 2008 10:12:16 -0500
To: jsurles@somedomain.com
Subject: long line

Progress in MB: 100 200 300 400 500 600 700 800 900 1000 1100 1200 1300 1400 1500 1600 1700 1800 1900 2000 2100 2200 2300 2400 2500 2600 2700 2800 2900 3000 3100 3200 3300 3400 3500 3600 3700 3800 3900 4000 4100 4200 4300 4400 4500 4600 4700 4800 4900 5000 5100 5200 5300 5400 5500 5600 5700 5800 5900 6000 6100 6200 6300 6400 6500 6600 6700 6800 6900 7000 7100 7200 7300 7400 7500 7600 7700 7800 7900 8000 8100 8200 8300 8400 8500 8600 8700 8800 8900 9000 9100 9200 9300 9400 9500 9600 9700 9800 9900 10000 10100 10200 10300 10400 10500 10600 10700 10800 10900 11000 11100 11200 11300 11400 11500 11600 11700 11800 11900 12000 12100 12200 12300 12400 12500 12600 12700 12800 12900 13000 13100 13200 13300 13400 13500 13600 13700 13800 13900 14000 14100 14200 14300 14400 14500 14600 14700 14800 14900 15000 15100 15200 15300 15400 15500 15600 15700 15800 15900 16000 16100 16200 16300 16400 16500 16600 16700 16800 16900 17000 17100 17200 17300 17400 17500 17600 17700 17800 17900 18000 18100 18200 5
Connection closed by foreign host.
databaseserver CRON #
From my desktop (the third machine mentioned above).

Code:
sloth ~ # telnet mailserver.somedomain.com 25
Trying IP.AD.DR.ESS...
Connected to mailserver.somedomain.com.
Escape character is '^]'.
220 mailserver.somedomain.com ESMTP
HELO databaseserver
250 mailserver.somedomain.com
MAIL FROM:<root@somedomain.com>
250 ok
RCPT TO:<jsurles@somedomain.com>
250 ok
DATA
354 go ahead
Received: by databaseserver (sSMTP sendmail emulation); Thu, 15 May 2008 10:12:16 -0500
From: "root" <root@somedomain.com>
Date: Thu, 15 May 2008 10:12:16 -0500
To: jsurles@somedomain.com
Subject: long line

Progress in MB: 100 200 300 400 500 600 700 800 900 1000 1100 1200 1300 1400 1500 1600 1700 1800 1900 2000 2100 2200 2300 2400 2500 2600 2700 2800 2900 3000 3100 3200 3300 3400 3500 3600 3700 3800 3900 4000 4100 4200 4300 4400 4500 4600 4700 4800 4900 5000 5100 5200 5300 5400 5500 5600 5700 5800 5900 6000 6100 6200 6300 6400 6500 6600 6700 6800 6900 7000 7100 7200 7300 7400 7500 7600 7700 7800 7900 8000 8100 8200 8300 8400 8500 8600 8700 8800 8900 9000 9100 9200 9300 9400 9500 9600 9700 9800 9900 10000 10100 10200 10300 10400 10500 10600 10700 10800 10900 11000 11100 11200 11300 11400 11500 11600 11700 11800 11900 12000 12100 12200 12300 12400 12500 12600 12700 12800 12900 13000 13100 13200 13300 13400 13500 13600 13700 13800 13900 14000 14100 14200 14300 14400 14500 14600 14700 14800 14900 15000 15100 15200 15300 15400 15500 15600 15700 15800 15900 16000 16100 16200 16300 16400 16500 16600 16700 16800 16900 17000 17100 17200 17300 17400 17500 17600 17700 17800 17900 18000 18100 18200 5
.
250 ok 1210866820 qp 4587
quit
221 mailserver.somedomain.com
Connection closed by foreign host.
These are all connecting to the same mailserver. Does anyone have any ideas what might be causing this difference?
 
Old 09-24-2008, 03:52 PM   #2
npollitt
LQ Newbie
 
Registered: Sep 2008
Location: California
Distribution: Gentoo
Posts: 1

Rep: Reputation: 0
I kept getting the same sendmail error after upgrading to ssmtp-2.62-r3.

Can't send mail: sendmail process failed with error code 1

Looking at /var/log/messages I found:

/etc/ssmtp/ssmtp.conf not found

The permissions were not set to allow other to read the file. I changed permissions to make it readable and the problem went away.
 
  


Reply

Tags
error, line, long


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
ssmtp problem karlochacon Debian 4 12-02-2008 06:21 PM
SSMTP and mailhub iskrem Linux - Software 2 02-11-2006 09:45 AM
Compiling issues Ive never seen before. Any ideas? libranikki Slackware 1 02-12-2005 08:48 AM
qmail +qmail-qfilter + qmail-scanner-queue+qmail-user-masq.pl problem countcobolt Linux - Networking 0 07-08-2004 11:29 AM
multiple hardware issues, need ideas! lukebeales Linux - Hardware 1 07-07-2004 06:14 AM


All times are GMT -5. The time now is 11:48 AM.

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