Re: [sendmail->postfix] mailertable vs procmail vs aliases



* 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
.



Relevant Pages

  • Re: POP & SMTP Server Question
    ... Probably will not do POP3 and just IMAP. ... Are your users on a private LAN or out at random places on the Internet? ... sendmail, edit the sendmail.mc file and remove or comment out (start the ... enable relaying for your LAN clients, e.g. if your LAN clients are ...
    (Fedora)
  • Re: How to get mail to local destinations delivered?
    ... Then sendmail was adding the domain name onto the end of ... my intended hostname: machine ... domain on the internet but *not* for E-Mail. ... I have a real domain name, I made a sub-domain just for my LAN. ...
    (Fedora)
  • Re: {Spam?} Re: Sendmail local LAN delivery
    ... My intention was to deliver the mails between the workstations on the ... LAN directly. ... Sendmail uses DNS to figure routing along with the internal configuration file UNLESS you specify to sendmail to NOT use DNS. ...
    (freebsd-questions)
  • Re: F9 - sendmail wont send on startup?
    ... If you are going to rely upon configuring sendmail on each machine on ... However there is no DNS problem as I can read mail from the server, the browser works and I can ping. ... but since I have a server on the LAN that handles mail delivery (both on ...
    (Fedora)
  • Re: [sendmail] mailertable vs procmail vs aliases
    ... > I have a home LAN with a sendmail server on a RH9 linux box. ... but not all of the family is on my LAN and I ... > continue and would appreciate expert opinions on the "best" way for me ...
    (comp.mail.sendmail)