LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   mail server configuration (https://www.linuxquestions.org/questions/linux-networking-3/mail-server-configuration-249686/)

cyrilvictor 10-31-2004 11:37 PM

mail server configuration
 
pls can any one help me out regarding configuring mail servers.

i need the setps to configure mail server in linux.


thanks in advance

dalek 11-01-2004 12:53 AM

I don't know how to do it but I found a how to for ya.

http://tldp.org/HOWTO/HOWTO-INDEX/index.html

It's under 4.5. May want to check out all the others too. Good reading there.

Hope that help, or somebody better comes along.

:D :D :D :D

tlowk 11-01-2004 01:50 AM

What distribution are you considering and which smtp server?

I've done slackware with sendmail and the pop and pine (included in slackware) so in case you like to know more about it, just ask.

cyrilvictor 11-01-2004 02:53 AM

pls about send mail ->mail server congi
 
can u send me the steps to configure mail server configuration through SENDMAIL

cyrilvictor 11-01-2004 02:53 AM

xasas

tlowk 11-01-2004 03:10 AM

the configuration works with a config file that you send through m4
a preprocessor

in directory (or similar on your distro)
/usr/share/sendmail/cf/cf
you have some config files maybe there is one with the name of your distro
eg sendmail-slackware.mc
copy that one to a file my-sendmail.mc (or similar)

in this file you need to configure some options (mine is below):

include(`../m4/cf.m4')
VERSIONID(`default setup for Slackware Linux')dnl
OSTYPE(`linux')dnl
dnl# These settings help protect against people verifying email addresses
dnl# at your site in order to send you email that you probably don't want:
define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl
dnl# Uncomment the line below to send outgoing mail through an external server:
dnl define(`SMART_HOST',`mailserver.example.com')
dnl# No timeout for ident:
define(`confTO_IDENT', `0')dnl
dnl# Enable the line below to use smrsh to restrict what sendmail can run:
dnl FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
dnl# See the README in /usr/share/sendmail/cf for a ton of information on
dnl# how these options work:
define(`SMART_HOST',`uit.telenet.be')dnl
FEATURE(`use_cw_file')dnl
FEATURE(`use_ct_file')dnl
FEATURE(`masquerade_envelope') dnl
FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl
FEATURE(`genericstable',`hash -o /etc/mail/genericstable.db')dnl
GENERICS_DOMAIN_FILE(`/etc/mail/generics-domains')dnl
FEATURE(`access_db', `hash -T<TMPF> /etc/mail/access.db')dnl
FEATURE(`blacklist_recipients')dnl
FEATURE(`local_procmail',`',`procmail -t -Y -a $h -d $u')dnl
FEATURE(`always_add_domain')dnl
FEATURE(`redirect')dnl
dnl# Turn this feature on if you don't always have DNS, or enjoy junk mail:
dnl FEATURE(`accept_unresolvable_domains')dnl
EXPOSED_USER(`root')dnl
dnl# Also accept mail for localhost.localdomain:
LOCAL_DOMAIN(`localhost.localdomain')dnl
MAILER(local)dnl
MAILER(smtp)dnl
MAILER(procmail)dnl

most important is probably the SMART_HOST if you need this, depends on your provider, if you don't need it just omit it.


When you have this file you need to 'compile' it

m4 < /usr/share/sendmail/cf/cf/my-sendmail.mc > /etc/mail/sendmail.cf


this is a first step

then in /etc/mail I have these files:

Makefile aliases.db genericstable mailertable.db
genericstable.db sendmail.cf trusted-users
access domaintable helpfile virtusertable
access.db domaintable.db local-host-names statistics virtusertable.db
aliases generics-domains mailertable submit.cf


The db files are generated with the make file. (check wether you have it)

the most important onse are access and local-host-names
also generics-domains and genericstable allow to change the adresses for mail from this
server to get a public email address.

If you have more questions just ask

Regards

Tllowk

cyrilvictor 11-01-2004 03:53 AM

which is more efficent SENDMAIL or QMAIL
 
since i am a newbie can u just give me the differences between SENDMAIL and QMAIL,
Suggest me which one to use.
thanks in advance.

maxut 11-01-2004 06:12 AM

hello,
i prefer qmail. qmail is the fastest and the most secure.
if u want qmail, u can install it by following the guide at www.qmailrocks.org

good luck.

cyrilvictor 11-01-2004 07:56 AM

Thank you
 
thank u,
in due course i will mail u regarding any doubts,
thanks a lot


All times are GMT -5. The time now is 09:47 PM.