Re: [sendmail->postfix] mailertable vs procmail vs aliases
- From: Troy Piggins <usenet@xxxxxxxxx>
- Date: 14 Jul 2005 21:03:52 GMT
* Troy Piggins wrote:
> I have a home LAN with a sendmail server on a RH9 linux box. My family
> has the domain piggo.com, but not all of the family is on my LAN and I
> don't use the LAN as piggo.com because my external IP is dynamically
> assigned by my ISP. I use a free domain name parking service to forward
> mail etc.
>
> I set up once before sendmail with the following in my
> /etc/mail/mailertable
>
> piggo.com local:
>
> which worked a treat for any mail sent internally. But for some email
> sent to xyz@xxxxxxxxx it needs to go externally to the free forwarding
> server, and get forwarded to their actual (ISP provided) email address.
>
> So I have a couple of thoughts, but am not sure of the best way to
> continue and would appreciate expert opinions on the "best" way for me
> to set it up.
>
> First idea was to change /etc/mail/mailertable to
>
> piggo.com procmail:/etc/procmailrc
>
> then have recipes in /etc/procmailrc like
>
>:0 # this user is external
> * ^TO_.*xyz@xxxxxxxxx
> ! -oi -f $1 xyz@xxxxxxxxxxxxxx
>
>:0 # this user is internal
> * ^TO_.*abc@xxxxxxxxx
> ! abc
>
> or something along those lines.
>
> Second idea was to leave my origin mailertable entry with "local:", and
> for each user have an /etc/aliases entry like
>
> xyz: xyz@xxxxxxxxxxxxxx
>
> I /think/ both of the above will work, but do not know if one is more
> efficient than the other.
>
> Finally, and I don't if this is even possible, is if it can all be done
> within /etc/mail/mailertable. The first 2 ideas I had above are a bit
> tedious to set up, because I need to enter the real email addresses for
> every user that is external to my LAN.
>
> Don't know if you can do something like this in mailertable
>
> piggo.com local:
> xyz@xxxxxxxxx smtp:smtpserver.myisp.com
>
> So what do the experts think?
I have dropped sendmail and installed postfix. I would still be
interested very much in comments about the above.
--
T R O Y P I G G I N S
e : usenet@xxxxxxxxx
.
- Prev by Date: Re: procmail is creating Maildir files instead of mbox
- Next by Date: Re: procmail is creating Maildir files instead of mbox
- Previous by thread: procmail is creating Maildir files instead of mbox
- Next by thread: Proof of Bigfoot existence may come soon
- Index(es):
Relevant Pages
|