svlug-mail_forwarding_stategies__for_a_new_domain

This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.



Date: Mon, 02 Dec 2002 08:56:06 -0800
From: Erik Steffl <steffl@bigfoot.com>
To: svlug@lists.svlug.org
Subject: [svlug] mail forwarding/redirecting

  just got a new domain registered and I would appreciate advices on how
to handle email redirecting. Here's my current setup:

  all mail for my domain xxx@domain.com (where xxx is any valid user
name, domain.com is my domain) is handled by my ISP, they drop it into
my pop account, To: (and all other, as far as I can tell) header intact
(envelope is gone, of course). I have it set up this way because my
computer is not _always_ up so I don't want email to go directly to my
server.

  I use: isp pop3 account -> fetchmail -> postfix -> lmtp -> sieve ->
cyrus imap server (all this works, the email gets all the way to the
user that is set up in fetchmail as receiver).

  What I like to do is redirect emails addressed to certain adresses to
specific accounts on the machine (or possibly elsewhere), all emails to
unknown addresses woudl still go to the local account that is set as
receiver of pop3 emails.

  my question is: where is the most appropriate point to do this
redirection? I guess it cannot be done in fetchmail so it's either
postfix or sieve? I definitely do not want to do it in MUA, that's just
wrong.

  comments appreciated (on any part of setup), TIA!

	erik


--===============86203061330375963==
Content-Type: message/rfc822
MIME-Version: 1.0

Date: Mon, 2 Dec 2002 19:57:22 -0800
From: Bill Kendrick <nbs@sonic.net>
To: svlug@lists.svlug.org
Subject: [svlug] Sean 'Shaleh' Perry speaking about Debian packaging in Davis
Message-ID: <20021202195722.A17721@sonic.net>
Content-Type: text/plain; charset=us-ascii
MIME-Version: 1.0
Precedence: list
Message: 2


Sean Perry, co-author of "lintian" and maintainer of over a dozen packages
for Debian, will be doing a talk at the Linux Users' Group of Davis
tomorrow (Tuesday, December 3rd).

  http://www.lugod.org/meeting/


Maps, directions, carpool info, etc. are available here:

  http://www.lugod.org/meeting/library/


-bill!
pr@lugod.org
http://www.lugod.org/



--===============86203061330375963==
Content-Type: message/rfc822
MIME-Version: 1.0

Date: Mon, 2 Dec 2002 23:26:30 -0500
From: George Georgalis <georgw@galis.org>
To: Erik Steffl <steffl@bigfoot.com>
Cc: svlug@lists.svlug.org
Subject: [svlug] Re: mail forwarding/redirecting
Message-ID: <20021203042630.GR25947@trot.local>
In-Reply-To: <3DEB90A6.6F464A5B@bigfoot.com>
References: <3DEB90A6.6F464A5B@bigfoot.com>
Content-Type: text/plain; charset=us-ascii
MIME-Version: 1.0
Precedence: list
Message: 3

On Mon, Dec 02, 2002 at 08:56:06AM -0800, Erik Steffl wrote:
>  just got a new domain registered and I would appreciate advices on how
>to handle email redirecting. Here's my current setup:
>
>  all mail for my domain xxx@domain.com (where xxx is any valid user
>name, domain.com is my domain) is handled by my ISP, they drop it into
>my pop account, To: (and all other, as far as I can tell) header intact
>(envelope is gone, of course). I have it set up this way because my
>computer is not _always_ up so I don't want email to go directly to my
>server.
>
>  I use: isp pop3 account -> fetchmail -> postfix -> lmtp -> sieve ->
>cyrus imap server (all this works, the email gets all the way to the
>user that is set up in fetchmail as receiver).
>
>  What I like to do is redirect emails addressed to certain adresses to
>specific accounts on the machine (or possibly elsewhere), all emails to
>unknown addresses woudl still go to the local account that is set as
>receiver of pop3 emails.
>
>  my question is: where is the most appropriate point to do this
>redirection? I guess it cannot be done in fetchmail so it's either
>postfix or sieve? I definitely do not want to do it in MUA, that's just
>wrong.
>
>  comments appreciated (on any part of setup), TIA!

Just use fetchmail to pop and set the mda to procmail which will
make the decisions and deliver locally or use your postfix for remote
deliveries...

$ cat .fetchmailrc 
defaults mda "/usr/bin/formail -s /usr/bin/procmail"
no rewrite
preconnect "ssh -f galis@galis.org -L 11110:galis.org:110 sleep 9"
poll localhost with protocol pop3 and port 11110:
user xxxxx is delivery password xxxxxxxxx
user xxxxx is delivery password xxxxxxxxx


// George

-- 
GEORGE GEORGALIS, System Admin/Architect    cell: 347-451-8229 
Security Services, Web, Mail,            mailto:george@galis.org 
Multimedia, DB, DNS and Metrics.       http://www.galis.org/george 



--===============86203061330375963==
Content-Type: message/rfc822
MIME-Version: 1.0

Date: Tue, 3 Dec 2002 00:34:55 -0800
From: Vince Hoang <svlug@ml.altern8.net>
To: svlug@lists.svlug.org
Subject: Re: [svlug] mail forwarding/redirecting
Message-ID: <20021203083455.GJ98677@anarchy.com>
In-Reply-To: <20021203082008.GH98677@anarchy.com>
References: <3DEB90A6.6F464A5B@bigfoot.com>
	<20021203082008.GH98677@anarchy.com>
Content-Type: text/plain; charset=us-ascii
MIME-Version: 1.0
Precedence: list
Message: 4

On Mon, Dec 02, 2002 at 08:56:06AM -0800, Erik Steffl wrote:
>   all mail for my domain xxx@domain.com (where xxx is any valid
> user name, domain.com is my domain) is handled by my ISP, they
> drop it into my pop account, To: (and all other, as far as I
> can tell) header intact (envelope is gone, of course). I have
> it set up this way because my computer is not _always_ up so I
> don't want email to go directly to my server.

How often is your system not on? If your ISP is clued and small,
you can affordably get your ISP to relay your domain for you.
When your machine is online, you send an ETRN to the mail relays
queueing your mail. You can then route mail for your domain to
your heart's content without any loss of envelope information.

>   I use: isp pop3 account -> fetchmail -> postfix -> lmtp ->
> sieve -> cyrus imap server (all this works, the email gets all
> the way to the user that is set up in fetchmail as receiver).

Wow.

-Vince


--===============86203061330375963==
Content-Type: message/rfc822
MIME-Version: 1.0

Date: Tue, 03 Dec 2002 00:54:04 -0800
From: Erik Steffl <steffl@bigfoot.com>
To: svlug@lists.svlug.org
Subject: Re: [svlug] mail forwarding/redirecting
Message-ID: <3DEC712C.2030606@bigfoot.com>
In-Reply-To: <20021203083455.GJ98677@anarchy.com>
References: <3DEB90A6.6F464A5B@bigfoot.com>
	<20021203083455.GJ98677@anarchy.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Precedence: list
Message: 5

Vince Hoang wrote:
> On Mon, Dec 02, 2002 at 08:56:06AM -0800, Erik Steffl wrote:
> 
>>  all mail for my domain xxx@domain.com (where xxx is any valid
>>user name, domain.com is my domain) is handled by my ISP, they
>>drop it into my pop account, To: (and all other, as far as I
>>can tell) header intact (envelope is gone, of course). I have
>>it set up this way because my computer is not _always_ up so I
>>don't want email to go directly to my server.
> 
> 
> How often is your system not on? If your ISP is clued and small,
> you can affordably get your ISP to relay your domain for you.
> When your machine is online, you send an ETRN to the mail relays
> queueing your mail. You can then route mail for your domain to
> your heart's content without any loss of envelope information.

   this looks like a good solution. my system is mostly up, unless there 
is a problem with dsl line (almost never) or I play games - which means 
that it is not down for more then few hours (let's say no more than 12 
hours). Is it reasonable to expect them to queue email for few hours? 
what about few days (extreme cases of troubles with dsl lines, only 
happened once so far)? I'll ask my ISP (rawbandwidth) but if you have 
more info/pointers I'd appreciate that so that I have some idea what I 
can ask of them...

   and last but not least - who sends ETRN? any pointers to more info 
(I'll search for it but again, I'd appreciate any pointers)

   thanks a lot,

>>  I use: isp pop3 account -> fetchmail -> postfix -> lmtp ->
>>sieve -> cyrus imap server (all this works, the email gets all
>>the way to the user that is set up in fetchmail as receiver).
> 
> 
> Wow.

   hey, everything should be as simple as possible but not simpler:-)

	erik



--===============86203061330375963==
Content-Type: message/rfc822
MIME-Version: 1.0

Date: Tue, 03 Dec 2002 01:38:58 -0800
From: J C Lawrence <claw@kanga.nu>
To: Erik Steffl <steffl@bigfoot.com>
Cc: svlug@lists.svlug.org
Subject: Re: [svlug] mail forwarding/redirecting 
Message-ID: <4330.1038908338@kanga.nu>
In-Reply-To: Message from Erik Steffl <steffl@bigfoot.com> 
   of "Mon, 02 Dec 2002 08:56:06 PST." <3DEB90A6.6F464A5B@bigfoot.com> 
References: <3DEB90A6.6F464A5B@bigfoot.com> 
Precedence: list
Message: 6
MIME-Version: 1.0

On Mon, 02 Dec 2002 08:56:06 -0800 
Erik Steffl <steffl@bigfoot.com> wrote:

>   all mail for my domain xxx@domain.com (where xxx is any valid user
> name, domain.com is my domain) is handled by my ISP, they drop it into
> my pop account, To: (and all other, as far as I can tell) header
> intact (envelope is gone, of course). I have it set up this way
> because my computer is not _always_ up so I don't want email to go
> directly to my server.

Better:

  Get someone to MX for you and then ETRN all your mail from them when
  you are up.  Simple, easy, efficient, and preserves envelopes.

Or, if you really want to do it right, set up Taylor UUCP and have some
one batch if for you.  Fairly simply and easy, and does *everything*
right.

-- 
J C Lawrence                
---------(*)                Satan, oscillate my metallic sonatas. 
claw@kanga.nu               He lived as a devil, eh?		  
http://www.kanga.nu/~claw/  Evil is a name of a foeman, as I live.



--===============86203061330375963==
Content-Type: message/rfc822
MIME-Version: 1.0

Date: Tue, 03 Dec 2002 01:42:05 -0800
From: J C Lawrence <claw@kanga.nu>
To: Erik Steffl <steffl@bigfoot.com>
Cc: svlug@lists.svlug.org
Subject: Re: [svlug] mail forwarding/redirecting 
Message-ID: <4365.1038908525@kanga.nu>
In-Reply-To: Message from Erik Steffl <steffl@bigfoot.com> 
   of "Tue, 03 Dec 2002 00:54:04 PST." <3DEC712C.2030606@bigfoot.com> 
References: <3DEB90A6.6F464A5B@bigfoot.com>
	<20021203083455.GJ98677@anarchy.com>  <3DEC712C.2030606@bigfoot.com> 
Precedence: list
Message: 7
MIME-Version: 1.0

On Tue, 03 Dec 2002 00:54:04 -0800 
Erik Steffl <steffl@bigfoot.com> wrote:

> Is it reasonable to expect them to queue email for few hours? 

Yes.  Historically the minimum bounce time was 4 days.  More recently
the loads of SPAM and a few other idiocies have moved that down to 2
days in a few cases.  However, an obliging ISP (which really means any
ISP or other service willing to run TERN delivery for you) will
certainly do 4 days.

> I'll ask my ISP (rawbandwidth) but if you have more info/pointers I'd
> appreciate that so that I have some idea what I can ask of them...

ObNote: EasyDNS will do ETRN service.

>    and last but not least - who sends ETRN? 

You do.  Its part of the SMTP protocol spec.

  $ telnet my.mx.domain.friend smtp
  helo my.domain
  ...
  etrn my.domain
  ...
  quit

-- 
J C Lawrence                
---------(*)                Satan, oscillate my metallic sonatas. 
claw@kanga.nu               He lived as a devil, eh?		  
http://www.kanga.nu/~claw/  Evil is a name of a foeman, as I live.



--===============86203061330375963==
Content-Type: message/rfc822
MIME-Version: 1.0

Date: Tue, 3 Dec 2002 02:14:57 -0800
From: Vince Hoang <svlug@ml.altern8.net>
To: svlug@lists.svlug.org
Subject: Re: [svlug] mail forwarding/redirecting
Message-ID: <20021203101457.GB18151@anarchy.com>
In-Reply-To: <4365.1038908525@kanga.nu>
References: <3DEB90A6.6F464A5B@bigfoot.com>
	<20021203083455.GJ98677@anarchy.com> <3DEC712C.2030606@bigfoot.com>
	<4365.1038908525@kanga.nu>
Content-Type: text/plain; charset=us-ascii
MIME-Version: 1.0
Precedence: list
Message: 8

On Tue, Dec 03, 2002 at 01:42:05AM -0800, J C Lawrence wrote:
> Yes. Historically the minimum bounce time was 4 days. More
> recently the loads of SPAM and a few other idiocies have moved
> that down to 2 days in a few cases. However, an obliging ISP
> (which really means any ISP or other service willing to run
> TERN delivery for you) will certainly do 4 days.

Sendmail's default warning is 4 hours. So to avoid confusing
people sending you E-mail, you will want to keep your mail server
running or connect and send an ETRN within that threshold.

Back before the DSL days, I used to recommend small business
customers with static IPs running their own mail server to
connect at least once an hour for good measure.

-Vince

===


the rest of The Pile (a partial mailing list archive)

doom@kzsu.stanford.edu