Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Domains for mail

25 views
Skip to first unread message

Tom Barnes-Lawrence

unread,
Apr 11, 1999, 3:00:00 AM4/11/99
to
Hi,
After finally getting an internet account about 2/3 months back, I
eventually got about to getting Linux working with freeserve. After about a
day's wrangling, I sorted the script and connected OK. Great, http worked,
etc, etc...
But, I'm still getting confused by mail. I know when I connect to the
SMTP server I have to give a username (actually, now I think of it, did I
see anywhere in the sendmail configurer that states username/passwd? I
forget. I'm using windoze right now), but I'm trying to figure out: What
machine does freeserve want me to be? I've poked about with sendmail's
configuration, with its settings for the machine's hostname/domain name, the
masquerading thing, the other thing I forget... I'd like my machine's actual
hostname to be different to the hostname in my email address because, well,
having a machine called barnes-lawrence is a tiny bit inconvenient. I
figured elmo's a good enough hostname (well, if it doesn't leave the
machine). Any name I use will be useless to others as it won't be on DNS.
Do they want me to report my machine as localhost? That would seem
unlikely, but it seems to appear in various places in scripts, which
wouldn't seem to make sense, knowing where localhost is normally used.
Aw, look, just help me out, someone. I'm not exactly a Linux newbie,
used it for 2 years now. But this is tying me in knots.
Oh yeah, when I've finally sorted that out, I guess I'll have to try
installing fetchmail too, but I'll ask about that when I get to it.
And before I forget. Anyone know of versions of mutt that have a GTK
interface/editor? Or newsreaders with similar? I've grown tired of Pine, and
my copy of mutt seems to insist on using an external editor. Uncomfortable
with vi, emacs too big for writing mail/news.
--
Tom Barnes-Lawrence (aka Tomble the Bod)
Kindly remove eggs and spam from email address
in order to email me.

Tom Barnes-Lawrence

unread,
Apr 11, 1999, 3:00:00 AM4/11/99
to
Oops-

> But, I'm still getting confused by mail. I know when I connect to the
>SMTP server I have to give a username (actually, now I think of it, did I
>see anywhere in the sendmail configurer that states username/passwd? I
>forget. I'm using windoze right now)
Silly me, just looked at the configuration in windoze. Sure enough, you
don't log on to the SMTP servers, only the POP3 ones. I *thought* I hadn't
seen any provision for it in sendmail. So clearly that wouldn't be the
solution to the config probs, as user/passwd isn't required anyway.
So please give help for the host/domain problem, if you know about it.
Thanks, Tomble "/

Paul Black

unread,
Apr 11, 1999, 3:00:00 AM4/11/99
to
"Tom Barnes-Lawrence" <tom...@barnes-lawrence.eggsandspam.freeserve.co.uk> wrote:
> I'd like my machine's actual
> hostname to be different to the hostname in my email address because, well,
> having a machine called barnes-lawrence is a tiny bit inconvenient. I
> figured elmo's a good enough hostname (well, if it doesn't leave the
> machine). Any name I use will be useless to others as it won't be on DNS.

You can call your machine what you like. I use an internal domain of .local
(it was mentioned once upon a time in a draft RFC as a suggested private
domain). For internal mail, sendmail won't care. For sending external mail,
some programs will use the hostname, some will use a supplied email address.
To deal with those that use the hostname, the following sendmail
configuration will probably suit (actually there's probably more than you
need):
divert(-1)
include(`../m4/cf.m4')
OSTYPE(`linux')
define(`PROCMAIL_MAILER_PATH', /usr/bin/procmail)
define(`confTO_QUEUEWARN', 24h)
define(`confTO_CONNECT', 1m)
define(`confPRIVACY_FLAGS',`goaway')
define(`confDONT_EXPAND_CNAMES')
MASQUERADE_AS(barnes-lawrence.freeserve.co.uk)
MASQUERADE_DOMAIN(local)
FEATURE(nocanonify)
FEATURE(masquerade_envelope)
FEATURE(masquerade_entire_domain)
FEATURE(limited_masquerade)
FEATURE(accept_unresolvable_domains)
FEATURE(accept_unqualified_senders)
FEATURE(use_cw_file)
FEATURE(local_procmail)
FEATURE(relay_entire_domain)
FEATURE(access_db, hash -o /etc/mail/access)
MAILER(procmail)
MAILER(smtp)

The local in "MASQUERADE_DOMAIN(local)" is your local domain,
I'm guessing that your hostname will be OK. Also, you will need to
put barnes-lawrence.freeserve.co.uk in /etc/sendmail.cw so that
locally sent mail to that domain isn't sent through Freeserve.

Paul

Richard Corfield

unread,
Apr 11, 1999, 3:00:00 AM4/11/99
to
Why not consider using an alternate mail system such as Exim (www.exim.org)
The installer for Exim under Debian goes through a question and answer
session which should work. The config file is readable and Exim is
well documented. Apart from the standard bits and pieces mine contains:

In the top section:
-------------------

primary_hostname = littondale.freeserve.co.uk
local_domains = littondale.freeserve.co.uk
local_domains_include_host = true
local_domains_include_host_literals = true


In the routers section:
-----------------------

literal:
driver = ipliteral,
transport = smtp;

freeserve:
driver = domainlist,
transport = smtp,
route_list = "* smtp.freeserve.net bydns_a";


--
_/_/_/ _/_/_/ _/_/_/ Richard Corfield <Ric...@Littondale.freeserve.co.uk>
_/ _/ _/ _/ Web Page: http://www.littondale.freeserve.co.uk
_/_/ _/ _/ Dance (Ballroom, RnR), Hiking, SJA, Linux, ... [ENfP]
_/ _/ _/_/ _/_/_/ PGP2.6 Key ID: 0x0FB084B1 PGP5 Key ID: 0xFA139DA7

Neil Steadman

unread,
Apr 13, 1999, 3:00:00 AM4/13/99
to
On 11 Apr 1999 20:53:11 +0100, Richard Corfield

<Ric...@littondale.freeserve.co.uk> wrote:
>Why not consider using an alternate mail system such as Exim (www.exim.org)

Ok, I'm intrigued. I might have got sendmail configured correctly (no thanks
to the text version of ISP-Hookup-HOWTO missing vital words), and I'm
inclined to try and get it working because everything else knows about it.

To any interested parties, Leafnode is providing a nice offline news feed
(nicer than Netscape by miles).

Are you happily using Exim with slrn, xrn, pine, exmh etc???
And it is happily holding onto mail for a until you reconnect?

--
A computer needs Windows like Bill needs more cash.

Neil Steadman

unread,
Apr 13, 1999, 3:00:00 AM4/13/99
to
On Sun, 11 Apr 1999 17:44:18 +0100, Paul Black <pa...@canix.co.uk> wrote:

>divert(-1)
>include(`../m4/cf.m4')
>OSTYPE(`linux')
>define(`PROCMAIL_MAILER_PATH', /usr/bin/procmail)
>define(`confTO_QUEUEWARN', 24h)

> And so on....

That looks nothing like my sendmail.cf file, however it does tell me to use
soma.freeserve.co.uk, not freeserve.net which is probably going to help a
tad...

You couldn't just post a suitably edited sendmail.cf could you?

Thanks for the info.

bg...@my-dejanews.com

unread,
Apr 13, 1999, 3:00:00 AM4/13/99
to
ne...@HugeHummingBox.localdomain (Neil Steadman) writes:

> On 11 Apr 1999 20:53:11 +0100, Richard Corfield
> <Ric...@littondale.freeserve.co.uk> wrote:
> >Why not consider using an alternate mail system such as Exim (www.exim.org)

> To any interested parties, Leafnode is providing a nice offline news feed


> (nicer than Netscape by miles).

I know, that's what I'm using myself. And there is nothing to keep one
from using Netscape as a newsreader even when offline. Just list
localhost as yout NNTP server... (Though I prefer GNUS or trn.)

> Are you happily using Exim with slrn, xrn, pine, exmh etc???
> And it is happily holding onto mail for a until you reconnect?

Exim is just a plug-in replacement for sendmail (in the sense that
it comes with a program you install as /usr/lib/sendmail, that
understands the arguments most commonly used in sendmail invocations;
pine and friends can then just continue to do things in the usual
way.)

I looked into Exim at one point, but was turned off by the lack of
support for dynamic IP. I'm using sendmail at the moment, but am
considering the combination of qmail (to handle local traffic,
queueing outbound messages in a special spool area) and serialmail (to
deliver queued mail across the PPP link when it's up) as an
alternative. I think qmail is at www.qmail.org. serialmail is
available from the same source. (Current Debian distributions include
the source code for both; in keeping with the paranoia that drove the
writing of qmail, the distribution of precompiled binaries for it is
discouraged.) There is also Postfix (at www.postfix.org), but for some
reason (no doubt related to dynamic IP support) I wasn't tempted.

Paul Black

unread,
Apr 14, 1999, 3:00:00 AM4/14/99
to
ne...@HugeHummingBox.localdomain (Neil Steadman) wrote:
>
> On Sun, 11 Apr 1999 17:44:18 +0100, Paul Black <pa...@canix.co.uk> wrote:
>
> >divert(-1)
> >include(`../m4/cf.m4')
> >OSTYPE(`linux')
> >define(`PROCMAIL_MAILER_PATH', /usr/bin/procmail)
> >define(`confTO_QUEUEWARN', 24h)
> > And so on....
>
> That looks nothing like my sendmail.cf file


That's 'cos it's a .mc file! Have a look in /usr/li/sendmail-cf/cf
(at least that' where they are kept on RH). If you put that file
in there and did "m4 sendmail.mc > /etc/sendmail.cf", you can generate
your own .cf file.


> You couldn't just post a suitably edited sendmail.cf could you?

Only if you have sendmail 8.9.3 otherwise it may not suit your
sendmail.

Paul

Richard Corfield

unread,
Apr 18, 1999, 3:00:00 AM4/18/99
to
In article <87btgsg...@bglbv.my-dejanews.com>,

<bg...@my-dejanews.com> wrote:
>> Are you happily using Exim with slrn, xrn, pine, exmh etc???
>> And it is happily holding onto mail for a until you reconnect?

Yep - theres no difference as far as these programs are concerned.

>I looked into Exim at one point, but was turned off by the lack of

>support for dynamic IP. [...]

I've not had any problems with dynamic IP both as in DCHP on an
office network and the dynamic IP offered by Freeserve. In the case of
Freeserve Exim knows my mail domain name and handles it fine (Its always
littondale.freeserve.co.uk). I have localhost addedd for good measure as
well as an option to include the current (dynamicaly assigned) hostname.
I never expect to pick up mail for the current hostname except perhaps
from systems like cron and mailx.

- Richard.

Neil Steadman

unread,
Apr 18, 1999, 3:00:00 AM4/18/99
to
On Wed, 14 Apr 1999 00:26:53 +0100, Paul Black wrote:
>
>That's 'cos it's a .mc file! Have a look in /usr/li/sendmail-cf/cf
>(at least that' where they are kept on RH). If you put that file
>in there and did "m4 sendmail.mc > /etc/sendmail.cf", you can generate
>your own .cf file.

DOH!

You're 100% right.

Works fine now!

0 new messages