LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 05-09-2003, 08:24 AM   #1
SSBN
Member
 
Registered: Apr 2003
Posts: 80

Rep: Reputation: 15
Help getting started with Sendmail


getting started with Sendmail config V10/Berkeley

Ok my new Linux adventure is to set up a working incoming and outgoing emal server using Sendmail config V10/Berkeley on webmin if possible. But I am not set on webmin as I found it was easer to configure apache by hand.

Where should I start? I haven’t bin able to find 1/10th the documentation on sendmail I was able to find with apache. Walkthroughs would be nice just to get me started. Caledera web site has one. But that has bin all I could find. If there isn’t any good information online would sendmail book (bat book) be my best bet. I really don’t want to get a book but if I it is my only option I will.

Thanks
 
Old 05-09-2003, 01:25 PM   #2
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Arctic
Distribution: Fedora, Debian, OpenSuSE and Android
Posts: 1,820

Rep: Reputation: 46
I struggled with Sendmail for a long time, until I discovered the O'Reilly book "Sendmail". That book solved all my problems. If you are serious about getting Sendmail working, I'd highly suggest you get the book.. And there are a few of us Sendmail fans here that will try to help with problems you will encounter.. Good luck.
 
Old 05-09-2003, 06:06 PM   #3
Satriani
Member
 
Registered: Mar 2003
Location: The Netherlands
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418

Rep: Reputation: 30
SSBN: You might want to look into your /etc/mail directory
There's a file called sendmail.mc in there. Configuring this file is really not as hard at it seems

After you have configured this file, just run

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

Now, also in this /etc/mail dir are some other files.
edit access and add your network in there (So you can mail from your own network). Its easy: a part of your IP network is sufficient: for example if your network is 192.168.1.X just type 192.168.1
Then add the permission after it: RELAY and all clients with that in the IP will be able to use that mailserver.
If you are done,just type: makemap hash access < access
Then edit the generics-domains, add your MX domain name there.
Next the local-host-names. Type ALL MX domains you will serve locally.
The next is relay_domains, again, add all the domains you will relay for.. (IP-addresses are also allowed).

Last one is virtusertable. You can add some virtual users here, for example: the_sendmail_guru@yourdomain.com and of course, you will mean yourself, having a local mailbox with your username: yourname
Just add:
the_network_guru@yourdomain.com yourname

It also lets you put in external addresses:

myfriend@yourdomain.com myfriends_emailaddress@hisprovider.com

When done, do the makemap trick again with this file. Now restart sendmail: /etc/rc.d/init.d/sendmail restart

If you want domain-name masquerading (i.e. your servername is myserver.myinternalname.com) and you want this to be replaced by your external domainname (inb this example: yourdomain.com), just edit the /etc/mail/sendmail.mc and add the following rules (place them right after the sentence: FEATURE(`blacklist_recipients')dnl
(This is at the end of the FEATURES section)

FEATURE(`masquerade_envelope')
MASQUERADE_DOMAIN('myserver.myinternalname.com')
MASQUERADE_AS(mydomain.com)

remember to run the m4 command again, and restart sendmail.

A lot can be found at : http://www.sendmail.org/m4/readme.html
m4 made sendmail more easy.. Also, IMHO webmin is not the tool for configuring sendmail: it didn't do the trick for me.... it messed my entire config...

Good Luck!
 
  


Reply



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
Getting started with FC3, need help with Sendmail-Cyrus hillclimber Linux - Newbie 1 03-03-2005 05:29 AM
Getting started carlosinfl Debian 9 02-01-2005 06:12 AM
Need help getting started Blardov Programming 1 03-10-2004 05:57 PM
Sendmail cannot be started! hakeem Linux - General 6 11-13-2002 09:23 PM
Sendmail - RunAsUser=sendmail:mail/What files to i have to change ForumKid Linux - Security 45 01-18-2002 11:47 AM

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

All times are GMT -5. The time now is 05:32 AM.

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
Open Source Consulting | Domain Registration