Re: [gentoo-user] Can't Figure Out Mail On Linux
On Monday 29 September 2003 02:45 pm, Matthias F. Brandstetter wrote: If you only want to send mails from the command line, you first have to set up ssmtp (under /etc/ssmtp ... or something like that). After that, you can send an email via $ cat /path/to/mail.txt | mail -s subject [EMAIL PROTECTED] I probably don't have /etc/ssmtp/ssmtp.conf configured correctly. I get this error: # cat file.txt | sendmail -s mailing from the command line [EMAIL PROTECTED] sendmail: Cannot open mail.localdomain:25 Any hints? -- Stephen From here to there and there to here, funny things are everywhere. -- Dr Seuss -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Can't Figure Out Mail On Linux
On 30 Sep 2003, at 12:22 pm, Stephen Boulet wrote: On Monday 29 September 2003 02:45 pm, Matthias F. Brandstetter wrote: If you only want to send mails from the command line, you first have to set up ssmtp (under /etc/ssmtp ... or something like that). After that, you can send an email via $ cat /path/to/mail.txt | mail -s subject [EMAIL PROTECTED] I probably don't have /etc/ssmtp/ssmtp.conf configured correctly. I get this error: # cat file.txt | sendmail -s mailing from the command line [EMAIL PROTECTED] sendmail: Cannot open mail.localdomain:25 You almost certainly don't. Have you actually tried LOOKING at /etc/ssmtp/ssmtp.conf..? It is the most simple configuration file I have ever encountered under Unix. I suggest you back it up using `cp /etc/ssmtp/ssmtp.conf /etc/ssmtp/ssmtp.conf.example` and try messing around with it. if you call `sendmail` (which, I think you'll find is a sym-link to `ssmtp`) with the -v flag then it will help you identify what the problem is. I think that 30 minutes of this will help you resolve your issues better than days of helpless, uninformational postings to this group. I suggest you also read http://www.catb.org/~esr/faqs/smart-questions.html If you have any more questions, please provide more informational - the contents of your /etc/ssmtp/ssmtp.conf the full output of `cat file.txt | sendmail -v [EMAIL PROTECTED] Stroller. -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Can't Figure Out Mail On Linux
On Tuesday 30 September 2003 08:15 am, Stroller wrote: # cat file.txt | sendmail -s mailing from the command line [EMAIL PROTECTED] sendmail: Cannot open mail.localdomain:25 You almost certainly don't. Have you actually tried LOOKING at /etc/ssmtp/ssmtp.conf..? It is the most simple configuration file I have ever encountered under Unix. Is this slashdot? I suggest you back it up using `cp /etc/ssmtp/ssmtp.conf /etc/ssmtp/ssmtp.conf.example` and try messing around with it. if you call `sendmail` (which, I think you'll find is a sym-link to `ssmtp`) with the -v flag then it will help you identify what the problem is. I think that 30 minutes of this will help you resolve your issues better than days of helpless, uninformational postings to this group. taking vitamins so as not to be helpless I did read the file and configure it. It's simple if you have the right idea about what it does, but I had a conceptual misunderstanding. Since you can't have ssmtp and postfix installed at the same time, I thought ssmtp was like postfix, but simplified and not a full blown sendmail replacement. But now I realize that it's more like fetchmail in reverse; you still need a smtp server. I was thinking it provided a service like postfix, so that's why setting mailhub to localhost wouldn't work. Now that I have it working, I'm going to install postfix, since that's the kind of thing I wanted in the first place. -- Stephen -- [EMAIL PROTECTED] mailing list
[gentoo-user] Can't Figure Out Mail On Linux
Alright, I give up. I need help from you guys. I cannot figure out how a mail system works on Linux, specifically for my setup. I have a DSL connection and all I want is to be able to send mails through the command line. For instance, % cat mymessage | mutt -s 'Hey' [EMAIL PROTECTED] I don't want to set up a SMTP server on my computer (maybe later). Rather, I want to hand off my mail to the SMTP server provided by my school. They use SMTP authentication, I believe, and STARTTLS for SSL sessions, if that means something to someone. Can someone give me a step-by-step on what I need and how to set this up. I have nail and mutt emerged and ssmtp emerged also. I'm not really sure how to put the two together. --Jeff __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Can't Figure Out Mail On Linux
-- quoting Jeff Greene -- Can someone give me a step-by-step on what I need and how to set this up. I have nail and mutt emerged and ssmtp emerged also. I'm not really sure how to put the two together. If you only want to send mails from the command line, you first have to set up ssmtp (under /etc/ssmtp ... or something like that). After that, you can send an email via $ cat /path/to/mail.txt | mail -s subject [EMAIL PROTECTED] or you can write a mail from command line via $ mail -s subject [EMAIL PROTECTED] write your text . (note the last '.' (dot) in the last line of the mail!) If you can't find the program mail, then you have to emerge mailx. HTH, Matthias -- Lurleen, I can't get your song outta my mind. I haven't felt this way since `Funky Town.' -- Homer Simpson Colonel Homer -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Can't Figure Out Mail On Linux
What about authentication? Where do I specify my login and password? --Jeff thanks, btw --- Matthias F. Brandstetter [EMAIL PROTECTED] wrote: -- quoting Jeff Greene -- Can someone give me a step-by-step on what I need and how to set this up. I have nail and mutt emerged and ssmtp emerged also. I'm not really sure how to put the two together. If you only want to send mails from the command line, you first have to set up ssmtp (under /etc/ssmtp ... or something like that). After that, you can send an email via $ cat /path/to/mail.txt | mail -s subject [EMAIL PROTECTED] or you can write a mail from command line via $ mail -s subject [EMAIL PROTECTED] write your text . (note the last '.' (dot) in the last line of the mail!) If you can't find the program mail, then you have to emerge mailx. HTH, Matthias -- Lurleen, I can't get your song outta my mind. I haven't felt this way since `Funky Town.' -- Homer Simpson Colonel Homer -- [EMAIL PROTECTED] mailing list __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com -- [EMAIL PROTECTED] mailing list
RE: [gentoo-user] Can't Figure Out Mail On Linux
Actually, I'm logged into my machine at home. I have an account at school which is different. I want to send it from my home machine but use my school's SMTP server to get the mail on its way. I see that ssmtp supports login and password on the command-line but I don't understand where I invoke ssmtp? --Jeff --- Jeffrey Smelser [EMAIL PROTECTED] wrote: You should be logged in to from User when sending the mail. so if I am logged on as gentoo. the from would be gentoo@Yourhost.com. Being your logged in, you already put in your password. -Original Message- From: Jeff Greene [mailto:[EMAIL PROTECTED] Sent: Monday, September 29, 2003 3:36 PM To: [EMAIL PROTECTED] Subject: Re: [gentoo-user] Can't Figure Out Mail On Linux What about authentication? Where do I specify my login and password? --Jeff thanks, btw -- [EMAIL PROTECTED] mailing list __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com -- [EMAIL PROTECTED] mailing list
RE: [gentoo-user] Can't Figure Out Mail On Linux
Mail, I have not used in awhile, I don't believe supports this.. Its for local accounts.. Your probably going to have to try mutt or some kind of client that supports unlocal smtp servers on command line. I never have done that so, someone else will have to chime in.. -Original Message- From: Jeff Greene [mailto:[EMAIL PROTECTED] Sent: Monday, September 29, 2003 4:08 PM To: [EMAIL PROTECTED] Subject: RE: [gentoo-user] Can't Figure Out Mail On Linux Actually, I'm logged into my machine at home. I have an account at school which is different. I want to send it from my home machine but use my school's SMTP server to get the mail on its way. I see that ssmtp supports login and password on the command-line but I don't understand where I invoke ssmtp? --Jeff --- Jeffrey Smelser [EMAIL PROTECTED] wrote: You should be logged in to from User when sending the mail. so if I am logged on as gentoo. the from would be gentoo@Yourhost.com. Being your logged in, you already put in your password. -Original Message- From: Jeff Greene [mailto:[EMAIL PROTECTED] Sent: Monday, September 29, 2003 3:36 PM To: [EMAIL PROTECTED] Subject: Re: [gentoo-user] Can't Figure Out Mail On Linux What about authentication? Where do I specify my login and password? --Jeff thanks, btw -- [EMAIL PROTECTED] mailing list __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com -- [EMAIL PROTECTED] mailing list -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Can't Figure Out Mail On Linux
On Mon, Sep 29, 2003 at 02:08:03PM -0700, Jeff Greene wrote: Actually, I'm logged into my machine at home. I have an account at school which is different. I want to send it from my home machine but use my school's SMTP server to get the mail on its way. I see that ssmtp supports login and password on the command-line but I don't understand where I invoke ssmtp? You need to tell your mailer about ssmtp, or if it knows about sendmail you might be able to link ssmtp to /usr/bin/sendmail. If using mutt then in your .muttrc put: set sendmail=/usr/sbin/ssmtp Since you have a school account, you might try what I do which is to access sendmail via ssh. Set up ssh so you can run a command on your school account w/o passwd using ssh-agent I think. Then in .muttrc put something like this: set sendmail=/usr/bin/ssh [EMAIL PROTECTED] /usr/lib/sendmail HTH Wes -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Can't Figure Out Mail On Linux
On Mon, Sep 29, 2003 at 12:14:10PM -0700, Jeff Greene wrote: Alright, I give up. I need help from you guys. I cannot figure out how a mail system works on Linux, specifically for my setup. I have a DSL connection and all I want is to be able to send mails through the command line. For instance, % cat mymessage | mutt -s 'Hey' [EMAIL PROTECTED] I don't want to set up a SMTP server on my computer (maybe later). Rather, I want to hand off my mail to the SMTP server provided by my school. They use SMTP authentication, I believe, and STARTTLS for SSL sessions, if that means something to someone. You could use nbsmtp (emerge nbsmtp), and configure mutt to use it to talk your ISP's smtp server. Setting this up is described in detail in http://www.gentoo.org/doc/en/guide-to-mutt.xml. For the impatient: 1) emerge nbsmtp 2) add the following line to your ~/.muttrc file. set sendmail=/usr/bin/nbsmtp -d your domain -h your smtp server -f from address (With the appropriate substitutions.) - PK Can someone give me a step-by-step on what I need and how to set this up. I have nail and mutt emerged and ssmtp emerged also. I'm not really sure how to put the two together. --Jeff __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com -- [EMAIL PROTECTED] mailing list -- [EMAIL PROTECTED] mailing list