SMTP Setup
Tim Raggatt
raggtimejunky
Mon May 17 11:59:38 PDT 2004
Hi people.
I recently invested in a domain name and have so far managed to setup a
webserver and a little site to go on it. Having installed apache and got
the site working on it, I was hoping to setup email but am not quite sure
where to start.
I am using zoneedit.com's DNS servers to point all site accesses to my Dynamic
IP at home and also for the MX service. However, when I send an email to
it, I am currently receiveing the following error:
Remote host said: 550 5.7.1... Relaying denied
What programs do I need to setup on my server host so that it will handle
incoming mail correctly? I have tried to setup sendmail (see bottom) but
wasn't sure if that was what was required.
Here are some of my configuration files:
(Zoneedit DNS:)
IP Addresses:
www.mydomain.com xxx.xxx.xxx.xxx
Mail Servers (MX):
mail.mydomain.com *handles mail 1st for* mydomain.com
(Sendmail.mc:)
divert(-1)dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`setup for Red Hat Linux')dnl
OSTYPE(`linux')dnl
define(`confDEF_USER_ID',``8:12'')dnl
define(`confTRUSTED_USER', `smmsp')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(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl
define(`confAUTH_OPTIONS', `A')dnl
define(`confTO_IDENT', `0')dnl
FEATURE(`no_default_msa',`dnl')dnl
FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl
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 -T<TMPF> -o /etc/mail/access.db')dnl
FEATURE(`blacklist_recipients')dnl
EXPOSED_USER(`root')dnl
FEATURE(`accept_unresolvable_domains')dnl
LOCAL_DOMAIN(`localhost.localdomain')dnl
MASQUERADE_AS(`mydomain.com.')dnl
FEATURE(`masquerade_envelope')dnl
FEATURE(`masquerade_entire_domain')dnl
FEATURE(`allmasquerade')
MASQUERADE_DOMAIN(`mydomain.com.')dnl
MASQUERADE_DOMAIN(mydomain.com)dnl
MAILER(smtp)dnl
MAILER(procmail)dnl
Any help would be much appreciated!
Tim.
__________________________________________________
Broadband from an unbeatable ?15.99!
http://www.tiscali.co.uk/products/broadband/home.html?code=SM-NL-11AM
More information about the Linux-users
mailing list