[NTLUG:Discuss] sendmail/fetchmail configuration problem
Scott Womer
scott.womer at gte.net
Fri Dec 31 11:12:46 CST 1999
Hi Billy,
I'm doing "what appears to be" the same thing here and I saw the same errors
you describe below after my initial config. What you didn't tell me (us) is
if your hostname is truly dfwcpa.com. What I mean by that is, your DSL
connection... is it a statically assigned ip address that you "own/lease"
and you have registered with InterNic with that domain name and you control
the dns for that doamin, or are you assigned this ip, and consequently the
hostname defined by their dns for that ip address via dhcp from your ISP?
If the latter is the case (common), then you may be introducing an identity
crisis to sendmail. Do you get dfwcpa.com when you execute "hostname", or
something else?
I cannot resolve dfwcpa.com, and the ip address you show below resolves to
adsl.imagin.net which is strange in of itself. Looking a little closer, it
would appear that your ISP has defined the same hostname for all of their
adsl ip addresses. lazy, lazy, lazy.... and it can't be a good thing if all
their dsl connected hosts share the same hostname. They've got to be doing
something strange with the routing for that to even work in the first place.
But... if it works... I guess it works, and shouldn't effect what you're
trying to do (I hope).
I'll walk through my environment and config files (I always like seeing
other peoples's config files too). I own/lease womer.com from InterNic. My
web server providor maintains the dns for that domain and configures "domain
forwarding" for my email, sending ALL mail destined for womer.com to my
single email account at my ISP, so whether you address email as
scott at womer.com (preferred) or dude at womer.com or
flamin-freakin-moron at womer.com... I get it via scott.womer at gte.net. I have
a RH 6.0 box at home, firewalling, gatewaying, PDC, user shares, login
scripts. etc... etc... and fetchmail grabbing the mail from my ISP and
redistributing to local accounts. My local hostname is "gateway" (original
eh?), and I have a local caching/forwarding/split-level dns that manages my
local ip subnet (192.168.1.0/255.255.255.0). But the servers *true*
hostname "crtntx1-ar2-170-069.dsl.gtei.net" gets assigned via dhcp at boot
time when it activates eth0 and connects to the ISP, so that's the one I
eventually configured sendmail for.
The first thing of course is to make sure you have your local user accounts
configured (elizabeth tiblets ), and they can log on to your Linux server.
Now for my config files, at least the ones that are different from yours:
/root/.fetchmailrc:
# Configuration created Mon Dec 18 18:34:52 2000 by fetchmailconf
set postmaster "postmaster"
set bouncemail
set properties ""
#set daemon 60
poll mail.gte.net with proto POP3
aka mtapop1.gte.net mtapop2.gte.net mtapop3.gte.net mtapop4.gte.net
mtapop5.
gte.net
localdomains womer.com womerhome.com dora.ntlug.org
user "my_user" there with password "my_passwd" is * here warnings 3600
antispam 571 550 501 554
:::NOTE:::: you need the * above instead of actual users to enable
multi-drop. At least I *think* that's why I did that. :)
my /etc/aliases is pretty much default... no local users defined besides
root.
/etc/hosts:
127.0.0.1 localhost localhost.localdomain
192.168.1.1 gateway.womerhome.com gateway
/etc/sendmail.cw:
womer.com
womerhome.com
scott.womerhome.com
crtntx1-ar2-170-069.dsl.gtei.net
/etc/resolv.conf:
search dsl.gtei.net gtei.net
nameserver 4.2.2.1
nameserver 4.2.2.2
nameserver 4.2.2.3
/etc/nsswitch.conf:
hosts: dns files
And one file you left out...
/etc/mail/relay-domains:
womer.com
womerhome.com
dsl.gtei.net
gte.net
I hope all this helps you in some way, but keep in mind, I am by no means an
expert. Like you.. I had to hack my way through it, and this config is what
I ended up when it started working. I'm sure there's some things that
aren't neccessary, and some expert would look at this and say "What the f**k
was he thinking!?!", but until said expert speaks up.... this works for me.
:)
Good luck,
Scott Womer
----- Original Message -----
From: Billy Tiblets
To: discuss at ntlug.org
Sent: Thursday, December 30, 1999 4:49 PM
Subject: [NTLUG:Discuss] sendmail/fetchmail configuration problem
I'm trying to set up a linux machine for e-mail and internet access for a
small office. I have Redhat 6.1, I'm using fetchmail to retrieve mail from
our ISP over a DSL line. I'm also using firewalling and sendmail. After
climbing a very steep learning curve I have managed to get to the point
where (a) internal machines have access to the internet, (b) internal
machines can e-mail out over the internet, (c) our e-mail is downloaded to
the server, but it goes to root only. My problem is that I don't know how
to get fetchmail (or sendmail) to put the mail in each user's mail folder.
When I examine the mail in root which should have gone to Elizabeth there is
this warning message:
X-Fetchmail Warning: recipient address Elizabeth at dfwcpa.com didn't match
any local name
My /root/. fetchmailrc contains the following:
set syslog
set postmaster "postmaster"
set nobouncemail
set daemon 60
poll imagin.net with proto POP3 user "dfwcpa" there with password "pass" is
elizabeth tiblets here options fetchall warning 3600
antispam 571 550 501 554
My /etc/aliases is:
postmaster: root
billy: tiblets at dfwcpa.com
tiblets: tiblets at dfwcpa.com
elizabeth: elizabeth at dfwcpa.com
My /etc/hosts is:
127.0.0.1 localhost
192.168.0.2 elizabeth.dfwcpa.com elizabeth
192.168.0.1 server.dfwcpa.com server
192.168.0.3 tiblets.dfwcpa.com tiblets
216.2.131.4 dfwcpa.imagin.net dfwcpa
My sendmail.cw file:
dfwcpa.com
server.dfwcpa.com
My /etc/resolv.conf is:
Search dfwcpa.com
nameserver 207.18.228.2
nameserver 207.18.228.4
My nsswitch.conf file is:
hosts: files nisplus nis dns
I know that the answer is probably very simple but I have read everything I
can find about fetchmail (several times) but I can't find the answer.
Please help!!
Billy Tiblets
More information about the Discuss
mailing list