How do I configure sendmail?

Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How do I configure sendmail?
# 1  
Old 02-27-2008
How do I configure sendmail?

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]:
 ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay,
 pri=94953, relay=[] [], dsn=4.0.0, stat=Deferred:
 Connection refused by []

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 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? Smilie

Thanks in advance for any input.
# 2  
Old 03-02-2008
Look like your sendmail don't accept connection at all...

Try this to create new
- have installed

- vi /etc/mail/

- by default sendmail only listen to, so comment it as
dnl DAEMON_OPTIONS(`Port=smtp,Addr=, Name=MTA')dnl

- use m4 to generate new
# m4 /etc/mail/ > /etc/mail/
note: This will overwrite existing, if needed do a backup

- restart sendmail, check with to, it shd show sendmail accepting connection
# ps -ef|grep -i sendmail

- telnet to port 25 to try also...

- test mail...
# mail -s "Testing"

If still not work, do you have any firewall blocking port 25?

Hope this will help...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Configure sendmail with SMTP

Hello, I'm trying to configure sendmail with SMTP authentication on a SunOS 5.11 operating system. I have been read various documentation / tutorials and unfortunately is not working. I need help from someone who has configured smtp on this operating system. When I try to send a mail, I have... (2 Replies)
Discussion started by: d4rkm4nx99
2 Replies

2. Shell Programming and Scripting

Configure CC list in sendMail

Hi All, When I send a mail using sendMail command it sends a mail to the concerned with few people in cclist. Not sure where cc list is configured. I want to change that cc list configuration. Please help. Thanks and Regards Nagaraja Akkivalli. (5 Replies)
Discussion started by: Nagaraja Akkiva
5 Replies

3. Solaris

Help to configure sendmail on Solaris 10

Hello, I need help to configure sendmail on Solaris 10. I have to configure sendmail to send mail on the Internet, now works only for sending mail for local users. I'm studying several tutorials ... When I try to send a mail to an external address (eg the mail is placed... (3 Replies)
Discussion started by: arfry
3 Replies

4. Solaris

Configure mailx or sendmail

hi, I would like to configure mailx or sendmail to send out some mails to some users. I tried searching online for the configuration but it was kinda confusing. I thought that posting here might get someone to work with me step by step I tried sending out mail but i did not receive in my... (4 Replies)
Discussion started by: cghcgh
4 Replies

5. AIX

How to configure sendmail for AIX 5.3

Hello All, I am very new to this sendmail thing. I need to set up AIX servers with sendmail service to get emails in my corporate email address. All I am asked to do is use SMTP gateways (already in place) for using sendmail. thanks in advance (0 Replies)
Discussion started by: solaix14
0 Replies

6. Cybersecurity

How to configure sendmail in solaris 10

how to configure sendmail in solaris 10 ???? Anyone knows, pls share the documents. (1 Reply)
Discussion started by: vishwanathhcl
1 Replies

7. Solaris

How to configure Sendmail for simply use?

Hi lads, would you be able to advice, please, how to configure Sendmail for sending casual emails (like with Thunderbird or Outlook). Before I used Exim 4 in Debian and did not have any problem with configuration. Knowledges almost zero, but know what is MTA, MUA, etc. Workstation is typical,... (3 Replies)
Discussion started by: andrbu
3 Replies

8. UNIX for Advanced & Expert Users

How to configure sendmail in linux

Hi, I want to know how to configure emails in linux.First how to configure inside the firewall and second how to configure it outside the firewall? Regards, Rajesh (1 Reply)
Discussion started by: rajbal
1 Replies

9. AIX

Simple way to configure sendmail

Hi, Can anybody guide where can i get the procedure of configuring sendmail on aix 4.3.3 in a simple way. I dont know anything about sendmail. Cheers, Vinod.. (1 Reply)
Discussion started by: vinod2all
1 Replies

10. UNIX for Dummies Questions & Answers

How to configure sendmail on AIX4.3.3.

Hi! I want to enable sendmail facility on my AIX 4.3.3 box. I know that the configuration must be populated with the necessary info according to my needs. Question is what are those, and what is the syntax? Other than, are there any configuration files i need to edit? ... (1 Reply)
Discussion started by: jolobets
1 Replies
Login or Register to Ask a Question