Problem with mail for dialup users

Giorgos Keramidas keramida at freebsd.org
Thu Jan 6 14:43:24 UTC 2005


On 2005-01-05 09:52, Leonidas Tsampros <ltsampros at upnet.gr> wrote:
> Hello,
> I'm using dialup to connect to the internet and i tried to setup
> sendmail in the way it is mentioned in the FreeBSD Handbook. According
> to Chapter 22.9 all you have to do is to setup sendmail in a way that
> it rewrites your local domain address to your ISP's domain address.
> This means that something like user at bsd.home will become
> user at isp's.net .
>
> Of course THIS IS WORKING but it doesn't suit users that have a
> different login name at ther local machine and a different one at
> their's ISP mailbox.

True :)

> A solution to this is to use a genericstable file at their /etc/mail
> mc file  so there can be full address rewriting like userY at bsd.home
> becomes userZ at isp's.net . The options that i have appended to the
> previous configuration are the following:
>
> FEATURE(`genericstable', `btree -o /etc/mail/genericstable')
> FEATURE(`generics_entire_domain')
> GENERICS_DOMAIN(`bsd.home')
>
> [user at bsd.home]doc $ cat /etc/mail/genericstable
> user at bsd.home        userZ at isp's.net
>
> Thanks for your time.

The only problem with `genericstable' is that newcomers to FreeBSD will
have to be taught about ``map files'' and the correct way to update,
regenerate (the .db file), possible pitfalls (i.e. using a different map
type in hostname.mc and /etc/mail/Makefile), etc.

Care to give it a try and send a diff with your suggestions?

- Giorgos



More information about the freebsd-doc mailing list