Re: [Hampshire] Sendmail local users

Top Page

Reply to this message
Author: Graeme Hilton
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] Sendmail local users
Jack Knight wrote:
> Graeme Hilton wrote:
>> Which part of sendmail is it that can translate first.lastname into
>> username, and how can I turn that feature on?
> Put details in /etc/aliases like so:
> firstname.lastname: localname


I had the virtuser table chock full of things, but nothing in aliases...

> ... lack of fqdn on RHS means local user. You can also define lists here
> like so:
>
> freinds: adam,alan,charles,dave,earl@???
>
> and so on. You can also cascade lists - in this example the "friends"
> once defined on the LHS can be used on the RHS and sendmail will expand
> the lists recursively. Hope this isn't too much info.


Not at all, very useful.

> Test with "sendmail -bv firstname.lastname"


Note for future; this needs to be sudo as sendmail complains otherwise.

> Then for belt & braces approach (should happen automatically these days)
> rebuild alias db file with "sendmail -bi"


That was required on my Fedora 8 box.

Thanks Jack, all seems to be working well now!

Just need to setup the SMTP auth and I'm up and running.

--
Graeme Hilton