LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-25-2014, 04:04 PM   #31
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8114Reputation: 8114Reputation: 8114Reputation: 8114Reputation: 8114Reputation: 8114Reputation: 8114Reputation: 8114Reputation: 8114Reputation: 8114Reputation: 8114

Quote:
Originally Posted by stf92 View Post
sendmail is complex because it is used by MUAs and MTAs for SMTP transport.
Sendmail is a MTA. And yes, it is complex and you need to follow a course to be able to work with it properly. Slackware does nothing more than install a sendmail.cf which will let you send emails through the system. Still you'll need to configure a SmartHost to get any of these emails past your ISP or else your emails will be dropped by the first remote SMTP server doing SORBS checks.

Quote:
Now look at the manual: not over 500 lines. Look at fetchmail manual: almost 3000 lines. For the user sendmail is easier, because, besides, slackware does all of the configuration work for him.
You must surely be joking...
You judge the complexity of a program by its man page? Let's look for the programs without man pages then! They must be super easy to use!

I have told you before: with the huge number of posts on this forum, there is still only a tiny fraction of that where you make any sense.

Eric
 
Old 10-25-2014, 04:08 PM   #32
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8114Reputation: 8114Reputation: 8114Reputation: 8114Reputation: 8114Reputation: 8114Reputation: 8114Reputation: 8114Reputation: 8114Reputation: 8114Reputation: 8114
Quote:
Originally Posted by stf92 View Post
If you know sendmail, why don't you give me a syntax equivalent to that of busybox sendmail
Repeat after me:
Code:
Sendmail (/usr/sbin/sendmail) is a MTA.
Busybox sendmail is a MUA with limited capabilities (it can read and send emails supplied to it via STDIN).
There is no equivalent syntax. The two programs have separate goals. And why are you using busybox at all? IT is not part of Slackware's install. Are you using Slackware or some embedded system?

Eric
 
Old 10-25-2014, 04:26 PM   #33
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Yes, sendmail is an MTA, lapsus linguis. If busybox sendmail is MUA, all the way better for me! I do not see any trouble in that. Why do I use busybox for sendmail? Plain simple. I do not know sendmail's syntax, busybox makes it simple for me and whether you like or not I did use it to send mail through my ISP.

EDIT:
Quote:
Testing Mail Delivery

I have been able to send and receive email immediately after installing Red Hat Linux because sendmail is installed as part of the basic operating system package. To try out the sendmail mail-transfer agent, I have used the mail command to compose and send a mail message to myself at a different address, as follows:

mail naba@comcast.net
Subject: Testing email
This is from my Red Hat Linux system.
.
Cc: Press Ctrl+D
That is from a document in the Internet.

Last edited by stf92; 10-25-2014 at 04:30 PM.
 
Old 10-25-2014, 05:53 PM   #34
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Quote:
Originally Posted by T3slider View Post
Why wouldn't you use fetchmail which is designed specifically for this (receiving mail from an upstream POP3/IMAP server)? For easy IMAP there is also offlineimap. sendmail is one of the most complex pieces of software included with Slackware and if you're not actually running a mail server, fetchmail is a much better solution.
I ran fetchmail after writing a .fetchmailrc and the result is the same as with the mail command: I get this:
Code:
$ cat /var/log/maillog
[..............]
Oct 25 19:06:54 telecentro sendmail[3396]: s9PM6s6H003396: to=enriquestefanini@yahoo.com.ar, ctladdr=estefan34 (1002/1002), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30226, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
$
Before using fetchmail I got 'Connection refused by [127.0.0.1]' too, which in my system is localhost.

Sorry:
Code:
$ fetchmail
230 messages for estefan34@telecentro.com.ar at tcpop.telecentro.com.ar (8539863 octets).
fetchmail: Connection errors for this poll:
name 0: connection to localhost:smtp [127.0.0.1/25] failed: Connection refused.
fetchmail: SMTP connect to localhost failed
fetchmail: SMTP transaction error while fetching from estefan34@telecentro.com.ar@tcpop.telecentro.com.ar and delivering to SMTP host localhost
reading message estefan34@telecentro.com.ar@tcpop.telecentro.com.ar:1 of 230 (1036 octets)fetchmail: Query status=10 (SMTP)

Last edited by stf92; 10-25-2014 at 05:58 PM.
 
Old 10-25-2014, 06:33 PM   #35
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
That looks like it worked (it was able to contact the remote host and get mail) but you don't have a local mail daemon set to receive. You can either setup the real sendmail properly to receive/deliver mail on localhost only, or you can use the 'mda' option in your .fetchmailrc to route through eg. procmail instead of using SMTP over port 25. This is a decent guide -- not all of it will be applicable if you're not using mutt but it should get you started. You will want to use `man fetchmail`, `man procmail`, `man procmailrc` and `man procmailex` if you decide to go the procmail route.
 
1 members found this post helpful.
Old 10-25-2014, 07:49 PM   #36
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Thank you T3slider, I'll study the options to see which way I go and let know the results.
 
Old 10-25-2014, 10:16 PM   #37
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
I have generic-linux.mc in my disk:
Code:
#  This is a generic configuration file for Linux.
#  It has support for local and SMTP mail only.  If you want to
#  customize it, copy it to a name appropriate for your environment
#  and do the modifications there.
#

divert(0)dnl
VERSIONID(`$Id: generic-linux.mc,v 8.1 1999/09/24 22:48:05 gshapiro Exp $')
OSTYPE(linux)dnl
DOMAIN(generic)dnl
MAILER(local)dnl
MAILER(smtp)dnl
It would be fine, in order to test, to run m4 on it an put the result in /etc/mail but, what modifications should I do on it in the case of using only localhost and SMTP?
 
Old 10-26-2014, 09:08 AM   #38
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
There is a 110 page postfix document (which okular can display) named /usr/doc/sendmail-xx.yy.zz/op/op.ps (I'm not running 14.0 at the moment so I don't know what the version of sendmail is for that release) which contains everything that you'd ever want to know about sendmail.

On a 14.1 system, the path to that file is /usr/doc/sendmail-8.14.9/op/op.ps
 
1 members found this post helpful.
Old 10-26-2014, 09:27 AM   #39
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
/usr/doc/sendmail-8.14.5/op/op.ps
/slack12/usr/doc/sendmail-8.14.1/op/op.ps

are in 14.0 and 12.0 respectively. Thanks so much.

Last edited by stf92; 10-26-2014 at 09:29 AM.
 
Old 10-26-2014, 11:01 AM   #40
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
I'm reading a good tutorial on fetchmail,

https://www.linode.com/docs/email/cl...retrieve-email

and I'm thinking the fact that my username in the remote pop3 contains my domain name where as my username in my console excludes it, hummm, complicated: they told me:
your username is estefan34 dot telecentro dot com dot ar. But my username in my linux system is estefan34, without the domainname. Can this be the cause of my repeated failures in making fechmail run?
 
Old 10-26-2014, 11:38 AM   #41
arsivci0
Member
 
Registered: Nov 2013
Location: Antalya
Distribution: Slackware64 current
Posts: 119

Rep: Reputation: 23
Quote:
Originally Posted by stf92 View Post
I'm reading a good tutorial on fetchmail,

https://www.linode.com/docs/email/cl...retrieve-email

and I'm thinking the fact that my username in the remote pop3 contains my domain name where as my username in my console excludes it, hummm, complicated: they told me:
your username is estefan34 dot telecentro dot com dot ar. But my username in my linux system is estefan34, without the domainname. Can this be the cause of my repeated failures in making fechmail run?
It should not be. It's been years since I used fetchmail but in fetchmail.rc there must be a line like "username xyz is abc here" which sorts out the problem you mentioned.

As far as I see, sendmail could not find a place to handover mail locally (it's been some time since I used sendmail as well. Maybe you should go to procmail route

Last edited by arsivci0; 10-26-2014 at 11:41 AM. Reason: Addition
 
Old 10-26-2014, 11:46 AM   #42
arsivci0
Member
 
Registered: Nov 2013
Location: Antalya
Distribution: Slackware64 current
Posts: 119

Rep: Reputation: 23
@sf92
I am curious, can you send mail locally? For example, I can send mail to root and vice verse with my default sendmail setup.
 
1 members found this post helpful.
Old 10-26-2014, 11:46 AM   #43
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
That's why you use a syntax like this in .fetchmailrc:
Code:
user 'john.example'        
there with password 'rover'        
is 'john' here
Replacing 'john.example' with the username of the remote host (ie. the e-mail address) and 'john' with your local username (and 'rover' with your remote password). This will ensure e-mail from that host gets delivered to your local user so you don't need to synchronize your local username with that of the remote host. (Note that this will still require setting up sendmail or procmail etc. to actually deliver the mail; it just makes sure the mail gets delivered to the right local user). I will say that it would be wise to use the 'keep' option in .fetchmailrc at least while testing (you may want to keep it anyway, but some don't) to make sure you don't lose any e-mails if something fails.
 
1 members found this post helpful.
Old 10-26-2014, 12:15 PM   #44
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Quote:
Originally Posted by arsivci0 View Post
@sf92
I am curious, can you send mail locally? For example, I can send mail to root and vice verse with my default sendmail setup.
Well I've just read it in the tutorial! But as you suggested, the error persists. You mean comunnicating with another user in the same machine? I did not tested, I am a supernewby in this. [Ahhh... I'll try it.]

T3slider: Thanks you for your kind advice.

Last edited by stf92; 10-26-2014 at 12:17 PM.
 
Old 10-26-2014, 12:41 PM   #45
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
@arsivci0:
I'll be honest with you. At this time I can communicate both ways with my ISP's server, but only by means of these scripts:
Code:
estefan34@telecentro:/almacen/soft/busybox/sendmail
/enlacosa$ cat sendmail.sh

###### Lo de abajo ANDA
sendmail -v -f estefan34@telecentro.com.ar \
-S tcsmtp.telecentro.com.ar:25 \
-auestefan34@telecentro.com.ar -apabc123   \
enriquestefanini@yahoo.com.ar

##-H 'exec openssl s_client -quiet -tls1 -starttls smtp -connect smtp.gmail.com:25' \
## <email.txt [4<username_and_passwd.txt | -auUSER -apPASS] \
estefan34@telecentro:/almacen/soft/busybox/sendmail/enlacosa$ cat recmail.sh
for sending. The following to receive:
Code:
estefan34@telecentro:/almacen/soft/busybox/sendmail/enlacosa$ cat recmail.sh
busybox popmaildir -k /var/spool/mail nc tcpop.telecentro.com.ar 110 <juan.txt

estefan34@telecentro:/almacen/soft/busybox/sendmail/enlacosa$
But popmaildir I do know how to get the most of it, so, I must tentatively go back plain linux tools. However, this has allowed me to clarify the main doubt: I was almost sure my ISP blocked my mail. Now I know that is false.

Last edited by stf92; 10-26-2014 at 12:46 PM.
 
  


Reply


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
solve the issue regarding to login screen anand pandya Linux - Newbie 4 09-05-2013 04:06 AM
[SOLVED] Need solution to solve the formatting issue flamingo_l Other *NIX 4 03-11-2011 05:08 AM
Sendmail via ISP with authentication SteveT Linux - Server 1 05-10-2007 02:01 AM
Sendmail and ISP SMTP Devyn Linux - Software 2 06-29-2005 08:21 PM
Sendmail & ISP datadriven Slackware 11 05-17-2005 07:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:35 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration