LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-08-2006, 02:38 PM   #1
scrupul0us
Member
 
Registered: Jan 2006
Location: Albany, NY
Distribution: CentOS 6.3
Posts: 159

Rep: Reputation: 30
Exclamation Issue with send mail


OK.. im having a huge issue with sendmail... nothing is goin through!

I have a full install of 10.2 and I followed seigeX's tutorial here
for Client-Side SMTP AUTH + SMART_HOST

heres my files:

/usr/share/sendmail/cf/cf/sendmail-slackware.mc
Code:
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:
dnl# define(`SMART_HOST',`mailserver.example.com')
define(`SMART_HOST',`smtp-server.nycap.rr.com')dnl
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:
dnl# ADDED BELOW
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
/etc/mail/authinfo
AuthInfo:nycap.rr.com "U:scrupul0us" "P:XXXXXX" "M:PLAIN"
AuthInfo: "U:scrupul0us" "P:XXXXXX" "M:PLAIN"

/etc/rc.d/rc.sendmail start
Starting sendmail MTA daemon: /usr/sbin/sendmail -L sm-mta -bd -q25m
Starting sendmail MSP queue runner: /usr/sbin/sendmail -L sm-msp-queue -Ac -q25m

And when I use PHP to sendmail on the same server:
PHP Code:
<?php
mail
('scrupul0us@nycap.rr.com''My Subject''Test','From: Webmaster <root@ironchefbadass.com>') or die("err");
echo 
"mail sent";
?>
I get this in slackware:
Code:
New mail for root@server has arrived:
----
From: Mail Delivery Subsystem <MAILER-DAEMON@server.ironchefbadass.com>
Subject: Returned mail: see transcript for details
This is a MIME-encapsulated message

--k68IxF4M008205.1152385155/server.ironchefbadass.com

The original message was received at Sat, 8 Jul 2006 14:59:15 -0400
...more...
Code:
Message  3:
From MAILER-DAEMON@server.ironchefbadass.com  Sat Jul  8 14:59:15 2006
Return-Path: <MAILER-DAEMON@server.ironchefbadass.com>
Date: Sat, 8 Jul 2006 14:59:15 -0400
From: Mail Delivery Subsystem <MAILER-DAEMON@server.ironchefbadass.com>
To: <nobody@server.ironchefbadass.com>
Content-Type: multipart/report; report-type=delivery-status;
        boundary="k68IxF4M008205.1152385155/server.ironchefbadass.com"
Subject: Returned mail: see transcript for details
Auto-Submitted: auto-generated (failure)
Status: R

Part 1:

The original message was received at Sat, 8 Jul 2006 14:59:15 -0400
from localhost [127.0.0.1]

   ----- The following addresses had permanent fatal errors -----
<scrupul0us@nycap.rr.com>
    (reason: 553 5.1.8 <nobody@server.ironchefbadass.com>... Domain of sender address nobody@server.ironchefbadass.com does not exist)

   ----- Transcript of session follows -----
... while talking to smtp.nycap.rr.com:
>>> MAIL From:<nobody@server.ironchefbadass.com> SIZE=570
<<< 553 5.1.8 <nobody@server.ironchefbadass.com>... Domain of sender address nobody@server.ironchefbadass.com does not exist
501 5.6.0 Data format error

Part 2:
Content-Type: message/delivery-status


Part 3:
Content-Type: message/rfc822

From nobody@server.ironchefbadass.com Sat Jul  8 14:59:15 2006
Return-Path: <nobody@server.ironchefbadass.com>
Date: Sat, 8 Jul 2006 14:59:15 -0400
To: scrupul0us@nycap.rr.com
Subject: My Subject
From: Webmaster <root@ironchefbadass.com>

Test
(EOF):
any help PLEASE!

Last edited by scrupul0us; 07-08-2006 at 03:09 PM.
 
Old 07-08-2006, 03:26 PM   #2
scrupul0us
Member
 
Registered: Jan 2006
Location: Albany, NY
Distribution: CentOS 6.3
Posts: 159

Original Poster
Rep: Reputation: 30
heres is my /var/log/maillog

Code:
Jul  8 15:30:44 server sm-mta[8255]: starting daemon (8.13.4): SMTP+queueing@00:25:00
Jul  8 15:30:44 server sm-msp-queue[8257]: starting daemon (8.13.4): queueing@00:25:00
Jul  8 15:30:44 server sm-mta[8255]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Jul  8 15:30:44 server sm-mta[8255]: daemon MTA: problem creating SMTP socket
Jul  8 15:30:44 server sm-msp-queue[8257]: unable to write pid to /var/spool/clientmqueue/sm-client.pid: file in use by another process
Jul  8 15:30:49 server sm-mta[8255]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Jul  8 15:30:49 server sm-mta[8255]: daemon MTA: problem creating SMTP socket
Jul  8 15:30:54 server sm-mta[8255]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Jul  8 15:30:54 server sm-mta[8255]: daemon MTA: problem creating SMTP socket
Jul  8 15:30:59 server sm-mta[8255]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Jul  8 15:30:59 server sm-mta[8255]: daemon MTA: problem creating SMTP socket
Jul  8 15:31:04 server sm-mta[8255]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Jul  8 15:31:04 server sm-mta[8255]: daemon MTA: problem creating SMTP socket
Jul  8 15:31:09 server sm-mta[8255]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Jul  8 15:31:09 server sm-mta[8255]: daemon MTA: problem creating SMTP socket
Jul  8 15:31:14 server sm-mta[8255]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Jul  8 15:31:14 server sm-mta[8255]: daemon MTA: problem creating SMTP socket
Jul  8 15:31:19 server sm-mta[8255]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Jul  8 15:31:19 server sm-mta[8255]: daemon MTA: problem creating SMTP socket
Jul  8 15:31:24 server sm-mta[8255]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Jul  8 15:31:24 server sm-mta[8255]: daemon MTA: problem creating SMTP socket
Jul  8 15:31:29 server sm-mta[8255]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Jul  8 15:31:29 server sm-mta[8255]: daemon MTA: problem creating SMTP socket
Jul  8 15:31:34 server sm-mta[8255]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Jul  8 15:31:34 server sm-mta[8255]: daemon MTA: problem creating SMTP socket
Jul  8 15:31:34 server sm-mta[8255]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: server SMTP socket wedged: exiting
Jul  8 15:31:35 server sendmail[8260]: k68JVZxr008260: from=nobody, size=96, class=0, nrcpts=1, msgid=<200607081931.k68JVZxr008260@server.ironchefbadass.com$
Jul  8 15:31:35 server sm-mta[8261]: k68JVZsp008261: from=<nobody@server.ironchefbadass.com>, size=339, class=0, nrcpts=1, msgid=<200607081931.k68JVZxr00826$
Jul  8 15:31:35 server sendmail[8260]: k68JVZxr008260: to=scrupul0us@nycap.rr.com, ctladdr=nobody (99/99), delay=00:00:00, xdelay=00:00:00, mailer=relay, pr$
Jul  8 15:31:35 server sm-mta[8263]: k68JVZsp008261: to=<scrupul0us@nycap.rr.com>, ctladdr=<nobody@server.ironchefbadass.com> (99/99), delay=00:00:00, xdela$
Jul  8 15:31:35 server sm-mta[8263]: k68JVZsp008261: forward /var/www/htdocs//.forward.server: World writable directory
Jul  8 15:31:35 server sm-mta[8263]: k68JVZsp008261: forward /var/www/htdocs//.forward: World writable directory
Jul  8 15:31:35 server sm-mta[8263]: k68JVZsp008261: k68JVZsp008263: DSN: Data format error
Jul  8 15:31:35 server sm-mta[8263]: k68JVZsp008263: to=root, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31594, dsn=2.0.0, stat=Sent
Jul  8 15:30:54 server sm-mta[8255]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Jul  8 15:30:54 server sm-mta[8255]: daemon MTA: problem creating SMTP socket
Jul  8 15:30:59 server sm-mta[8255]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Jul  8 15:30:59 server sm-mta[8255]: daemon MTA: problem creating SMTP socket
Jul  8 15:31:04 server sm-mta[8255]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Jul  8 15:31:04 server sm-mta[8255]: daemon MTA: problem creating SMTP socket
Jul  8 15:31:09 server sm-mta[8255]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Jul  8 15:31:09 server sm-mta[8255]: daemon MTA: problem creating SMTP socket
Jul  8 15:31:14 server sm-mta[8255]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Jul  8 15:31:14 server sm-mta[8255]: daemon MTA: problem creating SMTP socket
Jul  8 15:31:19 server sm-mta[8255]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Jul  8 15:31:19 server sm-mta[8255]: daemon MTA: problem creating SMTP socket
Jul  8 15:31:24 server sm-mta[8255]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Jul  8 15:31:24 server sm-mta[8255]: daemon MTA: problem creating SMTP socket
Jul  8 15:31:29 server sm-mta[8255]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Jul  8 15:31:29 server sm-mta[8255]: daemon MTA: problem creating SMTP socket
Jul  8 15:31:34 server sm-mta[8255]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Jul  8 15:31:34 server sm-mta[8255]: daemon MTA: problem creating SMTP socket
Jul  8 15:31:34 server sm-mta[8255]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: server SMTP socket wedged: exiting
Jul  8 15:31:35 server sendmail[8260]: k68JVZxr008260: from=nobody, size=96, class=0, nrcpts=1, msgid=<200607081931.k68JVZxr008260@server.ironchefbadass.com$
Jul  8 15:31:35 server sm-mta[8261]: k68JVZsp008261: from=<nobody@server.ironchefbadass.com>, size=339, class=0, nrcpts=1, msgid=<200607081931.k68JVZxr00826$
Jul  8 15:31:35 server sendmail[8260]: k68JVZxr008260: to=scrupul0us@nycap.rr.com, ctladdr=nobody (99/99), delay=00:00:00, xdelay=00:00:00, mailer=relay, pr$
Jul  8 15:31:35 server sm-mta[8263]: k68JVZsp008261: to=<scrupul0us@nycap.rr.com>, ctladdr=<nobody@server.ironchefbadass.com> (99/99), delay=00:00:00, xdela$
Jul  8 15:31:35 server sm-mta[8263]: k68JVZsp008261: forward /var/www/htdocs//.forward.server: World writable directory
Jul  8 15:31:35 server sm-mta[8263]: k68JVZsp008261: forward /var/www/htdocs//.forward: World writable directory
Jul  8 15:31:35 server sm-mta[8263]: k68JVZsp008261: k68JVZsp008263: DSN: Data format error
Jul  8 15:31:35 server sm-mta[8263]: k68JVZsp008263: to=root, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31594, dsn=2.0.0, stat=Sent
 
Old 07-08-2006, 03:32 PM   #3
dunric
Member
 
Registered: Jul 2004
Distribution: Void Linux, former Slackware
Posts: 498

Rep: Reputation: 100Reputation: 100
Quote:
Originally Posted by scurpul0us
----- The following addresses had permanent fatal errors -----
<scrupul0us@nycap.rr.com>
(reason: 553 5.1.8 <nobody@server.ironchefbadass.com>... Domain of sender address nobody@server.ironchefbadass.com does not exist)
It seems your SMTP server couldn't resolve sender's domain name - either it couldn't access DNS server or address really doesn't exist.
You may solve this problem by accepting all sender domains by enabling(uncommenting) following feature and rebuild new sendmail.cf:
Code:
FEATURE(`accept_unresolvable_domains')
But read the documentation before to know about possible consequences !
 
Old 07-08-2006, 03:36 PM   #4
scrupul0us
Member
 
Registered: Jan 2006
Location: Albany, NY
Distribution: CentOS 6.3
Posts: 159

Original Poster
Rep: Reputation: 30
well my question is where does:

nobody@server.ironchefbadass.com

come from????
 
Old 07-08-2006, 09:25 PM   #5
scrupul0us
Member
 
Registered: Jan 2006
Location: Albany, NY
Distribution: CentOS 6.3
Posts: 159

Original Poster
Rep: Reputation: 30
bump... anyone?
 
Old 07-09-2006, 02:25 PM   #6
scrupul0us
Member
 
Registered: Jan 2006
Location: Albany, NY
Distribution: CentOS 6.3
Posts: 159

Original Poster
Rep: Reputation: 30
annnyone?
 
Old 07-09-2006, 09:58 PM   #7
scrupul0us
Member
 
Registered: Jan 2006
Location: Albany, NY
Distribution: CentOS 6.3
Posts: 159

Original Poster
Rep: Reputation: 30
cmon are you guys serious? where is the slackware gods... please rain some terrific solution down upon me!
 
Old 07-10-2006, 08:45 AM   #8
scrupul0us
Member
 
Registered: Jan 2006
Location: Albany, NY
Distribution: CentOS 6.3
Posts: 159

Original Poster
Rep: Reputation: 30
i figuredit out as it may seem

/etc/hosts
Code:
#
# hosts         This file describes a number of hostname-to-address
#               mappings for the TCP/IP subsystem.  It is mostly
#               used at boot time, when no name servers are running.
#               On small systems, this file can be used instead of a
#               "named" name server.  Just add the names, addresses
#               and any aliases to this file...
#
# By the way, Arnt Gulbrandsen <agulbra@nvg.unit.no> says that 127.0.0.1
# should NEVER be named with the name of the machine.  It causes problems
# for some (stupid) programs, irc and reputedly talk. :^)
#

# For loopbacking.
127.0.0.1               localhost
#192.168.1.103          server.ironchefbadass.com server //DEFAULT
192.168.1.103           ironchefbadass.com server

# End of hosts.
i removed the opening server., rebooted and now it seems to work... I'll keep testing to be sure!
 
  


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
Unable to send mail to some mail servers due smtp greetings malformed atotomex Linux - Networking 6 12-20-2005 05:38 PM
how to configure mail client to send mail out on different pppd threads vkrishn1 Linux - Newbie 0 12-29-2004 11:54 AM
Java Mail fails to send a HTML mail eantoranz Programming 1 11-10-2004 02:47 PM
Server does'nt send mail until shutdown and LAN can't send or receive. Wolfy Linux - Networking 0 08-02-2004 08:31 PM
Cannot send mail with mail() command in PHP 4.3.4, Apache 2.0.48, Mandrake Linux 10 arcanum Linux - General 3 06-27-2004 07:06 PM

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

All times are GMT -5. The time now is 12:05 PM.

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