Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ssmtp crashes when sending emerge sync output
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
padukes
Apprentice
Apprentice


Joined: 27 Feb 2003
Posts: 232

PostPosted: Sat Jul 12, 2003 5:02 pm    Post subject: ssmtp crashes when sending emerge sync output Reply with quote

Hey all,

I have a cron job which runs emerge sync once a day. It just calls "emerge sync" so there is a bit of output. I still have ssmtp installed (from the default) and no other MTAs. However, I never get the email with my emerge sync output. Instead I found this in my mail.log:

Code:
Jul 12 12:00:39 dhcp-1994-74 sSMTP[20935]: Buffer overflow in standardise()
Jul 12 12:05:25 dhcp-1994-74 sSMTP[20935]: Connection lost in middle of processing


Can anyone help me?

Thanks,
P
Back to top
View user's profile Send private message
padukes
Apprentice
Apprentice


Joined: 27 Feb 2003
Posts: 232

PostPosted: Sun Jul 13, 2003 2:27 pm    Post subject: Reply with quote

Does anyone have any suggestions? Is there a better service I can install? All I want to be able to do is send mail from my gentoo box through my isp's smtp server to some other email address.

Thanks,
P
Back to top
View user's profile Send private message
devon
l33t
l33t


Joined: 23 Jun 2003
Posts: 943

PostPosted: Sun Jul 13, 2003 5:30 pm    Post subject: Reply with quote

Are you using cron to call a script? Can you show us how you are emailing the "emerge sync" output to you?
Back to top
View user's profile Send private message
padukes
Apprentice
Apprentice


Joined: 27 Feb 2003
Posts: 232

PostPosted: Sun Jul 13, 2003 6:11 pm    Post subject: Reply with quote

Hey,

Here's my cron file (I'm using vcron) - it's in cron.daily:
Code:
dhcp-1994-74 cron.daily # more emerge.cron
#!/bin/sh
#

# get latest emerge(s)
emerge sync


Here's my ssmtp.conf (I *hid* my email addy & hostname):
Code:
dhcp-1994-74 ssmtp # more ssmtp.conf
#
# /etc/ssmtp.conf -- a config file for sSMTP sendmail.
#

# The person who gets all mail for userids < 1000
#root=postmaster
root=myemail@yahoo.com

# The place where the mail goes. The actual machine name is required
# no MX records are consulted. Commonly mailhosts are named mail.domain.com
# The example will fit if you are in domain.com and your mailhub is so named.
mailhub=smtp.rcn.com
#mailhub=mail

# Example for SMTP port number 2525
# mailhub=mail.your.domain:2525
# Example for SMTP port number 25 (Standard/RFC)
# mailhub=mail.your.domain       
# Example for SSL encrypted connection
# mailhub=mail.your.domain:465

# Where will the mail seem to come from?
rewriteDomain=

# The full hostname
hostname=myhostname.rcn.com
#hostname=rcn.com

# Set this to never rewrite the "From:" line (unless not given) and to
# use that address in the "from line" of the envelope.
#FromLineOverride=YES

# Use SSL/TLS to send secure messages to server.
#UseTLS=YES

# Use SSL/TLS certificate to authenticate against smtp host.
#UseTLSCert=YES

# Use this RSA certificate.
#TLSCert=/etc/ssl/certs/ssmtp.pem


Does this help? Any suggestions?
P
Back to top
View user's profile Send private message
devon
l33t
l33t


Joined: 23 Jun 2003
Posts: 943

PostPosted: Sun Jul 13, 2003 8:22 pm    Post subject: Reply with quote

Okay. I just tried it. Here is what I did:
Code:
# emerge sync > emerge_sync.output
# cat emerge_sync.output | mail devon@foo.com
# send-mail: Buffer overflow in standardise()

So I guess ssmtp doesn't have a large enough buffer to hold all of the "emerge sync" output. What exactly are you interested in with the "emerge sync" output? Perhaps you could use sed, awk, egrep, perl, whatever to get what you want from "emerge sync" and then email that to yourself.
Back to top
View user's profile Send private message
padukes
Apprentice
Apprentice


Joined: 27 Feb 2003
Posts: 232

PostPosted: Sun Jul 13, 2003 10:17 pm    Post subject: Reply with quote

Thanks!

It's not really that I want the output from emerge, I'm just nervous that I will have other processes that will try to send me email and they will die silently. Do you have any ideas how to get around this? Have you tried the unstable version of ssmtp (I think it's 2.6) ? Or recommend some other very simple outbound smtp prog?

Thanks,
P
Back to top
View user's profile Send private message
devon
l33t
l33t


Joined: 23 Jun 2003
Posts: 943

PostPosted: Mon Jul 14, 2003 3:45 am    Post subject: Reply with quote

Quote:
Have you tried the unstable version of ssmtp (I think it's 2.6) ?

I tried the latest version of ssmtp, 2.60.1, and got the same error. :(

Quote:
Or recommend some other very simple outbound smtp prog?

I use Postfix personally, but we use Exim at work and others like Qmail.
Back to top
View user's profile Send private message
oregonshoegazer
Tux's lil' helper
Tux's lil' helper


Joined: 09 May 2002
Posts: 84

PostPosted: Mon Apr 26, 2004 10:55 pm    Post subject: Reply with quote

did anyone ever find a solution to this problem? i'm doing something very similar and get the same result with sendmail.

i am currently using ssmtp 2.60.7

thanks.

orsg
Back to top
View user's profile Send private message
SilverOne
Apprentice
Apprentice


Joined: 10 Nov 2003
Posts: 161

PostPosted: Wed Apr 28, 2004 1:30 pm    Post subject: Reply with quote

Try using
Code:
emerge sync -q --nospinner


I esp. think the "nospinner" option will do the trick.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum