You are here
Home > Redhat > Send Mail

Send Mail

Heading

Sendmail Configuration

Access configuration

Dovecot configuration

Sendmail Configuration Files

# /etc/mail/

# vi /etc/mail/sendmail.cf

Configure Sendmail in sendmail.cf File

Step 1

Cwtraining.com

Step 2

#my Official Domain

Dj$w.training.com

Step 3

#SMTP initial login message

oSmtpGreetingMessage=$

Step 4

# SMTP daemon options

O DaemonPortOptions=Port=smtp,Addr=127.0.0.1, Name=MTA
change to

O DaemonPortOptions=Port=smtp,Addr=192.168.100.134, Name=MTA

Step 5

Start the Servcie

# /etc/inint.d/sendmail start

Configure in local-host-names

Now that we have sendmail accepting external connections, we need to assign the domains that can be accepted. This can be accomplished with the /etc/mail/local-host-names file. Simply put the domain name, blank.com, in the file.

Configure in access file

# by default we allow relaying from localhost…

localhost.localdomain RELAY

localhost RELAY

127.0.0.1 RELAY

Training.com RELAY

[root]# makemap hash /etc/mail/access.db< /etc/mail/access

The make access.db command will include your new setting in the hash database used by sendmail to determine who can relay e-mail off your server. This will allow connections from inside the smartentry.in domain to relay e-mail from your new mail server.

Configuring DOVECOT

    1. protocols = imapimaps pop3 pop3s

    2. auth_mechanisms = plain

    3. mail_location

Testing SMTP Mail Service

Testing POP3 Mail Service

Testing IMAP Mail Service

Test Mail server through telnet, port 25 SMTP

# telnet<IP Address> 25

# helo<Domain Name>

# mail from:<sender@domain.com>

# rcpt to:<recipient@domain.com>

# data<Type body of the mail>.

# . To terminate this line

# quit

Example

# helotraining.com

# mail from:<test@training.com>

# rcpt to:<smart@gmail.com>

# data<This is test mail>.

# . To terminate this line

# quit

Test Mail server through telnet, port 110 SMTP

# telnet<IP Address> 110

# USER <User Name>

# PASS <Password>

# LIST

Example

# telnet<IP Address> 110

+OK dovecot ready

# USER smart

+OK

# PASS mail@123

+OK Logged in

# LIST

+OK 1 messages

Test Mail server through telnet, port 143 SMTP

# telnet<IP Address> 143

# LOGIN <User Name><Password>

# LIST “” *

# SELECT <Mail Box>

Example

# telnet<IP Address> 143

# LOGIN <smart><mail@123>

# LIST “” *

# SELECT <smart>

 

Leave a Reply

Top