I am trying to run sendmail from a script with the results from that same script.
Each time I use sendmail I get the following message in /var/log/maillog:
Feb 27 02:25:42 (none) sendmail[13841]:
m1R1Pg3S013841: to=test@test.com,just,testing,
ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay,
pri=94953, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred:
Connection refused by [127.0.0.1]
Also the command telnet localhost 25, or telnet "my current IP" 25 give "connection refused"
I have no idea where to start, I did read about sendmail.mc file but in /etc/mail I have no such file. Is this file supposed to be there? Do I just make this file with the correct options? Also can I authenticate to my SMTP server from the same file? In other words... how do I get this working? 
Thanks in advance for any input.