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
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
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.
>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.
> 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.
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
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.
DOH!
You're 100% right.
Works fine now!