D&C Lug - Home Page
Devon & Cornwall Linux Users' Group

[ Date Index ][ Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] email across a LAN



Tip 1 - use "postconf" to dump the configuration *8-)

Neil Williams wrote:
>
> myhostname = mandrake.codehelp
> mydomain = codehelp

This will default to codehelp if this is omitted as it strips
first part of hostname. Wonder if you have
mandrake.codehelp.codehelp ?

I'd comment it out.

I trust the name service understand "mandrake.codehelp" on all
boxes.

Thus "ping mandrake.codehelp" works, and doesn't have to use
it's search path or domain from /etc/resolv.conf.....

> myorigin = $myhostname

This is for sending mail....

> mydestination = $myhostname, localhost.$mydomain
> (These, I believe are the defaults. At least, when these are commented out,
> there is no difference to the hosts named in the headers.)

These are for receiving. So we should accept, as local, mail to;

useroralias@xxxxxxxxxxxxxxxxx and
useroralias@xxxxxxxxxxxxxxxxxxxxxxxxxxx
 
> mynetworks = 192.168.0.2, 192.168.0.1, 192.168.0.4

This, as I said, is for relaying. This says I trust these IP
addresses not to send SPAM (More or less), it doesn't affect
delivery to the local server.
 
> (And I'm still getting dropped mail - mail that is not bounced back to me but
> never arrives at the destination. Some is deliberately awkward - testing the
> install - like neil@xxxxxxxxxxx - should that work? (It doesn't.)

Yes - if neil exists, and IP networking issues are okay.

Hmm not bounced? No mail to postmaster either? You do have a
postmaster alias?

> That
> main.cf file started off as almost entirely comments. No sample-xxx files
> where found.)

Think maybe the samples are in the source distro only, they are
a bit confusing, maybe we can get Wietse to put them is a
subdirectory or some such.

The main.cf starts mostly comments, and should remain mostly
comments, you should only need to change 4 or 5 lines for most
purposes, this isn't qmail or sendmail *8-)
 
> I must have sent 50 messages to and from neil@xxxxxxxxxxxxxx and

That's not in "mydestinations"

> neil@xxxxxxxxxxxxxxxxx or root@xxxxxxxxxxxxxxxxx NONE have arrived unless
> sent from the same machine as the destination. Only 50% have been bounced.

How are the remote machines configured? What is in the mail
queue on them? What error is listed against them?

Don't try repeated messages - try and understand what it is
doing. Watch the queue. Try emulating the SMTP session with
telnet.....

Type this - assuming the prompts keep coming up without
errors.....

telnet mandrake.codehelp 25
helo mandrake.codehelp
mail from: neil@xxxxxxxxxxxxxxxxx
rcp to: neil@xxxxxxxxxxxxxxxxx
data
Hello
.
 
-- 
Are you using the Internet to best effect ? www.eighth-layer.com
Tel: +44(0)1395 232769      ICQ: 116952768
Moderated discussion of teleworking at news:uk.business.telework

--
The Mailing List for the Devon & Cornwall LUG
Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the
message body to unsubscribe.


Lynx friendly