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

how can I set up forwarding service with my demon adsl?

0 views
Skip to first unread message

Neil G Jarman

unread,
Jul 19, 2002, 2:02:47 PM7/19/02
to
Hi,

I would like to forward mail from xyz.com to uvw.freeserve.co.uk or whatever
for a friend.

I have an ADSL from demon, and i can set up a linux box.

What do I need to do then - I yhink I understand I need to use sendmail or
something like that.

Not sure what ports etc are required or even if I can do this.

I seem to think I saw something from demon about it, but i'm no expert on
the internet and mail.

All help / advice greatfully received.

NEIL


John F Hall

unread,
Jul 20, 2002, 11:01:09 PM7/20/02
to
In article <1027101768.10799....@news.demon.co.uk>,

Neil G Jarman <ne...@pnpnews.com> wrote:
>Hi,
>
>I would like to forward mail from xyz.com to uvw.freeserve.co.uk or whatever
>for a friend.

The main thing is to ensure that you base the decision on IP address
not on the mail_from name (which is trivially forgeable). That
requires of course that he has a fixed IP address. Alternative require
password authentication.

>I have an ADSL from demon, and i can set up a linux box.
>
>What do I need to do then - I yhink I understand I need to use sendmail or
>something like that.

For sendmail you need someting like "Connect:192.168.0 RELAY" in
/etc/mail/access (but with the right IP address - that one is for my
LAN). Sendmail also handles authentication, but I can't help with that
as I don't use it.

--
John F Hall

Jim Howes

unread,
Jul 21, 2002, 6:21:30 PM7/21/02
to
Neil G Jarman wrote:

> Hi,
>
> I would like to forward mail from xyz.com to uvw.freeserve.co.uk or
> whatever for a friend.

Various methods are available. How does mail for your friend arrive?

Does all mail to fred....@xyz.com arrive addressed to
fred....@yourhost.demon.co.uk, or does all mail to any...@xyz.com arrive
addressed to some-sin...@yourhost.co.uk

Either way, if you are using ADSL, chances are (unless you got a non-NAT
connection) that you are picking up your mail via POP3. Demon cannot kick
mail to you with SMTP. I'm not sure of their exact reasons for doing this,
as when I had SDU, I had a happily working, secure, mail system running
sendmail which happily handled three domains.

I now use fetchmail to work around the restrictions placed upon me by my
switch to DSL. Fetchmail connects to pop3.demon.co.uk using my account
name and pop3 password, and sucks in all the mail, rewriting a few headers
in the process, and passes it to fetchmail on delivery. Consequently, if
someone in one of my domains has an address of fred....@other.isp.com, I
just have to add an entry into /etc/aliases to redirect the mail...

/etc/aliases:
fred.bloggs: fred....@other.isp.com

The .fetchmailrc might look something like this:

set postmaster "postmaster"
poll pop3.demon.co.uk with proto POP3 and options no dns
localdomains myhostname.demon.co.uk xyz.com
user 'myhostname.demon.co.uk' there with password 'myPOP3pw' is
'myhostname.demon.co.uk' 'xyz.com' here

There are of course, a myriad of different options.

In your sendmail configuration, you probably want to set your smarthost to
be demon's outgoing mail server, post.demon.co.uk, which boils down to the
hairy syntax

/etc/sendmail.cf:
DSpost.demon.co.uk

You also need to tell sendmail what domains it will be working with. I set
mine up in /etc/mail/local-host-names. Otherwise sendmail gets paranoid
and bounces mail because it thinks it's an unauthorised relay attempt.


>
> Not sure what ports etc are required or even if I can do this.

As all connections for both inbound and outbound mail are made by your box
TO demon, you should not need to adjust your firewall if it's set to allow
all outgoing connections; I connect through an ethernet based NAT router,
which seems to handle it all fine.

--
The other reply you received seems to suggest that your friend at freeserve
is trying to connect to your machine's smtp server. This won't work for
two reasons...
A) Demon or BT block inbound port 25 (smtp) for reasons best known to
themselves. (Presumably so clueless windows admins don't leave wide-open
mail servers/proxies running where they can be abused) and
B) All traffic to anywhere:25 from a freeserve customer is silently
routed to freeserve's mail servers. Try this from a freeserve dialup:

telnet www.whitehouse.gov 25

and you'll get the idea.
--
GPG key ID 1024D/206ACB87 available from http://www.jimhowes.net
Email address has been munged. Un-russianise the domain.

Paul Lee

unread,
Jul 30, 2002, 1:02:25 PM7/30/02
to
You can use sendmail (or postfix for this).

Assuming you have SMTP mail already setup on your machine and accepting mail
for xyz.com

ie: /etc/sendmail.cw : (maybe this file be called localdomains now).

xyz.com

The MX record in the dns zone for xyz.com (wherever that is) must point
to your machine which should be on a static IP.

/etc/virtusertable looks like this:

fri...@xyz.com friendsp...@freeserve.co.uk

rehash the virtuser database:

ie: makemap hash /etc/virtusertable < /etc/virtusertable

so mail for fri...@xyz.com will be forwarded to his POP at freeserve

These files myabe in /etc/sendmail /or /etc/mail depending on the
flavour of linux you are running.
SMTP uses port 25.

\\\\Other ways of doing this including .forward files etc...

--

Best Wishes


Paul

UK based dns, email and web hosting
<w>http://www.weycrest.com <e> ad...@weycrest.com
Weycrest Networks

0 new messages