Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Discussion & Documentation Documentation, Tips & Tricks
  • Search

HOW-TO sSMTP

Unofficial documentation for various parts of Gentoo Linux. Note: This is not a support forum.
Post Reply
Advanced search
46 posts
  • 1
  • 2
  • Next
Author
Message
HeXiLeD
Veteran
Veteran
User avatar
Posts: 1160
Joined: Sat Aug 20, 2005 5:41 pm
Location: Online

HOW-TO sSMTP

  • Quote

Post by HeXiLeD » Sat Jan 07, 2006 8:36 am

What is sSMTP:

DESCRIPTION
Extremely simple MTA to get mail off the system to a Mailhub

ssmtp is a send-only sendmail emulator for machines which normally pick their mail
up from a centralized mailhub (via pop, imap, nfs mounts or other means). It pro-
vides the functionality required for humans and programs to send mail via the
standard or /usr/bin/mail user agents.

It accepts a mail stream on standard input with recipients specified on the com-
mand line and synchronously forwards the message to the mail transfer agent of a
mailhub for the mailhub MTA to process. Failed messages are placed in dead.letter
in the sender's home directory.

Config files allow one to specify the address to receive mail from root, daemon,
etc.; a default mailhub; a default domain to be used in From: lines; and per-user
From: addresses and mailhub names.

It does not attempt to provide all the functionality of sendmail: it is intended
for use where other programs are the primary means of at last mail delivery. It
is usefull with pop/imap, or to simulate the Sun shared mail spool option for non-
Sun machines, for machines whose sendmails are too difficult (or various) to con-
figure, for machines with known disfeatures in their sendmails or for ones where
there are ``mysterious problems''.

It does not do aliasing, which must be done either in the user agent or on the
mailhub. Nor does it honor .forwards, which have to be done on the recieving host.
It especially does not deliver to pipelines.
Starting:

Code: Select all

# emerge ssmtp
# cd /etc/ssmtp
To make things look better when you recive emails from root you can edit root's name to something else. However this is completely optional and not needed to make ssmtp work properly.

Code: Select all

# nano /etc/passwd
and change:

Code: Select all

root:x:0:0:root:/root:/bin/bash
to:

Code: Select all

root:x:0:0:admin:/root:/bin/bash
or simply do:

Code: Select all

# usermod -c 'admin' root

In the following example i will be using rogers.com info to demonstrate how to setup ssmpt
Now lets edit ssmtp.conf.

Code: Select all

# nano /etc/ssmtp.conf

Code: Select all

# /etc/ssmtp.conf -- a config file for sSMTP sendmail.

# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root=<root@email.address>

# 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.
# This should be your remote smtp email server info

mailhub=smtp.broadband.rogers.com

# 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
# For GMAIL users:  mailhub=gmail.smtp.com:587

# Where will the mail seem to come from?
rewriteDomain=smtp.broadband.rogers.com

# The full hostname
# Gentoo bug #47562
# Commenting the following line will force ssmtp to figure
# out the hostname itself.
# hostname should be your remote email account

hostname=<username>@rogers.com

# auth user must be your remote email username
AuthUser=<username>

# AuthPass must be your remote email password
AuthPass=<password>

# 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

# With gmail  you should use this option insted of the 'UseTLS=YES'
#UseSTARTTLS=YES

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

# Use this RSA certificate.
#TLSCert=/etc/ssl/certs/ssmtp.pem
Now we will edit ssmtp/revaliases:

Code: Select all

# nano /etc/ssmtp/revaliases

Code: Select all

# sSMTP aliases
#
# Format:       local_account:outgoing_address:mailhub
#
# Example: root:your_login@your.domain:mailhub.your.domain[:port]
# where [:port] is an optional port number that defaults to 25.

# with the following example all emails sent from root; when recived
# will show in the from line: From: admin <gentoo@freethinker.net>
# in this case <gentoo> is the box name in  /etc/conf.d/hostname
# and <freethinker.net> the domainame in /etc/resolve.conf

root:gentoo@freethinker.net:smtp.broadband.rogers.com

# if a regular user sends an email without a costumized format then
# then the from line would show: From: john@smtp.broadband.rogers.com 

# if you wish to have your own regular user sending emails with a better 
# looking format like root has, then add something like this for each other user

jack:jack@freethinker.net:smtp.broadband.rogers.com

# what ever you put here <:jack@freethinker.net:> can be costumized
# by your own taste. For a regular user there is no need to change 
# anything in /etc/passwd
Testing:

Code: Select all

# mail -s "testing ssmtp" someguy@some-isp.com
- press enter and you can type whatever you wish as the message body
- press enter and then ctrl+D
- press enter again and the email should be sent 
- check your remote mailbox
;EOF

For more details $man ssmtp
sSMTP moves to bssmtp
http://larve.net/people/hugo/2001/02/ssmtp/


update 14/04/2012
http://nixbits.net/wiki/Ssmtp and gmail
Last edited by HeXiLeD on Sat Apr 14, 2012 6:02 pm, edited 3 times in total.
Do you hear the sound of inevitability?
With age, comes great grumpiness and that, was 20 years ago...

CertFP: becbbd161d5a5c31de3c45171b77bf710911db29 / d985d21f89fe2977b593c4d381a1a86802e62990d9328d893db76d59f9935244
Top
carlosman
n00b
n00b
User avatar
Posts: 18
Joined: Sat Oct 16, 2004 6:18 am
Location: Panama

Great HOWTO

  • Quote

Post by carlosman » Wed Jan 18, 2006 7:00 am

I was reviewing the "unanswered posts" list on this forum. The funny thing is the next item on my to-do list, after answering at least one "unanswered post" was, indeed, searching for info about sSMTP configuration on Gentoo Linux. After answering my first post I saw your HOWTO.

Talk about instant Karma!!! :mrgreen:

THANK YOU
A mind is a terrible thing to waste.
Remeber George Washington Carver...
Join the "Adopt an unanswered post initiative"!!!
Top
dzogi
n00b
n00b
Posts: 1
Joined: Sun Jan 22, 2006 11:34 pm

  • Quote

Post by dzogi » Sun Jan 22, 2006 11:38 pm

Thanks for the HOWTO, it has helped me. I'm using gmail's smtp server and it's working as it should 8)
Top
jimonade
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 92
Joined: Wed Apr 21, 2004 11:18 pm
Location: USA, West Lafayette, IN
Contact:
Contact jimonade
Website

  • Quote

Post by jimonade » Wed Jan 25, 2006 3:53 am

i've tried various combos including the above as well as from (http://forums.gentoo.org/viewtopic-t-41 ... -mutt.html) and i get the following or nothing...

Code: Select all

mail -s "testing ssmtp" jim@example.com

...

send-mail: Cannot open gmail.smtp.com:587
Can't send mail: sendmail process failed with error code 1
any suggestions? or, could someone post their working (gmail) ssmtp.conf?
Top
agentgray
n00b
n00b
Posts: 13
Joined: Mon Oct 07, 2002 6:14 pm

  • Quote

Post by agentgray » Fri Feb 03, 2006 9:30 pm

I've done everything in this HOWTO, but when I get to the testing phase I get.

Code: Select all

-bash: mail: command not found
I can send a mail using ssmtp as a command. Could I be missing something somewhere?
-agentgray
Top
jimonade
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 92
Joined: Wed Apr 21, 2004 11:18 pm
Location: USA, West Lafayette, IN
Contact:
Contact jimonade
Website

  • Quote

Post by jimonade » Fri Feb 03, 2006 9:43 pm

what is the output of

Code: Select all

emerge -vp ssmtp
?
Top
Bobnoxous
Apprentice
Apprentice
User avatar
Posts: 240
Joined: Tue May 03, 2005 2:00 am

  • Quote

Post by Bobnoxous » Sat Feb 04, 2006 7:35 am

I have the same problem. There seems to be no mail command. The output of emerge -vp ssmpt is:

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild R ] mail-mta/ssmtp-2.61 +ipv6 -mailwrapper -md5sum +ssl 0 kB

I've searched for mail, and it's not on my machine.
> find / -name mail
"The problem with the world is that fools and fanatics are always so sure of themselves while wiser people are so full of doubt."
- Bertrand Russell
Top
Cabal2002
n00b
n00b
Posts: 72
Joined: Wed Dec 22, 2004 2:41 pm
Location: Germany

  • Quote

Post by Cabal2002 » Tue Feb 07, 2006 5:51 pm

Hi

i have the same problem.

bash: mail: command not found

This prevents my nagios from sending notification mails to me. Anyone any idea how to fix this?

'emerge -vp ssmtp' says
[ebuild R ] mail-mta/ssmtp-2.61 +ipv6 -mailwrapper -md5sum +ssl 0 kB

Regards Cabal
Close the world, txEn eht nepO.
Top
davez
n00b
n00b
Posts: 28
Joined: Sun Mar 21, 2004 5:20 pm
Location: Switzerland

  • Quote

Post by davez » Fri Feb 10, 2006 9:37 am

For those who miss the 'mail' command:

Code: Select all

emerge mailx
will do the trick
Top
cybermatthieu
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 77
Joined: Wed Jul 07, 2004 6:22 pm

Missing use flag

  • Quote

Post by cybermatthieu » Sat Feb 11, 2006 10:40 pm

Hi,
I think your missing a use flag:

Code: Select all

mailwrapper
Add this flag to your /etc/make.conf config file and recompile ssmtp.

Hope it helps,
Matt
Top
troworld
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 95
Joined: Sat Dec 20, 2003 12:05 am
Location: ON, CA

  • Quote

Post by troworld » Sun Mar 12, 2006 5:41 pm

I'm getting:

Code: Select all

mail -s "testing ssmtp" myemail
asdlfjhasdfasd
fasdfasdf
Cc:
[<-] 220 smtp103.rog.mail.re2.yahoo.com ESMTP
[->] EHLO myemail
[<-] 250 8BITMIME
Can't send mail: sendmail process failed
I have mailx and "emerge -av ssmtp" says:

Code: Select all

[ebuild   R   ] mail-mta/ssmtp-2.61  USE="ipv6 mailwrapper md5sum ssl"
I'm also using rogers, btw.
Top
Ferdinando
Veteran
Veteran
User avatar
Posts: 1027
Joined: Tue Nov 25, 2003 10:23 am
Location: Gaeta (LT) - Italy

  • Quote

Post by Ferdinando » Thu Apr 20, 2006 3:57 pm

Here I'm using mail-mta/ssmtp-2.61 and I've got no mail command; I simply do

Code: Select all

/usr/sbin/sendmail user@isp.tld
Subject:test

Hi! :)
and I terminate the body with ctrl-D.
Btw Blue-Steel, thanks for the howto, I was trying to find a quick way to set it up, bored of the dead.letter file cron kept creating in /root, and your post was perfect :)

Bye
La risposta, non la devi cercare fuori, la devi cercare dentro di te: e però è SBAGLIATA!
-- Corrado Guzzanti, "Pippo Chennedy Show", 1997
Top
Tatey
n00b
n00b
User avatar
Posts: 37
Joined: Sun Apr 18, 2004 3:12 pm
Location: Brisbane, Australia
Contact:
Contact Tatey
Website

  • Quote

Post by Tatey » Tue Apr 25, 2006 4:54 pm

I found this guide and application to be extremely useful. Thanks very much!
[ visit my website, tatey.com ]
Top
mudrii
l33t
l33t
Posts: 789
Joined: Thu Jun 26, 2003 12:27 am
Location: Singapore
Contact:
Contact mudrii
Website

  • Quote

Post by mudrii » Thu May 11, 2006 4:21 am

Problem is with MTA that require POP before SMTP how can I use sSMTP only for sending mail from the system with POP authentication before sSMTP start sending ?
www.gentoo.ro
Top
OneInchMen
n00b
n00b
User avatar
Posts: 70
Joined: Thu Sep 30, 2004 2:24 pm
Location: Tilburg, the Netherlands
Contact:
Contact OneInchMen
Website

  • Quote

Post by OneInchMen » Tue May 16, 2006 9:31 am

Don't know if this is still helpful:
jimonade wrote:i've tried various combos including the above as well as from (http://forums.gentoo.org/viewtopic-t-41 ... -mutt.html) and i get the following or nothing...

Code: Select all

mail -s "testing ssmtp" jim@example.com

...

send-mail: Cannot open [b]gmail.smtp.com:587[/b]
Can't send mail: sendmail process failed with error code 1
any suggestions? or, could someone post their working (gmail) ssmtp.conf?
Shouldn't it be: smtp.gmail.com:587 ? instead of the other way around...
--> http://www.oneinchmen.com <--
Top
unaos
n00b
n00b
User avatar
Posts: 64
Joined: Thu Apr 06, 2006 12:02 pm
Location: brovary,UA

  • Quote

Post by unaos » Mon May 22, 2006 9:23 pm

the method
$echo "mail body" | /usr/sbin/sendmail -s "test" someone@gmail.com
and i recive empty letter with no subject.
also tried specify recive data from stdin but has the same effect - none.
Last edited by unaos on Mon May 22, 2006 10:04 pm, edited 1 time in total.
house of mystic lies
Top
Ferdinando
Veteran
Veteran
User avatar
Posts: 1027
Joined: Tue Nov 25, 2003 10:23 am
Location: Gaeta (LT) - Italy

  • Quote

Post by Ferdinando » Mon May 22, 2006 9:29 pm

unaos wrote:$echo "mail body" | /usr/sbin/sendmail -s "test" somone@gmail.com
Try

Code: Select all

$ echo "From:me
To:you
Subject:hi!

how are you?
" | /usr/lib/sendmail someone@someisp
I've tried just a moment ago and it worked, though it isn't that elegant, I know...

Bye
La risposta, non la devi cercare fuori, la devi cercare dentro di te: e però è SBAGLIATA!
-- Corrado Guzzanti, "Pippo Chennedy Show", 1997
Top
unaos
n00b
n00b
User avatar
Posts: 64
Joined: Thu Apr 06, 2006 12:02 pm
Location: brovary,UA

  • Quote

Post by unaos » Mon May 22, 2006 10:24 pm

you rockz dude! that's the classic "RTFM" example - RFC was the answer. shame for me :)
and now all is ok with echo -e "Subject: test\n\n the body \n" | /usr/lib/sendmail somebody@isp.net
house of mystic lies
Top
anigel
Bodhisattva
Bodhisattva
User avatar
Posts: 1894
Joined: Mon Apr 14, 2003 9:11 pm
Location: Un petit bled pas loin de Limoges ;-)

Re: HOWTO sSMTP

  • Quote

Post by anigel » Wed May 31, 2006 10:24 am

Hi,

And thanks for this document. I would just suggest a little change here :
Blue-Steel wrote:To make things look better when you recive emails from root you can edit root's name to something else. However this is completely optional and not needed to make ssmtp work properly.

Code: Select all

# nano /etc/passwd
and change:

Code: Select all

root:x:0:0:root:/root:/bin/bash
to:

Code: Select all

root:x:0:0:admin:/root:/bin/bash
I think the following command has the same effect ?

Code: Select all

usermod -c 'admin' root
Il y a 10 sortes d'individus en ce bas-monde : ceux qui causent binaire, et les autres.
Top
AssociateX
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 134
Joined: Thu Feb 19, 2004 5:13 pm
Location: North Dakota

  • Quote

Post by AssociateX » Wed Jul 05, 2006 8:17 am

How do I avoid this:

Code: Select all

athlon ~ # mailx root@localhost
Subject: test
test.
Cc: send-mail: Cannot open localhost:25
Can't send mail: sendmail process failed with error code 1
AssociateX
Gentoo rocks!
Top
ectospasm
l33t
l33t
User avatar
Posts: 711
Joined: Wed Feb 19, 2003 6:53 am
Location: Mobile, AL, USA
Contact:
Contact ectospasm
Website

  • Quote

Post by ectospasm » Sat Jul 15, 2006 11:33 pm

It took me weeks to figure this out. In revaliases, you have this:

Code: Select all

root:from.addr@domain.tld:mailhub.domain.tld
mailhub has to be the mailhub you send through, not the mailhub of the from.addr! I kept saying,"WTF? mailhub=mail.mysmtpserver.net in /etc/ssmtp.conf, but it still tries to send through wrong.mailhub.com? WHY?!?!?!?" Well, revaliases held the answer.
Join the adopt an unanswered post initiative today
Join the EFF!
Join the Drug Policy Alliance!
Top
accton
n00b
n00b
Posts: 2
Joined: Mon Oct 30, 2006 9:30 am

SSMTP compile error after enabling SSL on my Redhat7 PC

  • Quote

Post by accton » Mon Oct 30, 2006 9:34 am

Dear Professionals:

Sorry to bother all of you!

I would like to use SSMTP(ssmtp-2.61) to replace the big "sendmail". In order to use "smtp.gmail.com" to send e-mails, it seems need the SSL support. But there are always compile errors after enabling the SSL option(compile ok without enabling SSL). Should I compile SSMTP by using "Debian" OS?(seems miss the " krb5.h" in my Redhat7 system?) Or something wrong in my compiling procedures as below:

----------- start ----------------------
[wolf@rd-redhat9 ssmtp-2.61]$ ./configure --enable-ssl
loading cache ./config.cache
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether ln -s works... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for ANSI C header files... (cached) yes
checking for limits.h... (cached) yes
checking for strings.h... (cached) yes
checking for syslog.h.. . (cached) yes
checking for unistd.h... (cached) yes
checking for obsolete openlog... (cached) no
checking for working const... (cached) yes
checking whether struct tm is in sys/time.h or time.h... (cached) time.h
checking for gethostname in -lnsl... (cached) yes
checking for socket in -lsocket... (cached) no
checking return type of signal handlers... (cached) void
checking for vprintf... (cached) yes
checking for gethostname... (cached) yes
checking for socket... (cached) yes
checking for strdup... (cached) yes
checking for strstr... (cached) yes
creating ./config.status
creating Makefile


[wolf@rd-redhat9 ssmtp-2.61]$ make
gcc -Wall -DSTDC_HEADERS=1 -DHAVE_LIMITS_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYSLO
=1 -DHAVE_UNISTD_H=1 -DHAVE_LIBNSL=1 -DRETSIGTYPE=void -DHAVE_VPRINTF=1 -DHAV
ETHOSTNAME=1 -DHAVE_SOCKET=1 -DHAVE_STRDUP=1 -DHAVE_STRSTR=1 -DREWRITE_DOMAIN
-DHAVE_SSL=1 -DSSMTPCONFDIR=\"/usr/local/etc/ssmtp\" -DCONFIGURATION_FILE=\"
r/local/etc/ssmtp/ssmtp.conf\" -DREVALIASES_FILE=\"/usr/local/etc/ssmtp/reval
es\" -g -O2 -c -o ssmtp.o ssmtp.c
In file included from /usr/include/openssl/ssl.h:179,
from ssmtp.c:33:
/usr/include/openssl/kssl.h:73:18: krb5.h: No such file or directory
In file included from /usr/include/openssl/ssl.h:179,
from ssmtp.c:33:
/usr/include/openssl/kssl.h:133: parse error before "krb5_enctype"
/usr/include/openssl/kssl.h:135: parse error before "FAR"
/usr/include/openssl/kssl.h:136: parse error before '}' token
/usr/include/openssl/kssl.h:148: parse error before "kssl_ctx_setstring"
/usr/include/openssl/kssl.h:148: parse error before '*' token
/usr/include/openssl/kssl.h:149: parse error before '*' token
/usr/include/openssl/kssl.h:150: parse error before '*' token
/usr/include/openssl/kssl.h:150: parse error before '*' token
/usr/include/openssl/kssl.h:151: parse error before '*' token
/usr/include/openssl/kssl.h:152: parse error before "kssl_ctx_setprinc"
/usr/include/openssl/kssl.h:152: parse error before '*' token
/usr/include/openssl/kssl.h:154: parse error before "kssl_cget_tkt"
/usr/include/openssl/kssl.h:154: parse error before '*' token
/usr/include/openssl/kssl.h:156: parse error before "kssl_sget_tkt"
/usr/include/openssl/kssl.h:156: parse error before '*' token
/usr/include/openssl/kssl.h:158: parse error before "kssl_ctx_setkey"
/usr/include/openssl/kssl.h:158: parse error before '*' token
/usr/include/openssl/kssl.h:160: parse error before "context"
/usr/include/openssl/kssl.h:161: parse error before "kssl_build_principal_2"
/usr/include/openssl/kssl.h:161: parse error before "context"
/usr/include/openssl/kssl.h:164: parse error before "kssl_validate_times"
/usr/include/openssl/kssl.h:164: parse error before "atime"
/usr/include/openssl/kssl.h:166: parse error before "kssl_check_authent"
/usr/include/openssl/kssl.h:166: parse error before '*' token
/usr/include/openssl/kssl.h:168: parse error before "enctype"
In file included from ssmtp.c:33:
/usr/include/openssl/ssl.h:909: parse error before "KSSL_CTX"
/usr/include/openssl/ssl.h:931: parse error before '}' token
make: *** [ssmtp.o] Error 1

------------------ end ---------------------------

Regards,
wolf, Oct-30-2k6
Top
ectospasm
l33t
l33t
User avatar
Posts: 711
Joined: Wed Feb 19, 2003 6:53 am
Location: Mobile, AL, USA
Contact:
Contact ectospasm
Website

Re: SSMTP compile error after enabling SSL on my Redhat7 PC

  • Quote

Post by ectospasm » Tue Oct 31, 2006 1:36 am

accton wrote:Dear Professionals:

Sorry to bother all of you!

I would like to use SSMTP(ssmtp-2.61) to replace the big "sendmail". In order to use "smtp.gmail.com" to send e-mails, it seems need the SSL support. But there are always compile errors after enabling the SSL option(compile ok without enabling SSL). Should I compile SSMTP by using "Debian" OS?(seems miss the " krb5.h" in my Redhat7 system?)
This is a Gentoo forum, so I don't know how much help we'll be able to provide a Redhat system. You probably need to install the devel package for kerberos (kerberos-devel perhaps), assuming of course that krb5.h is part of the kerberos package. You may need to do some googling to determine what package on your system owns krb5.h.

HTH
Join the adopt an unanswered post initiative today
Join the EFF!
Join the Drug Policy Alliance!
Top
accton
n00b
n00b
Posts: 2
Joined: Mon Oct 30, 2006 9:30 am

how to cross-compile SSMTP for MIPS CPU board?

  • Quote

Post by accton » Tue Oct 31, 2006 9:02 am

Hi ectospasm:

Thanks! Compile ok after enabling SSL now. Send mail by google SMTP server is successful!

Thanks for your hint about "kerberos". I copied all missing *.h files(not only krb5.h) from /usr/kerberos/include/ in my Redhat9(sorry! not Redhat7) PC. Then, no compile error.

****************************************************

Do you know how to cross-compile SSMTP for MIPS CPU board?
Compile ok after copying the missing *.h files as the above, but link error! The SSL library is missing, I have tried to copy libssl* to my cross-compile directory. But it did not work. The error messages are as below:

-------------- start -----------------
[wolf@rd-redhat9 ssmtp-2.61]$ make
mips-linux-gcc -o ssmtp ssmtp.o arpadate.o base64.o -lnsl -lssl
/home/wolf/LSDK-5.0.2.46/tools/gcc-3.3.3-2.4.25/toolchain_mips/lib/gcc-lib/mips-
linux/3.3.3/../../../../mips-linux/bin/ld: skipping incompatible /home/wolf/LSDK
-5.0.2.46/tools/gcc-3.3.3-2.4.25/toolchain_mips/lib/gcc-lib/mips-linux/3.3.3/../
../../../mips-linux/lib/libssl.so when searching for -lssl
/home/wolf/LSDK-5.0.2.46/tools/gcc-3.3.3-2.4.25/toolchain_mips/lib/gcc-lib/mips-
linux/3.3.3/../../../../mips-linux/bin/ld: skipping incompatible /home/wolf/LSDK
-5.0.2.46/tools/gcc-3.3.3-2.4.25/toolchain_mips/lib/gcc-lib/mips-linux/3.3.3/../
../../../mips-linux/lib/libssl.a when searching for -lssl
/home/wolf/LSDK-5.0.2.46/tools/gcc-3.3.3-2.4.25/toolchain_mips/lib/gcc-lib/mips-
linux/3.3.3/../../../../mips-linux/bin/ld: skipping incompatible /home/wolf/LSDK
-5.0.2.46/tools/gcc-3.3.3-2.4.25/toolchain_mips/bin/../lib/libssl.so when search
ing for -lssl
/home/wolf/LSDK-5.0.2.46/tools/gcc-3.3.3-2.4.25/toolchain_mips/lib/gcc-lib/mips-
linux/3.3.3/../../../../mips-linux/bin/ld: skipping incompatible /home/wolf/LSDK
-5.0.2.46/tools/gcc-3.3.3-2.4.25/toolchain_mips/bin/../lib/libssl.a when searchi
ng for -lssl
/home/wolf/LSDK-5.0.2.46/tools/gcc-3.3.3-2.4.25/toolchain_mips/lib/gcc-lib/mips-
linux/3.3.3/../../../../mips-linux/bin/ld: skipping incompatible /home/wolf/LSDK
-5.0.2.46/tools/gcc-3.3.3-2.4.25/toolchain_mips/bin/../../toolchain_mips/lib/lib
ssl.so when searching for -lssl
/home/wolf/LSDK-5.0.2.46/tools/gcc-3.3.3-2.4.25/toolchain_mips/lib/gcc-lib/mips-
linux/3.3.3/../../../../mips-linux/bin/ld: skipping incompatible /home/wolf/LSDK
-5.0.2.46/tools/gcc-3.3.3-2.4.25/toolchain_mips/bin/../../toolchain_mips/lib/lib
ssl.a when searching for -lssl
/home/wolf/LSDK-5.0.2.46/tools/gcc-3.3.3-2.4.25/toolchain_mips/lib/gcc-lib/mips-
linux/3.3.3/../../../../mips-linux/bin/ld: skipping incompatible /home/wolf/LSDK
-5.0.2.46/tools/gcc-3.3.3-2.4.25/toolchain_mips/bin/../../toolchain_mips/usr/lib
/libssl.so when searching for -lssl
/home/wolf/LSDK-5.0.2.46/tools/gcc-3.3.3-2.4.25/toolchain_mips/lib/gcc-lib/mips-
linux/3.3.3/../../../../mips-linux/bin/ld: skipping incompatible /home/wolf/LSDK
-5.0.2.46/tools/gcc-3.3.3-2.4.25/toolchain_mips/bin/../../toolchain_mips/usr/lib
/libssl.a when searching for -lssl
/home/wolf/LSDK-5.0.2.46/tools/gcc-3.3.3-2.4.25/toolchain_mips/lib/gcc-lib/mips-
linux/3.3.3/../../../../mips-linux/bin/ld: cannot find -lssl
collect2: ld returned 1 exit status
make: *** [ssmtp] Error 1

------------- end -----------------------------

Any hint is appreciated!
Regards,
wolf, Oct-31-2k6
Top
ectospasm
l33t
l33t
User avatar
Posts: 711
Joined: Wed Feb 19, 2003 6:53 am
Location: Mobile, AL, USA
Contact:
Contact ectospasm
Website

  • Quote

Post by ectospasm » Tue Oct 31, 2006 6:29 pm

You probably need to cross-compile the libssl package, since an x86 binary library won't work on MIPS. But cross-compiling is out of my area of expertise, so I don't know how to help you further.
Join the adopt an unanswered post initiative today
Join the EFF!
Join the Drug Policy Alliance!
Top
Post Reply

46 posts
  • 1
  • 2
  • Next

Return to “Documentation, Tips & Tricks”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy