Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
10-25-2014, 04:04 PM
|
#31
|
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559
|
Quote:
Originally Posted by stf92
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
|
|
|
10-25-2014, 04:08 PM
|
#32
|
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559
|
Quote:
Originally Posted by stf92
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
|
|
|
10-25-2014, 04:26 PM
|
#33
|
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442
Original Poster
Rep:
|
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.
|
|
|
10-25-2014, 05:53 PM
|
#34
|
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442
Original Poster
Rep:
|
Quote:
Originally Posted by T3slider
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.
|
|
|
10-25-2014, 06:33 PM
|
#35
|
Senior Member
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367
|
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.
|
10-25-2014, 07:49 PM
|
#36
|
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442
Original Poster
Rep:
|
Thank you T3slider, I'll study the options to see which way I go and let know the results.
|
|
|
10-25-2014, 10:16 PM
|
#37
|
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442
Original Poster
Rep:
|
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?
|
|
|
10-26-2014, 09:08 AM
|
#38
|
Senior Member
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858
|
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.
|
10-26-2014, 09:27 AM
|
#39
|
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442
Original Poster
Rep:
|
/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.
|
|
|
10-26-2014, 11:01 AM
|
#40
|
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442
Original Poster
Rep:
|
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?
|
|
|
10-26-2014, 11:38 AM
|
#41
|
Member
Registered: Nov 2013
Location: Antalya
Distribution: Slackware64 current
Posts: 119
Rep:
|
Quote:
Originally Posted by stf92
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
|
|
|
10-26-2014, 11:46 AM
|
#42
|
Member
Registered: Nov 2013
Location: Antalya
Distribution: Slackware64 current
Posts: 119
Rep:
|
@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.
|
10-26-2014, 11:46 AM
|
#43
|
Senior Member
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367
|
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.
|
10-26-2014, 12:15 PM
|
#44
|
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442
Original Poster
Rep:
|
Quote:
Originally Posted by arsivci0
@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.
|
|
|
10-26-2014, 12:41 PM
|
#45
|
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442
Original Poster
Rep:
|
@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.
|
|
|
All times are GMT -5. The time now is 02:35 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|