LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-12-2003, 06:09 PM   #1
tthai01
LQ Newbie
 
Registered: Nov 2002
Posts: 12

Rep: Reputation: 0
Help me configure Sendmail server!


Hi,

I try to configure Sendmail as a server for other clients in my network, but I don't know

what options I have to edit in /etc/mail/sendmail.mc file (I use Redhat 8.0) and how I can edit this file.

Help me!
Thanh Hai
 
Old 02-12-2003, 08:07 PM   #2
jamrock
Member
 
Registered: Jan 2003
Location: Kingston, Jamaica
Posts: 444

Rep: Reputation: 41
You also have the option of using qmail.

If you want, you can look at http://web.infoave.net/~dsill/lwq.html


I got sendmail working after reading the following:

http://www.linuxgazette.com/issue45/pollman/mail.html

http://www.linuxjournal.com/article.php?sid=5753

http://www.linuxjournal.com/article.php?sid=4539

http://www.linuxjournal.com/article.php?sid=5507

Before tackling email, make sure you understand DNS. You should have DNS configured properly if you want your email to work efficiently.
 
Old 02-12-2003, 08:18 PM   #3
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
A sample sendmailmc file stolen from Suresh Ramasubramanian's email guide:
Code:
divert(-1)
dnl This is the macro config file used to generate sendmail.cf
dnl file. If you modify this file you will have to regenerate 
dnl sendmail.cf by running this macro config through the m4
dnl preprocessor:
dnl
dnl        m4 /home/phil/Documents/sendmail.mc > /etc/sendmail.cf <--Change to your path
dnl
dnl You will need to have the sendmail-cf RPM installed for this
dnl to work, if you use an rpm build of sendmail
dnl
dnl include(`../m4/cf.m4')
dnl
dnl If you compile sendmail from a tarball, use the include above.
dnl In this setup, you should create the file as cf/cf/config.mc 
dnl (in the sendmail source tree: eg. /usr/src/sendmail-8.11.6/cf/cf
dnl Now give the command "sh Build config.cf".  Now copy the file
dnl config.cf as /etc/mail/sendmail.cf (please backup first!)
dnl
dnl If you are using the RPM build of sendmail, use the 
dnl include statement given below instead
dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')
define(`confDEF_USER_ID',``8:12'')
OSTYPE(`linux')
undefine(`UUCP_RELAY')
undefine(`BITNET_RELAY')
define(`confCF_VERSION',`dialup-1.3')
define(`SMART_HOST', `smtp.yourisp.com') <--Change this
define(`confAUTO_REBUILD')
define(`confTO_CONNECT', `1m')
define(`confTO_IDENT',0)
define(`confTRY_NULL_MX_LIST',true)
define(`confDONT_PROBE_INTERFACES',true)
define(`confCON_EXPENSIVE',true)
define(`confDELIVERY_MODE', `queued')
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')
define(`ALIAS_FILE',`/etc/mail/aliases')
MASQUERADE_AS(`yourisp.com') <--Change this
FEATURE(`masquerade_envelope')
FEATURE(`smrsh',`/usr/sbin/smrsh')
FEATURE(`mailertable',`hash -o /etc/mail/mailertable')
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable')
FEATURE(redirect)
FEATURE(always_add_domain)
FEATURE(use_cw_file)
FEATURE(`use_ct_file')
FEATURE(local_procmail)
MAILER(smtp)
MAILER(procmail)
FEATURE(`access_db')
FEATURE(`blacklist_recipients')
FEATURE(`accept_unresolvable_domains')
FEATURE(`accept_unqualified_senders')
dnl FEATURE(`relay_based_on_MX')
Edit and do as needed for your situation

# Common e-mail tools
sendmail - postfix - sends mail to local users (and internet when configured correctly)
fetchmail - gets mail from internet accounts (non-Hotmail type)
procmail - sorts and delivers into separate mailboxes
mutt - mail client that sucks less than all the others
Email the Linux Way
Suresh Ramasubramanian's email guide
The Linux Mail User HOWTO
The Linux Electronic Mail Administrator HOWTO
Gotmail, a utility to download mail from Hotmail type accounts
 
Old 02-13-2003, 06:25 AM   #4
ganeshbic
LQ Newbie
 
Registered: Jan 2003
Posts: 8

Rep: Reputation: 0
Cool

Hi,

When I tried to set sendmail, I discoverd the following rules;

1) Read a lot ( get material from sendmail.org, books)

2) Decide what you wish to do

3) Get your hands wet.

If you know what you are doing, it doesn't take more than 10 min, otherwise you would be cleaning the mess all day!
Using someone's config file is like using other's shoes. If it fits great. if not, you get clumsy.
- Ganesh
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail : Configure 1 Server To Handle 2 Domain syzuhdi Linux - General 8 10-15-2005 07:05 AM
configure sendmail to use external mail server Drogo Linux - Software 0 09-16-2004 09:16 PM
configure sendmail to use a specific smtp server TheOneAndOnlySM Linux - Software 4 06-20-2004 05:15 AM
Sharing Proxy server by another Linux machine to configure sendmail joson Linux - Networking 7 12-16-2003 01:05 PM
How to configure sendmail to use other smtp server? josealexandre Linux - Newbie 2 10-12-2003 05:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration