LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 06-08-2009, 09:04 AM   #16
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594

Quote:
Originally Posted by Dinithion View Post
echo "Test" | sendmail -s "Testmail" root
Dunno how you make that work but
Code:
# this does complete w/o warnings:
sendmail recipient@host << EOM
Subject: test
themessage
.
EOM

# and this as well:

echo "Subject: test
themessage
.
"|sendmail recipient@host
HTH
 
Old 06-08-2009, 09:24 AM   #17
Dinithion
Member
 
Registered: Oct 2007
Location: Norway
Distribution: Slackware 14.1
Posts: 446

Rep: Reputation: 59
Quote:
Originally Posted by unSpawn View Post
Dunno how you make that work but
Well, since you mention it, I started checking it out. It turns out I was combining the usage of sendmail and mail. :P
It works here. Uhm. I don't get any errors and the mail send is delivered right, except that the subject is blank.

Last edited by Dinithion; 06-08-2009 at 09:26 AM.
 
Old 06-08-2009, 07:09 PM   #18
escaflown
Member
 
Registered: Apr 2009
Location: Canada
Distribution: Slackware
Posts: 238

Original Poster
Rep: Reputation: 31
I used netconfig to reconfigure everything and I restarted the box. Then I tried both Dinithion's code (echo "Hello" | sendmail Y) and unSpawn's code (echo "Subject: test
themessage
.
"|sendmail Y) , while being logged as user X. The result is the same for both codes:

/home/X/dead.letter... Saved message in /home/X/dead.letter

This is what the maillog looks like after the execution of the two codes:

Quote:
Jun 8 17:48:01 FreeTown sm-mta[3475]: gethostbyaddr(192.168.0.101) failed: 1
Jun 8 17:48:02 FreeTown sm-mta[3476]: starting daemon (8.14.3): SMTP+queueing@00:25:00
Jun 8 17:48:02 FreeTown sm-msp-queue[3479]: starting daemon (8.14.3): queueing@00:25:00
Jun 8 17:53:13 FreeTown sendmail[3965]: n58NrDgx003965: from=X, size=6, class=0, nrcpts=1, msgid=<200906082353.n58NrDgx003965@FreeTown.localhost>, relay=X@localhost
Jun 8 17:53:13 FreeTown sm-mta[3966]: NOQUEUE: tcpwrappers (localhost, 127.0.0.1) rejection
Jun 8 17:53:13 FreeTown sendmail[3965]: n58NrDgx003965: to=engwork, ctladdr=X (1000/100), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30006, relay=[127.0.0.1] [127.0.0.1], dsn=5.0.0, stat=Service unavailable
Jun 8 17:57:47 FreeTown sendmail[4109]: n58Nvlc3004109: from=X, size=25, class=0, nrcpts=1, msgid=<200906082357.n58Nvlc3004109@FreeTown.localhost>, relay=X@localhost
Jun 8 17:57:47 FreeTown sm-mta[4110]: NOQUEUE: tcpwrappers (localhost, 127.0.0.1) rejection
Jun 8 17:57:47 FreeTown sendmail[4109]: n58Nvlc3004109: to=engwork, ctladdr=X (1000/100), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30025, relay=[127.0.0.1] [127.0.0.1], dsn=5.0.0, stat=Service unavailable

Last edited by escaflown; 06-08-2009 at 10:13 PM.
 
Old 06-08-2009, 08:10 PM   #19
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594
Quote:
Originally Posted by escaflown View Post
Jun 8 17:53:13 FreeTown sm-mta[3966]: NOQUEUE: tcpwrappers (localhost, 127.0.0.1) rejection
"ALL: ALL" in hosts.deny but no service exceptions for local access in hosts.allow?
 
Old 06-08-2009, 09:53 PM   #20
escaflown
Member
 
Registered: Apr 2009
Location: Canada
Distribution: Slackware
Posts: 238

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by unSpawn View Post
"ALL: ALL" in hosts.deny but no service exceptions for local access in hosts.allow?


You got it right unSpawn. I had "ALL: ALL" in hosts.deny and only sshd: ALL: ALLOW in hosts.allow. By allowing the right services in hosts.allow, everything got back to normal. This is the last lines of the maillog after a new test:

Quote:
Jun 8 20:42:24 FreeTown sendmail[10950]: n592gOr8010950: from=root, size=204, class=0, nrcpts=1, msgid=<200906090242.n592gOr8010950@FreeTown.localhost>, relay=root@localhost
Jun 8 20:42:24 FreeTown sm-mta[10951]: n592gOoD010951: from=<root@FreeTown.localhost>, size=466, class=0, nrcpts=1, msgid=<200906090242.n592gOr8010950@FreeTown.localhost>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Jun 8 20:42:24 FreeTown sendmail[10950]: n592gOr8010950: to=X, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30204, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (n592gOoD010951 Message accepted for delivery)
Jun 8 20:42:25 FreeTown sm-mta[10952]: n592gOoD010951: to=<X@FreeTown.localhost>, ctladdr=<root@FreeTown.localhost> (0/0), delay=00:00:01, xdelay=00:00:01, mailer=local, pri=30684, dsn=2.0.0, stat=Sent
Thanks for all the people that helped me. Not only I solved my problem but I also gained valuable experience. I'm just happy I didn't opt for a full re-installation instead of solving the problem.

Last edited by escaflown; 06-08-2009 at 09:57 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
Mail(x) on Slackware 12.2 does not send mail to local users wilson47 Linux - Software 4 03-03-2009 03:46 PM
postfix local users send mail restriction y_zl Linux - Security 3 01-04-2009 11:04 PM
mail and local unix users OTIM Linux - Server 4 12-04-2007 03:50 AM
Postfix: Do not allow local users to send mail Termina Linux - Server 1 03-22-2007 05:15 PM
local users can't see website or get mail Michele Linux - Newbie 8 07-01-2004 01:00 PM

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

All times are GMT -5. The time now is 07:23 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