On Monday 29 August 2005 20:03, mlist@safenet-inc.com wrote:
I'm using Ulf's message below, but this is also
a reply to Sandy Drobic (who said some of the
same things and added further clarification).
Ulf Rasch [mailto:u.rasch@seppelec.com] replied:
Hi Kevin,
In general, YAST may help you in configuring your system but not in
understanding how things work.
Have a look at the programs and their documentation involved
instead!!!
In your case
fetchmail
IMAP (cyrus, etc.)
postfix ( if needed at all )
[...]
Hi Guys,
I have spent my time on sendmail, and procmail,
What I did was setup sendmail (sendmail.mc) and then fired up qpopper
Firstly I compile sendmail, then rpm -e postfix. (personal preference of
course)
then install qpopper and start it in xinetd services.
If you are really stuck, try using webmin, you can get the rpms from
www.webmin.org , it installs perfectly on suse, it also downloads usermin and
spam assissin for you, (quite nice). Its also fully compatible with postfix
if you want to use the suse default mail server,
Webmin won't configure you server options for you, but it has a nice
sendmail.mc editor. Which is why I like it. You will still need to read up on
things such as making the server public, masquerading domains, and hosting
multiple domains.
There is a ton of websites, but this one is my favorite because it is so
simply layed out..
http://66.249.93.104/linux?q=cache:kzyeavKoWH4J:www.linuxselfhelp.com/quick/sendmail.html+sendmail+domain+relay&hl=en
It doesn't have all the answers but it gets you going and once it is running
in it simplest form then start adding the features you need, such as
antivirus and spam control and what ever else you like,
here is a copy of my sendmail.mc
Just change what applies to you network and fire up sendamail
Good luck
===================
divert(-1)
# Copyright (c) 1997-1999,2000 SuSE GmbH Nuernberg, Germany.
# Author: Florian La Roche
# Werner Fink
#
# After the `divert(0)' all lines starting with `dnl' are
# comments until the next newline character.
# Putting words into `'-pairs disables macro expansion
#
include(`/usr/share/sendmail/m4/cf.m4')
divert(0)dnl
VERSIONID(`@(#)Setup for Nedbank National Golf Network')dnl
OSTYPE(`suse-linux')dnl
define(`confDEF_USER_ID',``8:12'')dnl
define(`confTO_CONNECT', `1m')dnl
define(`confTRY_NULL_MX_LIST',true)dnl
define(`confDONT_PROBE_INTERFACES',true)dnl
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
define(`ALIAS_FILE', `/etc/aliases')dnl
define(`UUCP_MAILER_MAX', `2000000')dnl
define(`confMAX_MESSAGE_SIZE',2000000)
define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
define(`confHOST_STATUS_DIRECTORY',`.hoststat')
dnl # define(`confPRIVACY_FLAGS',
`authwarnings,novrfy,noexpn,restrictqrun')dnl
dnl # define(`confAUTH_OPTIONS', `A')dnl
dnl # FEATURE(`no_default_msa',`dnl')dnl
dnl #FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl
FEATURE(`genericstable',`hash /etc/mail/genericstable')
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl
FEATURE(redirect)dnl
FEATURE(always_add_domain)dnl
FEATURE(use_cw_file)dnl
FEATURE(use_ct_file)dnl
FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl
FEATURE(`access_db',`hash -o -T<TMPF> /etc/mail/access.db')dnl
FEATURE(`blacklist_recipients')dnl
GENERICS_DOMAIN_FILE(`/etc/mail/generics-domains')
EXPOSED_USER(`root')dnl
DAEMON_OPTIONS(`port=smtp,Addr=<your external ip addres>, Name=MTA')
DAEMON_OPTIONS(`port=smtp,Addr=<your internal ip addres>, Name=MTA')
DAEMON_OPTIONS(`port=smtp,Addr=127.0.0.1, Name=MTA')
FEATURE(`accept_unresolvable_domains')dnl
MAILER(smtp)dnl
MAILER(procmail)dnl
MASQUERADE_AS(yourdomain.co.za)
MASQUERADE_DOMAIN(yourdomain.co.za)
FEATURE(masquerade_entire_domain)
FEATURE(masquerade_envelope)
Cwyourdomain.co.za
Cwmail.yourdomain.co.za
Cwlocalhost.localdomain
============================
Then make sure you dns records point to this server like this:
@ IN MX 1 mail.yourdomain.co.za
mail.virtualdomain.co.za MX 10 mail.yourdomain.co.za
Then create your aliases
and make sure the /var/spool/mail and /var/spool/clientmqueue
have the neccesary permisiions on it.
If I were you I would create all users on the system who retrieve remote mail
with a default shell of /bin/false
like this
useradd -m -d /home/username -s /bin/false username
and the set the passwd
passwd username
That one reason like webmin, is the actual maintence of the mail server is so
much simpler.
If you still want help let me know!
And if your network details are confidential as are mine please feel free to
mail me off list .
--
--
Chadley Wilson
Production Line Superintendant
Pinnacle Micro
Manufacturers of Proline Computers
====================================
Exercise freedom, Use LINUX
=====================================