Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Re: (nrd) Bloody sendmail

by ok (Scribe)
on Dec 31, 2002 at 15:57 UTC ( #223355=note: print w/replies, xml ) Need Help??


in reply to Re: (nrd) Bloody sendmail
in thread Bloody sendmail

I've given them days so it's not that. this is the error in mail log.

Dec 31 10:46:35 finn sendmail12925: gBVFkYsF012925: to=<anders@localhost>,<afinn@purdue.edu>, ctladdr=anders@finn.ws (500/100), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=60558, relay=localhost.nycap.rr.com. 127.0.0.1, dsn=4.0.0 , stat=Deferred: Connection refused by localhost.nycap.rr.com.

any ideas?

Replies are listed 'Best First'.
Re: Re: Re: (nrd) Bloody sendmail
by slugmax (Hermit) on Dec 31, 2002 at 17:04 UTC
    Your local sendmail probably thinks that 'localhost.nycap.rr.com' is not local, and is denying a relay.
    Make sure your /etc/hosts file has both 'localhost' and 'localhost.nycap.rr.com' entries, both defined as '127.0.0.1'.
    Doug
Re: Re: Re: (nrd) Bloody sendmail
by pfaut (Priest) on Dec 31, 2002 at 17:15 UTC

    'Connection refused' is a TCP/IP error, not a sendmail error. It means you are attempting to connect to a port where there is no server running. Make sure that there is actually a sendmail daemon running on whatever localhost.nycap.rr.com translates to (probably the machine you are running your script on) and that it is running in server mode.

    If this were a relaying problem, he'd be getting something like 'relay denied', not 'connection refused'. He hasn't even established a connection to sendmail. Relaying has not yet come into play here.

    How are you sending the mail? Are you piping to sendmail or mail? Are you using modules? Your original note was light on details.

    --- print map { my ($m)=1<<hex($_)&11?' ':''; $m.=substr('AHJPacehklnorstu',hex($_),1) } split //,'2fde0abe76c36c914586c';
      exactly my point pfaut. I've actually tried several things. I've done the mail:sendmail thing with perl. I've tried mail function in PHP. (so yea, going through sendmail both times) and neither worked. I'm thinking my problem may lie in it's trying to mail from localhost.nycap.rr.com. My domain is finn.ws however, since we reside on the roadrunner network, I'm thinking something is resolving our dns to the roadrunner one instead of the finn.ws one. . . Sendmail hasn't had problems until now and mailing from imap and pop3 still works fine inside and outside the network.

      See, to me, I'm thinking the connection refused is comming up because there is no localhost.nycap.rr.com and it should be connecting to localhost or finn.ws. to mail.
Re: Re: Re: (nrd) Bloody sendmail
by mpeppler (Vicar) on Dec 31, 2002 at 17:00 UTC
    Edit the file /etc/mail/access and add
    localhost.nycap.rr.com RELAY
    Restart sendmail - it should now allow relaying from this host.

    Michael

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://223355]
help
Chatterbox?
and nobody stirs...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (1)
As of 2018-08-17 01:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Asked to put a square peg in a round hole, I would:









    Results (174 votes). Check out past polls.

    Notices?