Operating System - Linux
1827620 Members
3281 Online
109966 Solutions
New Discussion

Re: Sendmail Configration !!!!!!!

 
Usman_2
Occasional Contributor

Sendmail Configration !!!!!!!

I have installed Linux 7.2 and now I want to configure sendmail.
Can any body tell me the steps that are required for configuratin??

I will thanks to that person???

Hope an early reply.
8 REPLIES 8
R. Sri Ram Kishore_1
Respected Contributor

Re: Sendmail Configration !!!!!!!

You'll find the required docs at:
http://sendmail.org/

HTH.
Regards,
Sri Ram
"What goes up must come down. Ask any system administrator."
Shaikh Imran
Honored Contributor

Re: Sendmail Configration !!!!!!!

Hi,

You have to post this in Linux forum


BTW,
It's mentioned in this link also:
http://www.webmo.net/support/linux72.html

It's in the "G" subtopic....

Regards,



I'll sleep when i am dead.
Geoff Wild
Honored Contributor

Re: Sendmail Configration !!!!!!!

Sendmail works out of the box - all depends on what you want to do...please be more specific in your question - do you want to masquerade? Do you want to relay certain domains? Do you want to send all mail toe a Smart Relay?

Check out http://www.sendmail.org

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Senthilmurugan
Frequent Advisor

Re: Sendmail Configration !!!!!!!

Hello Usman

A very good documentation on the sendmail configuration is available in the following location.

http://www.redhat.com/docs/manuals/linux/RHL-7.2-Manual/ref-guide/s1-email-sendmail.html

Here You can get the details clearly.

Regards,
Senthil Murugan

sambaiah
Occasional Advisor

Re: Sendmail Configration !!!!!!!


Hi,
You wanted to run sendmail for internet mail
send/recieve, then I am afraid you take
some time to understand. The issues you
need to take care are
i) Relaying and smtp auth
ii) Virus and Spam checking etc

The best way is .mc file. There is one
/etc/mail/sendmail.mc which is easy to
read and understand. You need to change
entries for Cw and masquerading etc.
Create a mc file and run
m4 your_sendmail.mc > sendmail.cf in /opt
directory.
cp /opt/sendmail.cf to /etc/mail and
restart sendmail.
thanks,
Sam
Usman_2
Occasional Contributor

Re: Sendmail Configration !!!!!!!

Hello!!!
I am not going to run sendmail on internet.I want to run it on LAN.So tell me the steps of configuration????

What file is needed to change and also tell me the changes???

Thanks

Bye
Senthilmurugan
Frequent Advisor

Re: Sendmail Configration !!!!!!!

By default, Sendmail will install the configuration files in the /etc/mail/ location.
create a file /etc/mail/sendmail.mc
An example mc file, /etc/mail/sendmail.mc, might look like the following on a mail hub
-------------------------------
divert(0)dnl
VERSIONID(`@(#)gateway.mc 1.0 (Mydomain) 01/08/2004')
OSTYPE(linux)dnl
FEATURE(`nouucp',`reject')dnl
MASQUERADE_AS(`my.domain')dnl
FEATURE(`redirect')dnl
FEATURE(`masquerade_envelope')dnl
FEATURE(`use_cw_file')dnl
FEATURE(`local_procmail')dnl
FEATURE(`always_add_domain')dnl
FEATURE(`masquerade_entire_domain')dnl
FEATURE(`allmasquerade')dnl
FEATURE(`access_db')dnl
LOCAL_USER(`root')dnl
EXPOSED_USER(`root')dnl
#
define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy')dnl
define(`confTO_IDENT', `0s')dnl
define(`confSMTP_LOGIN_MSG', `$j (NO UCE)')dnl
define(`confMILTER_LOG_LEVEL',`1')dnl
INPUT_MAIL_FILTER(`mimedefang',
`S=unix:/var/spool/MIMEDefang/mimedefang.sock,
F=T, T=S:1m;R:1m')
MAILER(local)dnl
MAILER(smtp)dnl
-----------------------------------

NOTE: if you are using the sendmail with MIMEDefang you can use the above configuration with appropriate changes.

-------------------------------
After creating the configuration file like the above,Run the mc file through m4 to generate a new Sendmail configuration file:

m4 /usr/lib/mail/m4/cf.m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

Regards,
Senthil Murugan

Steven E. Protter
Exalted Contributor

Re: Sendmail Configration !!!!!!!

The best place to learn about sendmail is:

http://www.sendmail.org

The prior post is also excellent.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com