How to configure Sendmail in Redhat Enterprise 3

Posted on 2006-03-26
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
Question by:fadyz
    LVL 14

    Accepted Solution


    Sendmail configuration:

    LVL 12

    Assisted Solution

    Configuring Sendmail

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

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

    Change this line to:

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

    Save the file.

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

    3).Restart Sendmail:
    $> /etc/rc.d/init.d/sendmail restart
    LVL 3

    Assisted Solution

    Continue from paullamhkg's comment....

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

    You will notice ............. sendmail

    # vi /etc/mail/local-host-names

    # vi /etc/mail/access    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)

    # chkconfig  imap  on
    # chkconfig  pop3  on

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

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

    LVL 3

    Expert Comment

    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 Comment

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

    LVL 3

    Expert Comment

    Mind post the error message?

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Suggested Solutions

    I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
    Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now