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 03-22-2013, 09:12 AM   #16
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,117

Rep: Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455

Quote:
Originally Posted by Richard Cranium View Post
Mailx acts as an SMTP server?
You should stop digging.
And you should post something constructive if you want to say something.

If you read the thread, I will AGAIN reiterate what I said: mailx can ACT like an SMTP server, in a basic sense. What I mean by that is that it makes the SMTP connection to the host specified next in the chain. The standard mail command can't, and needs to have an MTA to talk with to send the mail along to the relay host defined to it.

With mailx, you define your upstream account to your mail host, and it uses it to send messages, bypassing the need to define a relay in postfix/sendmail.
 
Old 03-22-2013, 09:25 AM   #17
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,117

Rep: Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455
Quote:
Originally Posted by Mike_M View Post
Why on earth would I do that, when I've never stated such a thing?
Again, mailx and msmtp both provide SMTP capabilities to talk to an SMTP server further upstream. The OP posted they wanted to use the built-in mail command WHICH DOES NOT. If they want to use it, they need to define a smart host, as I've said all along. If not, either of the other two work fine, and I've said that from the beginning, but you seem to ignore that. From post #6:
Quote:
Originally Posted by Tb0ne
Right...and unless sendmail/postfix is running (an MTA), with a smarthost defined, the mail will sit there, no matter WHAT client is used, unless the OP sets up MX records, etc., or uses mailx, which they aren't per their first post
Quote:
Your repeated posting of misinformation won't make what you've said true.
Sorry, its still not misinformation, no matter how many times you say it.
Quote:
Your repeated misstating of what I've said won't make what I've said any less true
No, the links that are easily found with Google do that.
Quote:
You have a fundamental misunderstanding of the components and protocols that make up the foundation of email.
Except that what you've said is wrong; a client needs to talk to a server. Since what I posted has the benefit of actually WORKING that also indicates the validity of your advice.
Quote:
Further responses to you are pointless.
Agreed.
 
Old 03-22-2013, 01:15 PM   #18
Slax-Dude
Member
 
Registered: Mar 2006
Location: Valadares, Portugal
Distribution: Slackware
Posts: 228

Rep: Reputation: 58
Quote:
Originally Posted by TB0ne View Post
Except that what you've said is wrong; a client needs to talk to a server.
That fact that a mail client needs to talk with a mail server (duh) does not mean you have to be running your own mail server!
What everyone is trying to tell you is: the mail client and the mail server DO NOT have to be on the same machine.

The fine gentlemen at google were kind enough to provide a mail server so that anyone can configure their mail clients with it and, thus, be able to send and receive email.

You ONLY need to configure your email client to use ANY of the multiple public email servers out there (like gmail, hotmail, etc...).

A slackware specific tutorial (that should work with any distro) on how to use ONLY a mail client (mailx in this case) to send and receive email through gmail took me 5 seconds to find on google.com (link here)
 
Old 03-22-2013, 01:41 PM   #19
vivanguarda
Member
 
Registered: Sep 2008
Location: RJ-Brazil
Distribution: Slackware
Posts: 166

Original Poster
Rep: Reputation: 4
Is this thread a personal problem? kkkk!

Quote:
What version/distro of Linux are you using?
What are you using right now for email?
Where is that email server? (yours or an outside source like Gmail?)
Have you actually CONFIGURED sendmail? If you don't, then starting it will be pointless.

1)I am using slack 14;
2) I'd like to use sendmail. But, after thread explanation mailx and sendEmail seems interesting in this simple start/stop server application; I am prefer mailx so its already installed.
3)I will use a external lan mailbox;
4)I only edit /sendmail.cf in:

# "Smart" relay host (may be null)
DSig.com.br



At the moment, I receive mails in my external mailbox. But it's a very long delay time. Why not a default immediately dispatch?
 
Old 03-22-2013, 03:41 PM   #20
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.0
Posts: 3,470

Rep: Reputation: 519Reputation: 519Reputation: 519Reputation: 519Reputation: 519Reputation: 519
Quote:
At the moment, I receive mails in my external mailbox. But it's a very long delay time. Why not a default immediately dispatch?
Refer to my post.
 
Old 03-22-2013, 05:41 PM   #21
vivanguarda
Member
 
Registered: Sep 2008
Location: RJ-Brazil
Distribution: Slackware
Posts: 166

Original Poster
Rep: Reputation: 4
Quote:
Originally Posted by Woodsman View Post
Refer to my post.
I read it, my dear! And I understood that rwalld is fast and a good schematic if I was using mail in local lan. But in my case I need a external mailbox so I edited /etc/rc.d/rc.sendmail and changed all -q25 entrance to -q5. Sent a mail at 10:00 am and I didn't received it yet.
 
Old 03-22-2013, 05:59 PM   #22
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.0
Posts: 3,470

Rep: Reputation: 519Reputation: 519Reputation: 519Reputation: 519Reputation: 519Reputation: 519
Quote:
Sent a mail at 10:00 am and I didn't received it yet.
Is sendmail working at the remote system? Does sending a mail to root@localhost get sent to root's mbox? Is the IP address of the recipient system correct?
 
Old 03-22-2013, 08:29 PM   #23
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.1
Posts: 1,412

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
Quote:
Originally Posted by TB0ne View Post
And you should post something constructive if you want to say something.

If you read the thread, I will AGAIN reiterate what I said: mailx can ACT like an SMTP server, in a basic sense. What I mean by that is that it makes the SMTP connection to the host specified next in the chain. The standard mail command can't, and needs to have an MTA to talk with to send the mail along to the relay host defined to it.

With mailx, you define your upstream account to your mail host, and it uses it to send messages, bypassing the need to define a relay in postfix/sendmail.
No, what you wrote was what I quoted. mailx doesn't act like a server in any sense, basic or otherwise. The defining characteristic of a server in client/server architecture is that a server accepts connections from clients. mailx is a client, not a server. mailx doesn't accept connections initiated from other clients.

I'll also point out that in Slackware, /usr/bin/mail is a symbolic link to mailx. So you are talking out of your fourth point of contact in many ways.
 
Old 03-22-2013, 09:04 PM   #24
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.0
Posts: 3,470

Rep: Reputation: 519Reputation: 519Reputation: 519Reputation: 519Reputation: 519Reputation: 519
How about you boys go outside if you are not going to help the OP?
 
Old 03-23-2013, 05:04 AM   #25
ottavio
Member
 
Registered: Nov 2007
Posts: 312

Rep: Reputation: 46
/bin/mail or mailx are not mail clients, they are user front ends to sendmail. While it's not correct to say they are smtp servers, they expect to have a local server running in the background.

For a pure smtp client, use pine/alpine.
 
Old 03-23-2013, 12:11 PM   #26
Mike_M
Member
 
Registered: Mar 2011
Location: California
Distribution: Slackware
Posts: 116

Rep: Reputation: 50
Quote:
Originally Posted by ottavio View Post
/bin/mail or mailx are not mail clients, they are user front ends to sendmail. While it's not correct to say they are smtp servers, they expect to have a local server running in the background.

For a pure smtp client, use pine/alpine.
There have been multiple versions of mailx over the years. The one shipped with Slackware is the mailx which is part of the Heirloom project. It is most definitely a mail client. The first sentence on the project's homepage reads:

Quote:
Heirloom mailx (previously known as nail) is a mail user agent for Unix systems.


Quote:
Originally Posted by vivanguarda View Post
I read it, my dear! And I understood that rwalld is fast and a good schematic if I was using mail in local lan. But in my case I need a external mailbox so I edited /etc/rc.d/rc.sendmail and changed all -q25 entrance to -q5. Sent a mail at 10:00 am and I didn't received it yet.
In a previous post you said you had you defined a smarthost of ig.com.br, but there doesn't appear to be any SMTP server running at that host. Are you sure you're using the correct hostname for your smarthost?
 
Old 03-24-2013, 12:22 AM   #27
vivanguarda
Member
 
Registered: Sep 2008
Location: RJ-Brazil
Distribution: Slackware
Posts: 166

Original Poster
Rep: Reputation: 4
Now I have this output after some editings

/etc/rc.d/rc.sendmail start

Starting sendmail MTA daemon: /usr/sbin/sendmail -L sm-mta -bd -q5m
Starting sendmail MSP queue runner: /usr/sbin/sendmail -L sm-msp-queue -Ac -q5m
You have new mail in /var/mail/root



and

/usr/sbin/sendmail -d0.1 -bv root
Version 8.14.5
Compiled with: DNSMAP LOG MAP_REGEX MATCHGECOS MILTER MIME7TO8 MIME8TO7
NAMED_BIND NETINET NETINET6 NETUNIX NEWDB NIS PIPELINING SASLv2
SCANF SOCKETMAP STARTTLS TCPWRAPPERS USERDB XDEBUG

============ SYSTEM IDENTITY (after readcf) ============
(short domain name) $w = maq1
(canonical domain name) $j = maq1
(subdomain name) $m = <null>
(node name) $k = maq1
========================================================

root... deliverable: mailer local, user root



I tried a lot of possibilities using mailx, sendEmail and only sendmail. Received very lately messages. Then I think smart_host is correct.


This is my sendmail-slackware.mc. How can I fix it, so I am not receiving mails yet?

Quote:
dnl# This is the default sendmail .mc file for Slackware. To generate
dnl# the sendmail.cf file from this (perhaps after making some changes),
dnl# use the m4 files in /usr/share/sendmail/cf like this:
dnl#
dnl# cp sendmail-slackware.mc /usr/share/sendmail/cf/config.mc
dnl# cd /usr/share/sendmail/cf
dnl# sh Build config.cf
dnl#
dnl# You may then install the resulting .cf file:
dnl# cp config.cf /etc/mail/sendmail.cf
dnl#
include(`../m4/cf.m4')
VERSIONID(`default setup for Slackware Linux')dnl
OSTYPE(`linux')dnl
dnl# These settings help protect against people verifying email addresses
dnl# at your site in order to send you email that you probably don't want:
define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl
dnl# Uncomment the line below to send outgoing mail through an external server:
define(`SMART_HOST',`ig.com.br')
dnl# No timeout for ident:
define(`confTO_IDENT', `0')dnl
dnl# Enable the line below to use smrsh to restrict what sendmail can run:
dnl FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
dnl# See the README in /usr/share/sendmail/cf for a ton of information on
dnl# how these options work:
FEATURE(`authinfo',`hash -o /etc/mail/authinfo.db')dnl
FEATURE(`use_cw_file')dnl
FEATURE(`use_ct_file')dnl
FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl
FEATURE(`access_db', `hash -T<TMPF> /etc/mail/access')dnl
FEATURE(`blacklist_recipients')dnl
FEATURE(`local_procmail',`',`procmail -t -Y -a $h -d $u')dnl
FEATURE(`always_add_domain')dnl
FEATURE(`redirect')dnl
dnl# Turn this feature on if you don't always have DNS, or enjoy junk mail:
dnl FEATURE(`accept_unresolvable_domains')dnl
EXPOSED_USER(`root')dnl
dnl# Also accept mail for localhost.localdomain:
LOCAL_DOMAIN(`localhost.localdomain')dnl
MAILER(local)dnl
MAILER(smtp)dnl
MAILER(procmail)dnl

Last edited by vivanguarda; 03-25-2013 at 11:21 PM.
 
Old 03-30-2013, 12:29 PM   #28
vivanguarda
Member
 
Registered: Sep 2008
Location: RJ-Brazil
Distribution: Slackware
Posts: 166

Original Poster
Rep: Reputation: 4
Problem is solved! I was trying to use it like a server. Then I tried to use like a client only and did another sendmail-slackware.mc for a client mode. Then I belive a changed line server for client in sendmail-slackware.mc edition was the point.

define(`confAUTH_OPTIONS', `A p y')dnl

Thanks a lot, Kustom42, eloi but specially Mike and TB0ne in this hard task!
 
  


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
Command line mail management Hairyloon Linux - General 2 08-10-2010 08:36 PM
Debian etch - Unable to send mail from command line or from php mail command lqforumuser Linux - Newbie 1 03-01-2009 06:56 AM
command line email client to send mail to remote mail server dhanju Linux - Software 1 03-07-2008 06:37 AM
Command Line Send Mail nutthick Linux - Newbie 10 01-24-2005 07:52 PM
Using mail from the command line rkaran Linux - Newbie 1 12-19-2002 11:54 AM


All times are GMT -5. The time now is 09:13 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration