f



Sendmail won't send mail

Hello All, 

I'm running Sendmail 8.12.11 on Red Hat 9 Kernel 2.4.20-31-9

I can successfully send mail to my Sendmail server, but when I try to
send mail out from the Sendmail server, I get the following message:

makeconnection:
cannot bind socket [0.0.0.0]
address already in use.

Below I include the d0 display and netstat

The submit.cf file I use has the line

"DaemonPortOptions=Name=NoMTA, Addr=127.0.0.1, M=E"

Here is what netstat shows :  ( removed some non-essential lines)

Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address        
State
tcp        0      0 0.0.0.0:587             0.0.0.0:*              
LISTEN
tcp        0      0 127.0.0.1:53            0.0.0.0:*              
LISTEN
tcp        0      0 0.0.0.0:25              0.0.0.0:*              
LISTEN
tcp        0      0 0.0.0.0:953             0.0.0.0:*              
LISTEN

It looks like Sendmail is being told to submit outgoing mail
using port 587 to address 0.0.0.0 instead of localhost 127.0.0.1

Below is the d0 display

Version 8.12.11
 Compiled with: DNSMAP LOG MATCHGECOS MIME7TO8 MIME8TO7 NAMED_BIND
		NETINET NETUNIX NEWDB PIPELINING SCANF USERDB XDEBUG

============ SYSTEM IDENTITY (after readcf) ============
      (short domain name) $w = nsw2
  (canonical domain name) $j = nsw2.lin-nett.com
         (subdomain name) $m = lin-nett.com
              (node name) $k = nsw2
========================================================

How can I get submit to use localhost to submit outgoing mail ?

Thanks

Dave Harman
0
6/7/2004 2:32:13 AM
comp.mail.sendmail 13518 articles. 1 followers. jfretby (35) is leader. Post Follow

6 Replies
803 Views

Similar Articles

[PageSpeed] 0

Dave Harman wrote:

> I'm running Sendmail 8.12.11 on Red Hat 9 Kernel 2.4.20-31-9

> I can successfully send mail to my Sendmail server, but when I try to
> send mail out from the Sendmail server, I get the following message:

> makeconnection:
> cannot bind socket [0.0.0.0]
> address already in use.

Where do you get that message?

If it's in syslog: please post the entire entry.

Please also include what exactly you did to get this
and how you started the daemon.

http://www.sendmail.org/~ca/email/doesnt.html

-- 
A: Maybe because some people are too annoyed by top-posting.
Q: Why do I not get an answer to my question(s)?
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
0
Claus
6/10/2004 4:11:20 AM
Claus A�mann <ca+sendmail(-no-copies-please)@mine.informatik.uni-kiel.de> wrote in message news:<ca8n18$mbk$1@zardoc.esmtp.org>...
> Dave Harman wrote:
> 
> > I'm running Sendmail 8.12.11 on Red Hat 9 Kernel 2.4.20-31-9
>  
> > I can successfully send mail to my Sendmail server, but when I try to
> > send mail out from the Sendmail server, I get the following message:
>  
> > makeconnection:
> > cannot bind socket [0.0.0.0]
> > address already in use.
> 
> Where do you get that message?

The message is in /var/log/maillog

It makes these entries in /var/log/maillog when I send mail out
using mutt

Jun 10 06:55:01 nsw2 sendmail[996]: i5ACt1JV000996: from=mailman,
size=289, class=0, nrcpts=1,
msgid=<200406101255.i5ACt1JV000996@nsw2.lin-nett.com>,
relay=mailman@localhost
Jun 10 06:55:01 nsw2 sendmail[997]: i5ACt1JB000997:
from=<mailman@nsw2.lin-nett.com>, size=569, class=0, nrcpts=1,
msgid=<200406101255.i5ACt1JV000996@nsw2.lin-nett.com>, proto=ESMTP,
daemon=MSA, relay=localhost [127.0.0.1]
Jun 10 06:55:01 nsw2 sendmail[996]: i5ACt1JV000996: to=mailman,
ctladdr=mailman (41/41), delay=00:00:00, xdelay=00:00:00,
mailer=relay, pri=30289, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0,
stat=Sent (i5ACt1JB000997 Message accepted for delivery)
Jun 10 06:55:01 nsw2 sendmail[998]: i5ACt1JB000997: forward
/var/mailman/.forward.nsw2+: Group writable directory
Jun 10 06:55:01 nsw2 sendmail[998]: i5ACt1JB000997: forward
/var/mailman/.forward+: Group writable directory
Jun 10 06:55:01 nsw2 sendmail[998]: i5ACt1JB000997: forward
/var/mailman/.forward.nsw2: Group writable directory
Jun 10 06:55:01 nsw2 sendmail[998]: i5ACt1JB000997: forward
/var/mailman/.forward: Group writable directory
Jun 10 06:55:01 nsw2 sendmail[998]: i5ACt1JB000997:
to=<mailman@nsw2.lin-nett.com>, ctladdr=<mailman@nsw2.lin-nett.com>
(41/41), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30811,
dsn=2.0.0, stat=Sent
Jun 10 06:57:45 nsw2 sendmail[1127]: i5ACvi0g001127: from=dave_h,
size=349, class=0, nrcpts=1,
msgid=<20040610125744.GA1121@nsw2.lin-nett.com\r>,
relay=dave_h@localhost
Jun 10 06:57:45 nsw2 sendmail[1128]: i5ACvjHS001128:
from=<dave_h@nsw2.lin-nett.com>, size=510, class=0, nrcpts=1,
msgid=<20040610125744.GA1121@nsw2.lin-nett.com\r>, proto=ESMTP,
daemon=MSA, relay=localhost [127.0.0.1]
Jun 10 06:57:45 nsw2 sendmail[1127]: i5ACvi0g001127:
to=dharman_79907@yahoo.com, ctladdr=dave_h (501/501), delay=00:00:01,
xdelay=00:00:00, mailer=relay, pri=30349, relay=[127.0.0.1]
[127.0.0.1], dsn=2.0.0, stat=Sent (i5ACvjHS001128 Message accepted for
delivery)
Jun 10 06:57:45 nsw2 sendmail[1130]: i5ACvjHS001128: SYSERR(root):
makeconnection: cannot bind socket [0.0.0.0]: Address already in use
Jun 10 06:57:45 nsw2 last message repeated 2 times

I start Sendmail like this : /usr/sbin/sendmail -bd

The maillog shows :

Jun 10 06:53:19 nsw2 sendmail[972]: starting daemon (8.12.11): SMTP

I did a test using the following command :

/usr/sbin/sendmail -v dharman_79907@yahoo.com <sendstuff

and got back the following dialogue :

dharman_79907@yahoo.com... Connecting to [127.0.0.1] port 587 via
relay...
220 nsw2.lin-nett.com ESMTP Sendmail 8.12.11/8.12.11/8.12.11; Thu, 10
Jun 2004 09:27:24 -0600
>>> EHLO nsw2.lin-nett.com
250-nsw2.lin-nett.com Hello localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-EXPN
250-VERB
250-8BITMIME
250-SIZE
250-DSN
250-DELIVERBY
250 HELP
>>> MAIL From:<root@nsw2.lin-nett.com> SIZE=42
250 2.1.0 <root@nsw2.lin-nett.com>... Sender ok
>>> RCPT To:<dharman_79907@yahoo.com>
>>> DATA
250 2.1.5 <dharman_79907@yahoo.com>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
250 2.0.0 i5AFROg3001086 Message accepted for delivery
dharman_79907@yahoo.com... Sent (i5AFROg3001086 Message accepted for
delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 nsw2.lin-nett.com closing connection


Thanks for your consideration of my problem.

Dave Harman
0
6/10/2004 3:35:12 PM
Dave Harman wrote:

> msgid=<20040610125744.GA1121@nsw2.lin-nett.com\r>,

Does the message id end with a CR?

> Jun 10 06:57:45 nsw2 sendmail[1130]: i5ACvjHS001128: SYSERR(root):
> makeconnection: cannot bind socket [0.0.0.0]: Address already in use
> Jun 10 06:57:45 nsw2 last message repeated 2 times

> I start Sendmail like this : /usr/sbin/sendmail -bd

Use

/usr/sbin/sendmail -bd -L sm-mta

so the daemon logfile entries can be easily recognized.

> /usr/sbin/sendmail -v dharman_79907@yahoo.com <sendstuff

Try again as root:

/usr/sbin/sendmail -Am -v dharman_79907@yahoo.com <sendstuff


What's your mc file?
-- 
A: Maybe because some people are too annoyed by top-posting.
Q: Why do I not get an answer to my question(s)?
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
0
Claus
6/10/2004 4:10:58 PM
Claus A�mann <ca+sendmail(-no-copies-please)@mine.informatik.uni-kiel.de> wrote in message news:<caa16i$md4$1@zardoc.esmtp.org>...

> Does the message id end with a CR?

I looked at the maillog and don't see a CR

> Use
> 
> /usr/sbin/sendmail -bd -L sm-mta

I started sendmail as you told me = here is the maillog entry

Jun 11 16:16:40 nsw2 sm-mta[5119]: starting daemon (8.12.11): SMTP

> 
> so the daemon logfile entries can be easily recognized.
> 
> > /usr/sbin/sendmail -v dharman_79907@yahoo.com <sendstuff
> 
> Try again as root:
> 
> /usr/sbin/sendmail -Am -v dharman_79907@yahoo.com <sendstuff

I tried again as root, here are the maillog entries :

Jun 11 16:16:40 nsw2 sm-mta[5119]: starting daemon (8.12.11): SMTP
Jun 11 16:17:42 nsw2 sendmail[5122]: i5BMHgWs005122: from=root,
size=42, class=0, nrcpts=1,
msgid=<200406112217.i5BMHgWs005122@nsw2.lin-nett.com>,
relay=root@localhost
Jun 11 16:17:42 nsw2 sendmail[5122]: i5BMHgWs005122: SYSERR(root):
makeconnection: cannot bind socket [0.0.0.0]: Address already in use
Jun 11 16:17:42 nsw2 last message repeated 2 times
Jun 11 16:17:42 nsw2 sendmail[5122]: i5BMHgWs005122:
to=dharman_79907@yahoo.com, ctladdr=root (0/0), delay=00:00:00,
xdelay=00:00:00, mailer=esmtp, pri=30042, relay=mx4.mail.yahoo.com.
[64.156.215.19], dsn=4.0.0, stat=Deferred: Address already in use

> 
> 
> What's your mc file?

Here is my mc file 

#
  # Copyright (c) 1998, 1999 Sendmail, Inc. and its suppliers.
  #	All rights reserved.
  # Copyright (c) 1983 Eric P. Allman.  All rights reserved.
  # Copyright (c) 1988, 1993
  #	The Regents of the University of California.  All rights reserved.
  #
  # By using this file, you agree to the terms and conditions set
  # forth in the LICENSE file which can be found at the top level of
  # the sendmail distribution.
  #
  #
VERSIONID(`Red Hat Linux 9')dnl
OSTYPE(`linux')dnl
DOMAIN(`lin-nett.com')dnl
undefine(`UUCP_RELAY')dnl
undefine(`BITNET_RELAY')dnl
define(`confCF_VERSION', `8.12.11')dnl
define(`confDEF_USER_ID', ``8:12'')dnl
define(`confTO_QUEUEWARN', `3h')dnl
define(`confTO_QUEUERETURN', `3d')dnl
define(`confTO_CONNECT', `2m')dnl
define(`QUEUE_DIR', `/var/spool/mqueue')dnl
define(`STATUS_FILE', `/etc/mail/statistics')dnl
define(`ALIAS_FILE', `/etc/mail/aliases')dnl
define(`MSP_QUEUE_DIR', `/var/spool/clientmqueue')dnl
define(`confQUEUE_SORT_ORDER', r)dnl
define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
define(`confPRIVACY_FLAGS', `authwarnings,novrfy,restrictqrun')dnl
define(`confAUTH_OPTIONS', `A')dnl
define(`confSMTP_MAILER', `esmtp')dnl
define(`LOCAL_MAILER_ARGS', `procmail -t -Y -a $h -d $u')dnl
DAEMON_OPTIONS(`Port=smtp,Name=MTA')dnl
CLIENT_OPTIONS(`port=587,Name=MSA,M=E')dnl
RELAY_DOMAIN_FILE(`-o /etc/mail/relay-domains')dnl
FEATURE(`accept_unresolvable_domains')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(`always_add_domain')dnl
FEATURE(`redirect')dnl
FEATURE(`use_cw_file')dnl
FEATURE(`use_ct_file')dnl
FEATURE(`relay_based_on_MX')dnl
FEATURE(`smrsh', `/usr/sbin/smrsh')dnl
FEATURE(`local_procmail', `/usr/bin/procmail')dnl
MAILER(`smtp')dnl
MAILER(`procmail')dnl
Cwnsw2.lin-nett.com

Thanks for looking at this

Dave Harman
0
6/11/2004 10:41:50 PM
Dave Harman wrote:
> Claus A�mann 

> > Does the message id end with a CR?
> 
> I looked at the maillog and don't see a CR

The log showed '\r'

This:
> define(`MSP_QUEUE_DIR', `/var/spool/clientmqueue')dnl

doesn't belong here. It's for the MSP (submit.mc).

And this:
> CLIENT_OPTIONS(`port=587,Name=MSA,M=E')dnl

causes the error. Why do you use it?
Remove it (and read doc/op/op.* about it).

If you want to use the tables:
> FEATURE(`mailertable', `hash -o /etc/mail/mailertable.db')dnl
> FEATURE(`virtusertable', `hash -o /etc/mail/virtusertable.db')dnl

then remove '-o' and '.db'.

-- 
A: Maybe because some people are too annoyed by top-posting.
Q: Why do I not get an answer to my question(s)?
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
0
Claus
6/12/2004 4:10:35 PM
Claus A�mann <ca+sendmail(-no-copies-please)@mine.informatik.uni-kiel.de> wrote in message news:<caf9tr$84c$1@zardoc.esmtp.org>...


Claus, 

I followed your instructions and I can now send mail out.

Thank you very much for your help.

Dave Harman
0
6/13/2004 12:46:21 AM
Reply:

Similar Artilces:

sendmail won't send mail again
Hello! I want to use a perl CGI script behind apache to serve info inqueries and did something like the following: open(MAIL,"| $mailprog -t"); print MAIL "To: $to\n"; print MAIL "From: $webmaster_email\n"; print MAIL "X-Mailer: DaySpot Powered.\n"; print MAIL "Subject: $subject\n\n"; print MAIL "$message"; print MAIL "\n.\n"; close MAIL; Where From field is some yahoo email account. The apache runs as apache:apache. Now I find it couldn't send out ...

Sendmail won't send mail hotmail.
Okay so I bought ipalaces.org through netfirms.com, I then transfered over the nameservers to zoneedit.com because I want to have better control of the DNS. I have ipalaces.org and *.ipalaces.org set to the IP 72.249.127.98 I am using Sendmail 8.13.8 on debian hosted on a virtual private server. I have asked my VPS host to set up a PTR record for ipalaces.org to point back to 72.249.127.98. I have the following setup for sendmail.mc MASQUERADE_AS(`ipalaces.org')dnl CLIENT_OPTIONS(`Family=inet, Address=72.249.127.98')dnl I have used make in /etc/mail/ to apply the changes to sendmail...

newbie question: sendmail doesn't send mail to external mail account.
Hi there, It seems send mail doesn't send mail to external mail account in my FreeBSD 4.8 BOX. However, I'm able to receive mail from external mail, such as yahoo, hotmail account. My config is: FreeBSD 4.8 ISP: bell Sympatico high speed with dynamic IP address. SMTP port is enabled on the router/firewall. Can anyone help? bluesnow#mail -v calvin2k_cn@yahoo.com Subject: This is a test. Do you hear me? EOT calvin2k_cn@yahoo.com... Connecting to [127.0.0.1] via relay... 220 bluesnow.gotdns.com ESMTP Sendmail 8.12.8p1/8.12.8; Thu, 26 Jun 2003 17:14:51 -0400 (EDT) &...

Mail won't send from Mail
I have a bunch of old mail stuck in my outbox. I didn't go out the first time because of a connection problem. Well, now it's been there for three weeks. How the heck do I send it? Maury Maury Markowitz <maury_markowitz@hotmail.com> wrote: > I have a bunch of old mail stuck in my outbox. I didn't go out the first > time because of a connection problem. Well, now it's been there for > three weeks. How the heck do I send it? "A connection problem" is _somewhat_ vague, you know. ;-) You'll have to be a _little_ more specific than that, I think, ...

I can't send mail. Sendmail problem?
I point to /usr/sbin/sendmail in the .muttrc file, but when I try sending mail it gets redirected to my mailspool, error notes attached. What do the men and women of this group do to send mail with mutt? Thanks in advance. Naota ZZ -- naSota@tPampabay.rAr.cMom - > (remove 'S P A M') * Naota <see@the.signature>: > I point to /usr/sbin/sendmail in the .muttrc file, > but when I try sending mail it gets redirected to my > mailspool, error notes attached. What do the men > and women of this group do to send mail with mutt? we usually use the de...

Sendmail can't send mail when Iptables is on
Hi, I run Sendmail 8.12 on a RH 9 box When IPtables is on, Sendmail can receive mail OK no problem. But I can't send any mail unless I turn Iptables off. I have coding in the firewall script that allows SMTP in and out. When I try to send something out, I do a iptables -L -n -v and save the output. I can see a small number od packets sent out to port 25 of mail recipient, but nothing comes back. As soon as I turn off Iptables the mail goes right out. Would appreciate any thoughts Thanks ! Dave Harman dharman@lin-nett.com (Dave Harman) writes: > Hi, > ...

Sendmail won't submit outgoing mail to localhost
Hi List, I'm running Sendmail 8.12.11 on Red Hat 9 Kernel 2.4.20-31-9 I can successfully send mail to my Sendmail server, but when I try to send mail out from the Sendmail server, I get the following message: makeconnection: cannot bind socket [0.0.0.0] address already in use. Below I include the d0 display and netstat The submit.cf file I use has the line "DaemonPortOptions=Name=NoMTA, Addr=127.0.0.1, M=E" Here is what netstat shows : Proto Recv-Q Send-Q Local Address Foreign Addr State tcp 0 0 0.0.0.0:37 0.0.0.0:* LISTEN tcp ...

root can't send e-mail by sendmail
Hello, user root can't send e-mail. Error is: Sender address not valid or DSN: user not found If I send as any other user even not existing then it works, but if sending as root (from crontab let say) then is never delivered despite it is saying Message accepted for delivery. Is it problem on my server or on remote sendmail relay? Does anybody know how to fix it? Thank you [root@serverA mail]# mail -v -s 'testing sendmail' user@firm.com some text .. Cc: user@firm.com... Connecting to [32.95.226.249] via relay... 220 ********************************************...

Can't send mail with mutt, using sendmail. TIA
Sendmail's on my system, but I don't use it. I'm trying to use it now that I use mutt, though. In the .muttrc file, I put sendmail="/usr/bin/sendmail" but it doesn't send. Actually, it sends, but gets returned to my system. Please help. Naota -- naSota@tPampabay.rAr.cMom - > (remove 'S P A M') On Fri, 28 Nov 2003 18:41:47 GMT, Naota <see@the.signature> wrote: > Sendmail's on my system, but I don't use it. I'm trying to use it now > that I use mutt, though. In the .muttrc file, I put > sendmail="/usr/bin/sendmail&...

Mail won't check mail
Ihad a difficulty yesterday, and after I recovered, I found that Mail won't check mail. I send an email from my .mac account to my earthlink account and mail will not retreive it. I checked my email using the web-email and found the mail there, and some mail from others. What could cause Mail to stop retreiving mail? How can I fix it? Thanks, AndyD In article <1grf1p0.1m0bixe1503zn4N%andyda@earthlink.net>, Andy Dannelley <andyda@earthlink.net> wrote: > Ihad a difficulty yesterday, and after I recovered, I found that Mail > won't check mail. > > I send ...

'mail'/'sendmail' with higher priority??
Is there a way to send high priority mails to the other specific unix users, by using my unix login? I checked with the options for 'mail' and 'sendmail' and couldn't find anything relevant to it. qazmlp1209@rediffmail.com writes: > Is there a way to send high priority mails to the other specific unix > users, by using my unix login? I checked with the options for 'mail' > and 'sendmail' and couldn't find anything relevant to it. Normally, mail goes into a queue for delivery. And the queue process sends out the mail. With the right priviled...

can't send mail using mail()
hello, i am new to sending mail with php. the first function i tried is the mail(). when i passed the required parameters (to, message,subject), the apache error log said that the parameters are uninitialised. but the parameters already had value. do you know what is wrong? thank you fasisi wrote: > hello, > > i am new to sending mail with php. the first function i tried is the > mail(). when i passed the required parameters (to, message,subject), > the apache error log said that the parameters are uninitialised. but > the parameters already had value. > > do you ...

Sending mail without sendmail or highly secure sendmail
Hello all, I am setting up a very secure Red Hat Enterprise Linux Advanced Server version 4 update 6 server. My sendmail version is 8.13.1. My mail server is a Windows 2003 Server with Exchange 2003 with its patches. They are both on the same subnet. DNS is on and it will resolve the mail server's name and IP. SSH, SCP, SFTP, and such tools are the only networkable protocols on. NFS if off, MOUNTD is off, PORTMAP is off, and such. Until just recently sendmail was off on the RHEL server as part of the hardening procedure. However part of the auditing requirements is for a mail messag...

Why won't Mail send?
I try sending a message but it goes right into the Outbox...no progress bar in the Activity Monitor, no audible "swish", Connection Doctor shows green dots for all accounts in/out... I quit Mail and re-launch, open the message and click SEND and it goes right away. Happening every time now, with dot.Mac, Yahoo and other POP accounts. Makes me wanna switch to Entourage (ugh). I've deleted my com.mail preferences, rebuilt my mailboxes but still no luck. Anyone had this issue before? In article <170520082231493311%melvin@nospam.net>, melvin <melvin@nospam.net> wrote:...

Web resources about - Sendmail won't send mail - comp.mail.sendmail

Resources last updated: 2/5/2016 1:41:03 PM