We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you a podcast all about Citrix Workspace, moving to the cloud, and analytics & intelligence. Episode 2 coming soon!Listen Now

x

How to configure Sendmail in Redhat Enterprise 3

fadyz
fadyz asked
on
Medium Priority
776 Views
Last Modified: 2010-03-18
Dear all;

        I'm looking to configure sendmail on redhat enterprise 3, I hope you provide step by step configuration regards this, i knew the application is installed, i need explication regards all configuration files of sendmail which help us to understand it well and be able to manage it,

                   Thanks alot
     
Comment
Watch Question

Commented:

Sendmail configuration:

http://www.sendmail.org/m4/readme.html

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Configuring Sendmail

1). Edit file "/etc/mail/sendmail.mc" - Look for the line:

    DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')

Change this line to:

    dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')

Save the file.

2). Make the sendmail configuration file:
$> m4 /etc/mail/sendmail.mc > /etc/sendmail.cf

3).Restart Sendmail:
$> /etc/rc.d/init.d/sendmail restart
Commented:
Continue from paullamhkg's comment....

You've just enable port 25 for universal access, to test:-
# netstat -ntlp

You will notice
0.0.0.0:25 ............. sendmail
Good!
Next,

# vi /etc/mail/local-host-names
myexample.com
smtp.myexample.com

# vi /etc/mail/access
192.168.0.0    RELAY

First file "local-host-names" is to tell sendmail, which domain you are accepting.
2nd file "access" is to tell sendmail, which computers in your network are allowed to use this smtp server (sendmail box) to relay email for them (client need to change their outgoing smtp ip address to this sendmail box)

# service sendmail  restart

Once, you've done with SMTP, now IMAP and POP3.
# redhat-config-packages     <--- use GUI also can, to add/remove programs
(Mail Group)
(IMAP server)

Next,
# chkconfig  imap  on
# chkconfig  pop3  on

To test,
# telnet  localhost  110       <------this is for POP3
quit
# telnet  localhost 143       <-----this is for IMAP4
0000 logout

Then try with your client's outlook, or outlook express


Commented:
Of coz, don't forget to create some users for testing

# useradd  linuxrocks
# passwd  linuxrocks
****key in your password here, twice*****

Users by default will automatically have POP3 and IMAP access

Author

Commented:
i worked till i got an error when i tried to telnet the POP3 , i got an error that the file not found..

Commented:
Mind post the error message?
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.