|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: mouss (mlist.only
free.fr)
Date: Thu Dec 06 2007 - 05:59:28 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
MacShane, Tracy wrote:
>
>
>> -----Original Message-----
>> From: owner-postfix-users
postfix.org
>> [mailto:owner-postfix-users
postfix.org] On Behalf Of Curtis
>> H. Wilbar Jr.
>> Sent: Thursday, 6 December 2007 1:41 PM
>> To: postfix-users
postfix.org
>> Subject: alias/transport/etc address question
>>
>>
>> I sure hope this isn't a 'stupid' question.
>>
>> I've been using postfix where I work for 4 years (where I was
>> introduced to postfix).
> ...
>> When I converted to postfix, I did something similar... I did
>> the same alias and did the mailmaps piece in a transport:
>>
>> jane
hawkmountain.net error:Mailbox closed
>>
>> However... this didn't work... as it appears the alias gets
>> expanded (envelope wise) from jdoe
to jane
, and then the
>> transport map take it to an error.
>>
>> I've looked and looked and read the address rewriting section
>> of postfix.org's doc pages.... but while I've tried several
>> things... I haven't figured out how to pull this off in postfix.
>>
>> This is the first time I've had to do something in postfix
>> that I haven't figured out yet.... currently I'm stumped...
>>
>> Any advice is greatly welcome.
>>
>> Thanks,
>>
>> -- Curt
>
>
> In main.cf, in the smtpd_recipient_restrictions, put in a recipient
> check:
>
> check_recipient_access hash:/etc/postfix/recipient_access
>
> Then create (and hash) the recipient_access map:
>
> jane
hawkmountain.net REJECT
>
> I actually haven't tried this with local aliases, but I don't see why it
> wouldn't work (I'm sure someone will tell both of us if this is
> incorrect). Also, get rid of the altered transport entry.
>
>
This works. put the check after reject_unauth_destination to avoid
becoming an open relay in case of error (an OK in the map....).
The transport approach is used when you also need the behaviour to apply
to mail submitted with the sendmail command. but it doesn't work if the
address is actually used for delivery. it would work if hawkmountain.net
is not a local domain and addresses are aliases (via virtaul_alias_maps)
to foo
localhost. but this requires a lot of work (need to copy infos
from /etc/passwd.... etc).
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]